#include <DCCMemBlock.h>
Public Member Functions | |
DCCMemBlock (DCCDataUnpacker *u, EcalElectronicsMapper *m, DCCEventBlock *e) | |
void | display (std::ostream &o) |
int | unpack (uint64_t **data, unsigned int *dwToEnd, unsigned int expectedTowerID) |
void | updateCollectors () |
virtual | ~DCCMemBlock () |
Public Member Functions inherited from DCCDataBlockPrototype | |
DCCDataBlockPrototype (DCCDataUnpacker *unpacker, EcalElectronicsMapper *mapper, DCCEventBlock *event, bool unpack=true) | |
void | enableSyncChecks () |
virtual unsigned int | getLength () |
virtual int | unpack (uint64_t **data, unsigned int *dwToEnd) |
virtual void | updateEventPointers () |
Protected Member Functions | |
void | fillPnDiodeDigisCollection () |
void | unpackMemTowerData () |
Protected Attributes | |
unsigned int | bx_ |
unsigned int | expTowerID_ |
unsigned int | expXtalTSamples_ |
std::auto_ptr < EcalElectronicsIdCollection > * | invalidMemBlockSizes_ |
std::auto_ptr < EcalElectronicsIdCollection > * | invalidMemChIds_ |
std::auto_ptr < EcalElectronicsIdCollection > * | invalidMemGains_ |
std::auto_ptr < EcalElectronicsIdCollection > * | invalidMemTtIds_ |
unsigned int | kSamplesPerPn_ |
unsigned int | l1_ |
unsigned int | lastStripId_ |
unsigned int | lastTowerBeforeMem_ |
unsigned int | lastXtalId_ |
unsigned int | nTSamples_ |
unsigned int | numbDWInXtalBlock_ |
std::vector< short > | pn_ |
std::auto_ptr < EcalPnDiodeDigiCollection > * | pnDiodeDigis_ |
unsigned int | towerId_ |
unsigned int | unfilteredTowerBlockLength_ |
unsigned int | xtalBlockSize_ |
Protected Attributes inherited from DCCDataBlockPrototype | |
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 36 of file DCCMemBlock.h.
DCCMemBlock::DCCMemBlock | ( | DCCDataUnpacker * | u, |
EcalElectronicsMapper * | m, | ||
DCCEventBlock * | e | ||
) |
Definition at line 9 of file DCCMemBlock.cc.
References expXtalTSamples_, EcalElectronicsMapper::getUnfilteredTowerBlockLength(), i, kSamplesPerPn_, DCCDataBlockPrototype::mapper_, numbDWInXtalBlock_, EcalElectronicsMapper::numbXtalTSamples(), pn_, unfilteredTowerBlockLength_, and xtalBlockSize_.
|
inlinevirtual |
Definition at line 42 of file DCCMemBlock.h.
|
virtual |
Reimplemented from DCCDataBlockPrototype.
Definition at line 348 of file DCCMemBlock.cc.
References DCCDataBlockPrototype::blockLength_, bx_, l1_, nTSamples_, and towerId_.
|
protected |
Definition at line 286 of file DCCMemBlock.cc.
References EcalBarrel, EcalEndcap, EcalElectronicsMapper::getActiveSM(), kSamplesPerPn_, lastTowerBeforeMem_, DCCDataBlockPrototype::mapper_, NUMB_SM_EB_MIN_MIN, NUMB_SM_EB_PLU_MAX, NUMB_SM_EE_MIN_MAX, NUMB_SM_EE_MIN_MIN, NUMB_SM_EE_PLU_MAX, NUMB_SM_EE_PLU_MIN, pn_, EcalPnDiodeDigi::setSample(), EcalPnDiodeDigi::setSize(), DCCDataUnpacker::silentMode_, and towerId_.
Referenced by unpack().
int DCCMemBlock::unpack | ( | uint64_t ** | data, |
unsigned int * | dwToEnd, | ||
unsigned int | expectedTowerID | ||
) |
Definition at line 41 of file DCCMemBlock.cc.
References BLOCK_UNPACKED, DCCDataBlockPrototype::blockLength_, DCCEventBlock::bx(), bx_, runTheMatrix::data, DCCDataBlockPrototype::data_, DCCDataBlockPrototype::datap_, DCCDataBlockPrototype::dwToEnd_, DCCDataBlockPrototype::error_, DCCDataBlockPrototype::event_, expTowerID_, expXtalTSamples_, FE_MEM, fillPnDiodeDigisCollection(), DCCEventBlock::fov(), EcalElectronicsMapper::getActiveDCC(), EcalElectronicsMapper::getActiveSM(), H_FOV_MASK, isSynced(), l1_, DCCEventBlock::l1A(), lastStripId_, lastXtalId_, DCCDataBlockPrototype::mapper_, nTSamples_, DCCEventBlock::setFESyncNumbers(), DCCDataUnpacker::silentMode_, SKIP_BLOCK_UNPACKING, STOP_EVENT_UNPACKING, DCCDataBlockPrototype::sync_, TOWER_BX_B, TOWER_BX_MASK, TOWER_ID_MASK, TOWER_L1_B, TOWER_L1_MASK, TOWER_LENGTH_B, TOWER_LENGTH_MASK, TOWER_NSAMP_B, TOWER_NSAMP_MASK, towerId_, unfilteredTowerBlockLength_, unpackMemTowerData(), and DCCDataBlockPrototype::updateEventPointers().
Referenced by DCCEEEventBlock::unpack(), and DCCEBEventBlock::unpack().
|
protected |
Definition at line 176 of file DCCMemBlock.cc.
References DCCDataBlockPrototype::data_, DCCDataBlockPrototype::error_, DCCDataBlockPrototype::event_, EcalElectronicsMapper::getActiveDCC(), EcalElectronicsMapper::getActiveSM(), i, getHLTprescales::index, DCCEventBlock::l1A(), lastTowerBeforeMem_, DCCDataBlockPrototype::mapper_, nTSamples_, numbDWInXtalBlock_, pn_, DCCDataUnpacker::silentMode_, cond::rpcobtemp::temp, TOWER_DIGI_MASK, TOWER_STRIPID_MASK, TOWER_XTALID_B, TOWER_XTALID_MASK, and towerId_.
Referenced by unpack().
|
virtual |
Reimplemented from DCCDataBlockPrototype.
Definition at line 29 of file DCCMemBlock.cc.
References invalidMemBlockSizes_, DCCDataUnpacker::invalidMemBlockSizesCollection(), invalidMemChIds_, DCCDataUnpacker::invalidMemChIdsCollection(), invalidMemGains_, DCCDataUnpacker::invalidMemGainsCollection(), invalidMemTtIds_, DCCDataUnpacker::invalidMemTtIdsCollection(), pnDiodeDigis_, DCCDataUnpacker::pnDiodeDigisCollection(), and DCCDataBlockPrototype::unpacker_.
Referenced by DCCEventBlock::updateCollectors().
|
protected |
Definition at line 71 of file DCCMemBlock.h.
|
protected |
Definition at line 57 of file DCCMemBlock.h.
Referenced by unpack().
|
protected |
Definition at line 58 of file DCCMemBlock.h.
Referenced by DCCMemBlock(), and unpack().
|
protected |
Definition at line 75 of file DCCMemBlock.h.
Referenced by updateCollectors().
|
protected |
Definition at line 74 of file DCCMemBlock.h.
Referenced by updateCollectors().
|
protected |
Definition at line 77 of file DCCMemBlock.h.
Referenced by updateCollectors().
|
protected |
Definition at line 76 of file DCCMemBlock.h.
Referenced by updateCollectors().
|
protected |
Definition at line 59 of file DCCMemBlock.h.
Referenced by DCCMemBlock(), and fillPnDiodeDigisCollection().
|
protected |
Definition at line 72 of file DCCMemBlock.h.
|
protected |
Definition at line 61 of file DCCMemBlock.h.
Referenced by unpack().
|
protected |
Definition at line 63 of file DCCMemBlock.h.
Referenced by fillPnDiodeDigisCollection(), and unpackMemTowerData().
|
protected |
Definition at line 62 of file DCCMemBlock.h.
Referenced by unpack().
|
protected |
Definition at line 68 of file DCCMemBlock.h.
Referenced by display(), unpack(), and unpackMemTowerData().
|
protected |
Definition at line 66 of file DCCMemBlock.h.
Referenced by DCCMemBlock(), and unpackMemTowerData().
|
protected |
Definition at line 55 of file DCCMemBlock.h.
Referenced by DCCMemBlock(), fillPnDiodeDigisCollection(), and unpackMemTowerData().
|
protected |
Definition at line 78 of file DCCMemBlock.h.
Referenced by updateCollectors().
|
protected |
Definition at line 65 of file DCCMemBlock.h.
Referenced by display(), fillPnDiodeDigisCollection(), unpack(), and unpackMemTowerData().
|
protected |
Definition at line 69 of file DCCMemBlock.h.
Referenced by DCCMemBlock(), and unpack().
|
protected |
Definition at line 67 of file DCCMemBlock.h.
Referenced by DCCMemBlock().