![]() |
![]() |
#include <DCCDataBlockPrototype.h>
Public Member Functions | |
DCCDataBlockPrototype (DCCDataUnpacker *unpacker, EcalElectronicsMapper *mapper, DCCEventBlock *event, bool unpack=true) | |
virtual void | display (std::ostream &o) |
void | enableSyncChecks () |
virtual unsigned int | getLength () |
virtual int | unpack (uint64_t **data, unsigned int *dwToEnd) |
virtual void | updateCollectors () |
virtual void | updateEventPointers () |
Protected Attributes | |
unsigned int | blockLength_ |
uint64_t * | data_ |
uint64_t ** | datap_ |
unsigned int * | dwToEnd_ |
bool | error_ |
DCCEventBlock * | event_ |
EcalElectronicsMapper * | mapper_ |
bool | sync_ |
DCCDataUnpacker * | unpacker_ |
bool | unpackInternalData_ |
Definition at line 31 of file DCCDataBlockPrototype.h.
DCCDataBlockPrototype::DCCDataBlockPrototype | ( | DCCDataUnpacker * | unpacker, |
EcalElectronicsMapper * | mapper, | ||
DCCEventBlock * | event, | ||
bool | unpack = true |
||
) |
Class constructor
Definition at line 4 of file DCCDataBlockPrototype.cc.
virtual void DCCDataBlockPrototype::display | ( | std::ostream & | o | ) | [inline, virtual] |
Reimplemented in DCCFEBlock, DCCMemBlock, DCCSRPBlock, and DCCTCCBlock.
Definition at line 43 of file DCCDataBlockPrototype.h.
{}
void DCCDataBlockPrototype::enableSyncChecks | ( | ) | [inline] |
Definition at line 45 of file DCCDataBlockPrototype.h.
References sync_.
Referenced by DCCEventBlock::enableSyncChecks().
{sync_=true;}
virtual unsigned int DCCDataBlockPrototype::getLength | ( | ) | [inline, virtual] |
Reimplemented in DCCEETCCBlock, and DCCFEBlock.
Definition at line 65 of file DCCDataBlockPrototype.h.
References blockLength_.
Referenced by DCCTCCBlock::unpack().
{ return blockLength_; }
virtual int DCCDataBlockPrototype::unpack | ( | uint64_t ** | data, |
unsigned int * | dwToEnd | ||
) | [inline, virtual] |
Definition at line 39 of file DCCDataBlockPrototype.h.
References BLOCK_UNPACKED.
{ return BLOCK_UNPACKED;}
virtual void DCCDataBlockPrototype::updateCollectors | ( | ) | [inline, virtual] |
Reimplemented in DCCEBSRPBlock, DCCEBTCCBlock, DCCEESRPBlock, DCCEETCCBlock, DCCFEBlock, DCCMemBlock, DCCSCBlock, and DCCTowerBlock.
Definition at line 41 of file DCCDataBlockPrototype.h.
Referenced by DCCEventBlock::updateCollectors().
{};
virtual void DCCDataBlockPrototype::updateEventPointers | ( | ) | [inline, virtual] |
Updates data pointer and dw to end of event
Definition at line 50 of file DCCDataBlockPrototype.h.
References blockLength_, datap_, and dwToEnd_.
Referenced by DCCMemBlock::unpack(), DCCFEBlock::unpack(), DCCTCCBlock::unpack(), and DCCSRPBlock::unpack().
{ //cout<<"\n block Length "<<blockLength_; //cout<<"\n dwToEne... "<<*dwToEnd_; *datap_ += blockLength_; // preventing pointers from navigating wildly outside of fedBlock if((*dwToEnd_)>=blockLength_) *dwToEnd_ -= blockLength_; else *dwToEnd_ = 0; }
unsigned int DCCDataBlockPrototype::blockLength_ [protected] |
Definition at line 80 of file DCCDataBlockPrototype.h.
Referenced by DCCEBTCCBlock::DCCEBTCCBlock(), DCCEETCCBlock::DCCEETCCBlock(), DCCSRPBlock::DCCSRPBlock(), DCCFEBlock::display(), DCCMemBlock::display(), getLength(), DCCFEBlock::getLength(), DCCMemBlock::unpack(), DCCFEBlock::unpack(), DCCTCCBlock::unpack(), DCCSRPBlock::unpack(), and updateEventPointers().
uint64_t* DCCDataBlockPrototype::data_ [protected] |
Definition at line 76 of file DCCDataBlockPrototype.h.
Referenced by DCCEESRPBlock::addSRFlagToCollection(), DCCEBSRPBlock::addSRFlagToCollection(), DCCEETCCBlock::addTriggerPrimitivesToCollection(), DCCEBTCCBlock::addTriggerPrimitivesToCollection(), DCCEETCCBlock::getLength(), DCCMemBlock::unpack(), DCCFEBlock::unpack(), DCCTCCBlock::unpack(), DCCSRPBlock::unpack(), DCCMemBlock::unpackMemTowerData(), DCCTowerBlock::unpackXtalData(), and DCCSCBlock::unpackXtalData().
uint64_t** DCCDataBlockPrototype::datap_ [protected] |
Definition at line 75 of file DCCDataBlockPrototype.h.
Referenced by DCCMemBlock::unpack(), DCCFEBlock::unpack(), DCCTCCBlock::unpack(), DCCSRPBlock::unpack(), and updateEventPointers().
unsigned int* DCCDataBlockPrototype::dwToEnd_ [protected] |
Definition at line 77 of file DCCDataBlockPrototype.h.
Referenced by DCCMemBlock::unpack(), DCCFEBlock::unpack(), DCCTCCBlock::unpack(), DCCSRPBlock::unpack(), and updateEventPointers().
bool DCCDataBlockPrototype::error_ [protected] |
Definition at line 70 of file DCCDataBlockPrototype.h.
Referenced by DCCMemBlock::unpack(), DCCSRPBlock::unpack(), and DCCMemBlock::unpackMemTowerData().
DCCEventBlock* DCCDataBlockPrototype::event_ [protected] |
Definition at line 72 of file DCCDataBlockPrototype.h.
Referenced by DCCEBSRPBlock::addSRFlagToCollection(), DCCEETCCBlock::addTriggerPrimitivesToCollection(), DCCEBSRPBlock::checkSrpIdAndNumbSRFlags(), DCCEETCCBlock::checkTccIdAndNumbTTs(), DCCEBTCCBlock::checkTccIdAndNumbTTs(), DCCSCBlock::fillEcalElectronicsError(), DCCTowerBlock::fillEcalElectronicsError(), DCCMemBlock::unpack(), DCCFEBlock::unpack(), DCCTCCBlock::unpack(), DCCSRPBlock::unpack(), DCCMemBlock::unpackMemTowerData(), DCCTowerBlock::unpackXtalData(), and DCCSCBlock::unpackXtalData().
EcalElectronicsMapper* DCCDataBlockPrototype::mapper_ [protected] |
Definition at line 71 of file DCCDataBlockPrototype.h.
Referenced by DCCEESRPBlock::addSRFlagToCollection(), DCCEBSRPBlock::addSRFlagToCollection(), DCCEETCCBlock::addTriggerPrimitivesToCollection(), DCCEBTCCBlock::addTriggerPrimitivesToCollection(), DCCEBSRPBlock::checkSrpIdAndNumbSRFlags(), DCCEESRPBlock::checkSrpIdAndNumbSRFlags(), DCCEETCCBlock::checkTccIdAndNumbTTs(), DCCEBTCCBlock::checkTccIdAndNumbTTs(), DCCEBTCCBlock::DCCEBTCCBlock(), DCCFEBlock::DCCFEBlock(), DCCMemBlock::DCCMemBlock(), DCCSCBlock::fillEcalElectronicsError(), DCCTowerBlock::fillEcalElectronicsError(), DCCMemBlock::fillPnDiodeDigisCollection(), DCCMemBlock::unpack(), DCCFEBlock::unpack(), DCCTCCBlock::unpack(), DCCSRPBlock::unpack(), DCCMemBlock::unpackMemTowerData(), DCCTowerBlock::unpackXtalData(), and DCCSCBlock::unpackXtalData().
bool DCCDataBlockPrototype::sync_ [protected] |
Definition at line 82 of file DCCDataBlockPrototype.h.
Referenced by enableSyncChecks(), DCCMemBlock::unpack(), DCCFEBlock::unpack(), DCCTCCBlock::unpack(), and DCCSRPBlock::unpack().
DCCDataUnpacker* DCCDataBlockPrototype::unpacker_ [protected] |
Definition at line 69 of file DCCDataBlockPrototype.h.
Referenced by DCCTowerBlock::unpackXtalData(), DCCSCBlock::unpackXtalData(), DCCFEBlock::updateCollectors(), DCCEESRPBlock::updateCollectors(), DCCEETCCBlock::updateCollectors(), DCCMemBlock::updateCollectors(), DCCSCBlock::updateCollectors(), DCCTowerBlock::updateCollectors(), DCCEBSRPBlock::updateCollectors(), and DCCEBTCCBlock::updateCollectors().
bool DCCDataBlockPrototype::unpackInternalData_ [protected] |
Definition at line 81 of file DCCDataBlockPrototype.h.
Referenced by DCCEESRPBlock::addSRFlagToCollection(), DCCEBSRPBlock::addSRFlagToCollection(), and DCCTCCBlock::unpack().