Analysis Software
Documentation for sPHENIX simulation software
|
#include <online_distribution/blob/master/newbasic/ophBuffer.h>
Public Member Functions | |
ophBuffer () | |
ophBuffer (int fd, PHDWORD *where, const int length, const int irun=1, const int iseq=0) | |
ophBuffer (const char *filename, PHDWORD *where, const int length, int &status, const int irun=1, const int iseq=0) | |
~ophBuffer () | |
int | nextEvent (const unsigned int evtsize, const int etype=0, const int evtseq=0) |
int | addRawEvent (unsigned int *) |
int | addEvent (Event *) |
int | addFrame (PHDWORD *) |
int | addPacket (const Packet *p) |
int | addUnstructPacketData (PHDWORD *data, const int length, const int id, const int wordsize, const int hitformat) |
int | writeout () |
int | setMaxSize (const int size) |
int | getMaxSize () const |
unsigned long long | getBytesWritten () const |
int | addEoB () |
Public Member Functions inherited from oBuffer | |
oBuffer () | |
virtual | ~oBuffer () |
Protected Member Functions | |
int | prepare_next () |
Protected Attributes | |
buffer_ptr | bptr |
buffer_ptr | bptr_being_written |
buffer_ptr | bptr0 |
buffer_ptr | bptr1 |
PHDWORD * | data_ptr |
int | current_index |
int | max_length |
int | max_size |
unsigned int | left |
int | sequence |
int | runnumber |
unsigned long long | byteswritten |
oEvent * | current_event |
int | eventsequence |
int | current_etype |
int | has_end |
int | dirty |
int | fd |
int | our_fd |
int | good_object |
Definition at line 12 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 12 of file ophBuffer.h
|
inline |
Definition at line 21 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 21 of file ophBuffer.h
ophBuffer::ophBuffer | ( | int | fd, |
PHDWORD * | where, | ||
const int | length, | ||
const int | irun = 1 , |
||
const int | iseq = 0 |
||
) |
Definition at line 56 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 56 of file ophBuffer.cc
References bptr, BUFFERHEADERLENGTH, oBuffer::buffer_ptr::Bufseq, byteswritten, current_etype, current_event, oBuffer::buffer_ptr::data, data_ptr, DATAEVENT, eventsequence, fd, good_object, oBuffer::buffer_ptr::ID, left, G4PLUGDOOR::length, max_length, max_size, our_fd, prepare_next(), oBuffer::buffer_ptr::Runnr, runnumber, and sequence.
ophBuffer::ophBuffer | ( | const char * | filename, |
PHDWORD * | where, | ||
const int | length, | ||
int & | status, | ||
const int | irun = 1 , |
||
const int | iseq = 0 |
||
) |
Definition at line 22 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 22 of file ophBuffer.cc
References bptr, BUFFERHEADERLENGTH, oBuffer::buffer_ptr::Bufseq, byteswritten, current_etype, current_event, oBuffer::buffer_ptr::data, data_ptr, DATAEVENT, eventsequence, fd, good_object, oBuffer::buffer_ptr::ID, left, G4PLUGDOOR::length, max_length, max_size, Acts::open, our_fd, prepare_next(), oBuffer::buffer_ptr::Runnr, runnumber, and sequence.
ophBuffer::~ophBuffer | ( | ) |
Definition at line 387 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 387 of file ophBuffer.cc
References fd, our_fd, and writeout().
|
virtual |
Implements oBuffer.
Definition at line 375 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 375 of file ophBuffer.cc
References bptr, current_index, oBuffer::buffer_ptr::data, has_end, and oBuffer::buffer_ptr::Length.
Referenced by ogzBuffer::writeout(), olzoBuffer::writeout(), oamlBuffer::writeout(), and writeout().
|
virtual |
Implements oBuffer.
Definition at line 161 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 161 of file ophBuffer.cc
References bptr, oBuffer::buffer_ptr::Bufseq, Event::Copy(), current_index, oBuffer::buffer_ptr::data, dirty, EOBLENGTH, Event::getEvtLength(), Event::getRunNumber(), good_object, left, oBuffer::buffer_ptr::Length, prepare_next(), runnumber, and writeout().
|
virtual |
Reimplemented from oBuffer.
Definition at line 189 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 189 of file ophBuffer.cc
References oEvent::addFrame(), bptr, current_event, current_index, good_object, left, and oBuffer::buffer_ptr::Length.
Referenced by main().
|
virtual |
Implements oBuffer.
Definition at line 211 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 211 of file ophBuffer.cc
References oEvent::addPacket(), bptr, current_event, current_index, good_object, left, and oBuffer::buffer_ptr::Length.
|
virtual |
Implements oBuffer.
Definition at line 134 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 134 of file ophBuffer.cc
References bptr, oBuffer::buffer_ptr::Bufseq, current_index, oBuffer::buffer_ptr::data, dirty, EOBLENGTH, good_object, left, oBuffer::buffer_ptr::Length, prepare_next(), and writeout().
|
virtual |
Implements oBuffer.
Definition at line 232 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 232 of file ophBuffer.cc
References oEvent::addUnstructPacketData(), bptr, current_event, current_index, good_object, left, and oBuffer::buffer_ptr::Length.
|
virtual |
Implements oBuffer.
Definition at line 369 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 369 of file ophBuffer.cc
References byteswritten.
|
virtual |
Implements oBuffer.
Definition at line 363 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 363 of file ophBuffer.cc
References max_size.
|
virtual |
Implements oBuffer.
Definition at line 101 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 101 of file ophBuffer.cc
References bptr, oBuffer::buffer_ptr::Bufseq, current_etype, current_event, current_index, oBuffer::buffer_ptr::data, dirty, EOBLENGTH, eventsequence, EVTHEADERLENGTH, left, oBuffer::buffer_ptr::Length, max_size, prepare_next(), oBuffer::buffer_ptr::Runnr, and writeout().
Referenced by main().
|
protected |
Definition at line 82 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 82 of file ophBuffer.cc
References bptr, BUFFERHEADERLENGTH, oBuffer::buffer_ptr::Bufseq, current_index, dirty, has_end, oBuffer::buffer_ptr::ID, left, oBuffer::buffer_ptr::Length, max_size, oBuffer::buffer_ptr::Runnr, runnumber, and sequence.
Referenced by addEvent(), addRawEvent(), nextEvent(), and ophBuffer().
|
virtual |
Implements oBuffer.
Definition at line 346 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 346 of file ophBuffer.cc
References BUFFERBLOCKSIZE, max_length, and max_size.
|
virtual |
Implements oBuffer.
Definition at line 274 of file ophBuffer.cc.
View newest version in sPHENIX GitHub at line 274 of file ophBuffer.cc
References addEoB(), bptr, BUFFERBLOCKSIZE, byteswritten, dirty, fd, good_object, has_end, Length, n, and write().
Referenced by addEvent(), addRawEvent(), nextEvent(), and ~ophBuffer().
|
protected |
Definition at line 72 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 72 of file ophBuffer.h
Referenced by addEoB(), addEvent(), addFrame(), addPacket(), addRawEvent(), addUnstructPacketData(), nextEvent(), ophBuffer(), prepare_next(), ogzBuffer::writeout(), olzoBuffer::writeout(), oamlBuffer::writeout(), and writeout().
|
protected |
Definition at line 75 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 75 of file ophBuffer.h
|
protected |
Definition at line 76 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 76 of file ophBuffer.h
|
protected |
Definition at line 73 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 73 of file ophBuffer.h
|
protected |
Definition at line 84 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 84 of file ophBuffer.h
Referenced by getBytesWritten(), ophBuffer(), ogzBuffer::writeout(), olzoBuffer::writeout(), oamlBuffer::writeout(), and writeout().
|
protected |
Definition at line 87 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 87 of file ophBuffer.h
Referenced by nextEvent(), and ophBuffer().
|
protected |
Definition at line 85 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 85 of file ophBuffer.h
Referenced by addFrame(), addPacket(), addUnstructPacketData(), nextEvent(), and ophBuffer().
|
protected |
Definition at line 78 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 78 of file ophBuffer.h
Referenced by addEoB(), addEvent(), addFrame(), addPacket(), addRawEvent(), addUnstructPacketData(), nextEvent(), and prepare_next().
|
protected |
Definition at line 77 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 77 of file ophBuffer.h
Referenced by ophBuffer().
|
protected |
Definition at line 89 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 89 of file ophBuffer.h
Referenced by addEvent(), addRawEvent(), nextEvent(), prepare_next(), ogzBuffer::writeout(), olzoBuffer::writeout(), oamlBuffer::writeout(), writeout(), and oamlBuffer::~oamlBuffer().
|
protected |
Definition at line 86 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 86 of file ophBuffer.h
Referenced by nextEvent(), and ophBuffer().
|
protected |
Definition at line 90 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 90 of file ophBuffer.h
Referenced by ophBuffer(), olzoBuffer::writeout(), ogzBuffer::writeout(), writeout(), and ~ophBuffer().
|
protected |
Definition at line 92 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 92 of file ophBuffer.h
Referenced by addEvent(), addFrame(), addPacket(), addRawEvent(), addUnstructPacketData(), oamlBuffer::connect_aml(), oamlBuffer::oamlBuffer(), ophBuffer(), oamlBuffer::writeout(), and writeout().
|
protected |
Definition at line 88 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 88 of file ophBuffer.h
Referenced by addEoB(), prepare_next(), ogzBuffer::writeout(), olzoBuffer::writeout(), oamlBuffer::writeout(), and writeout().
|
protected |
Definition at line 81 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 81 of file ophBuffer.h
Referenced by addEvent(), addFrame(), addPacket(), addRawEvent(), addUnstructPacketData(), nextEvent(), ophBuffer(), and prepare_next().
|
protected |
Definition at line 79 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 79 of file ophBuffer.h
Referenced by ophBuffer(), and setMaxSize().
|
protected |
Definition at line 80 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 80 of file ophBuffer.h
Referenced by getMaxSize(), nextEvent(), ophBuffer(), prepare_next(), and setMaxSize().
|
protected |
Definition at line 91 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 91 of file ophBuffer.h
Referenced by ophBuffer(), and ~ophBuffer().
|
protected |
Definition at line 83 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 83 of file ophBuffer.h
Referenced by addEvent(), oamlBuffer::begin_run(), ophBuffer(), and prepare_next().
|
protected |
Definition at line 82 of file ophBuffer.h.
View newest version in sPHENIX GitHub at line 82 of file ophBuffer.h
Referenced by ophBuffer(), and prepare_next().