#include <BUEvent.h>
Public Member Functions | |
BUEvent (unsigned int buResourceId, unsigned int bufferSize=0x400000) | |
unsigned int | bufferSize () const |
unsigned int | buResourceId () const |
void | dump () |
unsigned int | evtNumber () const |
unsigned int | evtSize () const |
unsigned char * | fedAddr (unsigned int i) const |
unsigned int | fedId (unsigned int i) const |
unsigned int | fedSize (unsigned int i) const |
void | initialize (unsigned int evtNumber) |
unsigned int | nFed () const |
bool | writeFed (unsigned int id, unsigned char *data, unsigned int size) |
bool | writeFedHeader (unsigned int i) |
bool | writeFedTrailer (unsigned int i) |
virtual | ~BUEvent () |
Static Public Member Functions | |
static bool | computeCrc () |
static void | setComputeCrc (bool computeCrc) |
Private Attributes | |
unsigned char * | buffer_ |
unsigned int | bufferSize_ |
unsigned int | buResourceId_ |
unsigned int | evtNumber_ |
unsigned int | evtSize_ |
unsigned int * | fedId_ |
unsigned int * | fedPos_ |
unsigned int * | fedSize_ |
unsigned int | nFed_ |
Static Private Attributes | |
static bool | computeCrc_ =true |
BUEvent::BUEvent | ( | unsigned int | buResourceId, |
unsigned int | bufferSize = 0x400000 |
||
) |
Definition at line 41 of file BUEvent.cc.
References buffer_, bufferSize(), fedId_, fedPos_, and fedSize_.
|
virtual |
|
inline |
|
inline |
Definition at line 27 of file BUEvent.h.
References buResourceId_.
Referenced by evf::BU::createMsgChain().
|
inlinestatic |
Definition at line 36 of file BUEvent.h.
References computeCrc_.
Referenced by setComputeCrc(), and writeFedTrailer().
void BUEvent::dump | ( | void | ) |
Definition at line 153 of file BUEvent.cc.
References evtNumber(), fedAddr(), fedId(), fedSize(), groupFilesInBlocks::fout, i, j, and nFed().
|
inline |
Definition at line 28 of file BUEvent.h.
References evtNumber_.
Referenced by evf::BU::createMsgChain(), dump(), and writeFedHeader().
|
inline |
unsigned char * BUEvent::fedAddr | ( | unsigned int | i | ) | const |
Definition at line 146 of file BUEvent.cc.
References buffer_, and fedPos_.
Referenced by evf::BU::createMsgChain(), dump(), writeFed(), writeFedHeader(), and writeFedTrailer().
|
inline |
Definition at line 32 of file BUEvent.h.
Referenced by evf::BU::createMsgChain(), dump(), and writeFedHeader().
|
inline |
Definition at line 33 of file BUEvent.h.
Referenced by evf::BU::createMsgChain(), dump(), and writeFedTrailer().
void BUEvent::initialize | ( | unsigned int | evtNumber | ) |
Definition at line 74 of file BUEvent.cc.
References evtNumber_, evtSize_, and nFed_.
Referenced by evf::BU::generateEvent().
|
inline |
Definition at line 31 of file BUEvent.h.
References nFed_.
Referenced by evf::BU::createMsgChain(), and dump().
|
inlinestatic |
Definition at line 37 of file BUEvent.h.
References computeCrc(), and computeCrc_.
Referenced by evf::BU::actionPerformed(), and evf::BU::BU().
bool BUEvent::writeFed | ( | unsigned int | id, |
unsigned char * | data, | ||
unsigned int | size | ||
) |
Definition at line 83 of file BUEvent.cc.
References bufferSize_, gather_cfg::cout, evtSize_, fedAddr(), fedId_, fedPos_, fedSize_, errorMatrix2Lands_multiChannel::id, nFed_, and findQualityFiles::size.
Referenced by evf::BU::generateEvent().
bool BUEvent::writeFedHeader | ( | unsigned int | i | ) |
Definition at line 106 of file BUEvent.cc.
References gather_cfg::cout, fedh_struct::eventid, evtNumber(), FED_SOID_MASK, fedAddr(), fedId(), nFed_, and fedh_struct::sourceid.
Referenced by evf::BU::generateEvent().
bool BUEvent::writeFedTrailer | ( | unsigned int | i | ) |
Definition at line 123 of file BUEvent.cc.
References evf::compute_crc(), computeCrc(), fedt_struct::conscheck, gather_cfg::cout, fedt_struct::eventsize, FED_CRCS_SHIFT, fedAddr(), fedSize(), and nFed_.
Referenced by evf::BU::generateEvent().
|
private |
Definition at line 54 of file BUEvent.h.
Referenced by BUEvent(), fedAddr(), and ~BUEvent().
|
private |
Definition at line 49 of file BUEvent.h.
Referenced by bufferSize(), and writeFed().
|
private |
Definition at line 46 of file BUEvent.h.
Referenced by buResourceId().
|
staticprivate |
Definition at line 56 of file BUEvent.h.
Referenced by computeCrc(), and setComputeCrc().
|
private |
Definition at line 47 of file BUEvent.h.
Referenced by evtNumber(), and initialize().
|
private |
Definition at line 48 of file BUEvent.h.
Referenced by evtSize(), initialize(), and writeFed().
|
private |
Definition at line 51 of file BUEvent.h.
Referenced by BUEvent(), fedId(), writeFed(), and ~BUEvent().
|
private |
Definition at line 52 of file BUEvent.h.
Referenced by BUEvent(), fedAddr(), writeFed(), and ~BUEvent().
|
private |
Definition at line 53 of file BUEvent.h.
Referenced by BUEvent(), fedSize(), writeFed(), and ~BUEvent().
|
private |
Definition at line 50 of file BUEvent.h.
Referenced by initialize(), nFed(), writeFed(), writeFedHeader(), and writeFedTrailer().