#include <DCCDataUnpacker.h>
Static Public Attributes | |
static bool | silentMode_ = false |
Definition at line 51 of file DCCDataUnpacker.h.
DCCDataUnpacker::DCCDataUnpacker | ( | EcalElectronicsMapper * | mapper, |
bool | hU, | ||
bool | srpU, | ||
bool | tccU, | ||
bool | feU, | ||
bool | memU, | ||
bool | syncCheck, | ||
bool | feIdCheck, | ||
bool | forceToKeepFRdata | ||
) |
Definition at line 11 of file DCCDataUnpacker.cc.
References ebEventBlock_, eeEventBlock_, electronicsMapper_, DCCEventBlock::enableFeIdChecks(), and DCCEventBlock::enableSyncChecks().
DCCDataUnpacker::~DCCDataUnpacker | ( | ) |
|
inline |
Get the associated event
Definition at line 226 of file DCCDataUnpacker.h.
References currentEvent_.
|
inline |
Definition at line 155 of file DCCDataUnpacker.h.
References dccHeaders_.
Referenced by DCCEventBlock::updateCollectors().
|
inline |
Get the collection pointers
Definition at line 137 of file DCCDataUnpacker.h.
References ebDigis_.
Referenced by DCCTowerBlock::updateCollectors(), and EcalUnpackerWorker::work().
|
inline |
Definition at line 149 of file DCCDataUnpacker.h.
References ebSrFlags_.
Referenced by DCCEBSRPBlock::updateCollectors().
|
inline |
Definition at line 146 of file DCCDataUnpacker.h.
References ecalPSs_.
Referenced by DCCEETCCBlock::updateCollectors().
|
inline |
Definition at line 143 of file DCCDataUnpacker.h.
References ecalTps_.
Referenced by DCCEETCCBlock::updateCollectors(), and DCCEBTCCBlock::updateCollectors().
|
inline |
Definition at line 140 of file DCCDataUnpacker.h.
References eeDigis_.
Referenced by DCCSCBlock::updateCollectors(), and EcalUnpackerWorker::work().
|
inline |
Definition at line 152 of file DCCDataUnpacker.h.
References eeSrFlags_.
Referenced by DCCEESRPBlock::updateCollectors().
|
inline |
Get the ECAL electronics Mapper
Definition at line 206 of file DCCDataUnpacker.h.
References electronicsMapper_.
Referenced by printStatusRecords().
uint16_t DCCDataUnpacker::getCCUValue | ( | const int | fed, |
const int | ccu | ||
) | const |
Definition at line 97 of file DCCDataUnpacker.cc.
References EcalElectronicsMapping::dccTowerConstituents(), electronicsMapper_, getChannelValue(), EcalElectronicsMapper::getSMId(), i, and EcalElectronicsMapper::mapping().
Referenced by DCCEEEventBlock::unpack(), and DCCEBEventBlock::unpack().
uint16_t DCCDataUnpacker::getChannelStatus | ( | const DetId & | id | ) | const |
Definition at line 54 of file DCCDataUnpacker.cc.
References chdb_, EcalCondObjectContainer< T >::end(), and EcalCondObjectContainer< T >::find().
Referenced by getChannelValue().
uint16_t DCCDataUnpacker::getChannelValue | ( | const DetId & | id | ) | const |
Definition at line 80 of file DCCDataUnpacker.cc.
References getChannelStatus().
Referenced by getCCUValue(), printStatusRecords(), DCCTowerBlock::unpackXtalData(), and DCCSCBlock::unpackXtalData().
uint16_t DCCDataUnpacker::getChannelValue | ( | const int | fed, |
const int | ccu, | ||
const int | strip, | ||
const int | xtal | ||
) | const |
Definition at line 85 of file DCCDataUnpacker.cc.
References electronicsMapper_, getChannelStatus(), EcalElectronicsMapping::getDetId(), EcalElectronicsMapper::getSMId(), and EcalElectronicsMapper::mapping().
|
inline |
Definition at line 184 of file DCCDataUnpacker.h.
References invalidBlockLengths_.
Referenced by DCCFEBlock::updateCollectors().
|
inline |
Definition at line 164 of file DCCDataUnpacker.h.
References invalidChIds_.
Referenced by DCCTowerBlock::updateCollectors().
|
inline |
Definition at line 174 of file DCCDataUnpacker.h.
References invalidEEChIds_.
Referenced by DCCSCBlock::updateCollectors().
|
inline |
Definition at line 168 of file DCCDataUnpacker.h.
References invalidEEGains_.
Referenced by DCCSCBlock::updateCollectors().
|
inline |
Definition at line 171 of file DCCDataUnpacker.h.
References invalidEEGainsSwitch_.
Referenced by DCCSCBlock::updateCollectors().
|
inline |
Definition at line 158 of file DCCDataUnpacker.h.
References invalidGains_.
Referenced by DCCTowerBlock::updateCollectors().
|
inline |
Definition at line 161 of file DCCDataUnpacker.h.
References invalidGainsSwitch_.
Referenced by DCCTowerBlock::updateCollectors().
|
inline |
Definition at line 190 of file DCCDataUnpacker.h.
References invalidMemBlockSizes_.
Referenced by DCCMemBlock::updateCollectors().
|
inline |
Definition at line 193 of file DCCDataUnpacker.h.
References invalidMemChIds_.
Referenced by DCCMemBlock::updateCollectors().
|
inline |
Definition at line 196 of file DCCDataUnpacker.h.
References invalidMemGains_.
Referenced by DCCMemBlock::updateCollectors().
|
inline |
Definition at line 187 of file DCCDataUnpacker.h.
References invalidMemTtIds_.
Referenced by DCCMemBlock::updateCollectors().
|
inline |
Definition at line 178 of file DCCDataUnpacker.h.
References invalidTTIds_.
Referenced by DCCFEBlock::updateCollectors().
|
inline |
Definition at line 181 of file DCCDataUnpacker.h.
References invalidZSXtalIds_.
Referenced by DCCFEBlock::updateCollectors().
|
inline |
Definition at line 199 of file DCCDataUnpacker.h.
References pnDiodeDigis_.
Referenced by DCCMemBlock::updateCollectors().
|
inline |
Functions to work with Channel Status DB
Definition at line 212 of file DCCDataUnpacker.h.
References chdb_.
Referenced by EcalRawToDigi::beginRun().
|
inline |
Definition at line 73 of file DCCDataUnpacker.h.
References dccHeaders_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Set the collection pointers
Definition at line 67 of file DCCDataUnpacker.h.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 76 of file DCCDataUnpacker.h.
References ebSrFlags_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 85 of file DCCDataUnpacker.h.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 82 of file DCCDataUnpacker.h.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 70 of file DCCDataUnpacker.h.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 79 of file DCCDataUnpacker.h.
References eeSrFlags_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 114 of file DCCDataUnpacker.h.
References invalidBlockLengths_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 94 of file DCCDataUnpacker.h.
References invalidChIds_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 104 of file DCCDataUnpacker.h.
References invalidEEChIds_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 98 of file DCCDataUnpacker.h.
References invalidEEGains_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 101 of file DCCDataUnpacker.h.
References invalidEEGainsSwitch_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 88 of file DCCDataUnpacker.h.
References invalidGains_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 91 of file DCCDataUnpacker.h.
References invalidGainsSwitch_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 123 of file DCCDataUnpacker.h.
References invalidMemBlockSizes_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 126 of file DCCDataUnpacker.h.
References invalidMemChIds_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 129 of file DCCDataUnpacker.h.
References invalidMemGains_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 120 of file DCCDataUnpacker.h.
References invalidMemTtIds_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 108 of file DCCDataUnpacker.h.
References invalidTTIds_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 111 of file DCCDataUnpacker.h.
References invalidZSXtalIds_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
|
inline |
Definition at line 117 of file DCCDataUnpacker.h.
References pnDiodeDigis_, and x.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigi::produce().
void DCCDataUnpacker::unpack | ( | const uint64_t * | buffer, |
size_t | bufferSize, | ||
unsigned int | smId, | ||
unsigned int | fedId | ||
) |
Unpack data from a buffer
Definition at line 28 of file DCCDataUnpacker.cc.
References currentEvent_, ebEventBlock_, eeEventBlock_, DCCEEEventBlock::unpack(), DCCEBEventBlock::unpack(), and DCCEventBlock::updateCollectors().
Referenced by EcalRawToDigi::produce(), and EcalUnpackerWorker::work().
|
protected |
Definition at line 259 of file DCCDataUnpacker.h.
Referenced by getChannelStatus(), and setChannelStatusDB().
|
protected |
Definition at line 260 of file DCCDataUnpacker.h.
Referenced by currentEvent(), and unpack().
|
protected |
Definition at line 237 of file DCCDataUnpacker.h.
Referenced by dccHeadersCollection(), and setDccHeadersCollection().
|
protected |
Definition at line 233 of file DCCDataUnpacker.h.
Referenced by ebDigisCollection(), and setEBDigisCollection().
|
protected |
Definition at line 261 of file DCCDataUnpacker.h.
Referenced by DCCDataUnpacker(), unpack(), and ~DCCDataUnpacker().
|
protected |
Definition at line 246 of file DCCDataUnpacker.h.
Referenced by ebSrFlagsCollection(), and setEBSrFlagsCollection().
|
protected |
Definition at line 236 of file DCCDataUnpacker.h.
Referenced by ecalPSsCollection(), and setEcalPSsCollection().
|
protected |
Definition at line 235 of file DCCDataUnpacker.h.
Referenced by ecalTpsCollection(), and setEcalTpsCollection().
|
protected |
Definition at line 234 of file DCCDataUnpacker.h.
Referenced by eeDigisCollection(), and setEEDigisCollection().
|
protected |
Definition at line 262 of file DCCDataUnpacker.h.
Referenced by DCCDataUnpacker(), unpack(), and ~DCCDataUnpacker().
|
protected |
Definition at line 247 of file DCCDataUnpacker.h.
Referenced by eeSrFlagsCollection(), and setEESrFlagsCollection().
|
protected |
Definition at line 258 of file DCCDataUnpacker.h.
Referenced by DCCDataUnpacker(), electronicsMapper(), getCCUValue(), and getChannelValue().
|
protected |
Definition at line 250 of file DCCDataUnpacker.h.
Referenced by invalidBlockLengthsCollection(), and setInvalidBlockLengthsCollection().
|
protected |
Definition at line 240 of file DCCDataUnpacker.h.
Referenced by invalidChIdsCollection(), and setInvalidChIdsCollection().
|
protected |
Definition at line 244 of file DCCDataUnpacker.h.
Referenced by invalidEEChIdsCollection(), and setInvalidEEChIdsCollection().
|
protected |
Definition at line 242 of file DCCDataUnpacker.h.
Referenced by invalidEEGainsCollection(), and setInvalidEEGainsCollection().
|
protected |
Definition at line 243 of file DCCDataUnpacker.h.
Referenced by invalidEEGainsSwitchCollection(), and setInvalidEEGainsSwitchCollection().
|
protected |
Definition at line 238 of file DCCDataUnpacker.h.
Referenced by invalidGainsCollection(), and setInvalidGainsCollection().
|
protected |
Definition at line 239 of file DCCDataUnpacker.h.
Referenced by invalidGainsSwitchCollection(), and setInvalidGainsSwitchCollection().
|
protected |
Definition at line 253 of file DCCDataUnpacker.h.
Referenced by invalidMemBlockSizesCollection(), and setInvalidMemBlockSizesCollection().
|
protected |
Definition at line 254 of file DCCDataUnpacker.h.
Referenced by invalidMemChIdsCollection(), and setInvalidMemChIdsCollection().
|
protected |
Definition at line 255 of file DCCDataUnpacker.h.
Referenced by invalidMemGainsCollection(), and setInvalidMemGainsCollection().
|
protected |
Definition at line 252 of file DCCDataUnpacker.h.
Referenced by invalidMemTtIdsCollection(), and setInvalidMemTtIdsCollection().
|
protected |
Definition at line 248 of file DCCDataUnpacker.h.
Referenced by invalidTTIdsCollection(), and setInvalidTTIdsCollection().
|
protected |
Definition at line 249 of file DCCDataUnpacker.h.
Referenced by invalidZSXtalIdsCollection(), and setInvalidZSXtalIdsCollection().
|
protected |
Definition at line 256 of file DCCDataUnpacker.h.
Referenced by pnDiodeDigisCollection(), and setPnDiodeDigisCollection().
|
static |
Definition at line 228 of file DCCDataUnpacker.h.
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection(), DCCEBSRPBlock::checkSrpIdAndNumbSRFlags(), DCCEETCCBlock::checkTccIdAndNumbTTs(), DCCEBTCCBlock::checkTccIdAndNumbTTs(), EcalDCCHeaderRuntypeDecoder::Decode(), EcalDCCHeaderRuntypeDecoder::DecodeSetting(), EcalDCCHeaderRuntypeDecoder::DecodeSettingGlobal(), EcalRawToDigi::EcalRawToDigi(), EcalUnpackerWorker::EcalUnpackerWorker(), DCCTowerBlock::fillEcalElectronicsError(), DCCSCBlock::fillEcalElectronicsError(), DCCMemBlock::fillPnDiodeDigisCollection(), EcalElectronicsMapper::getDCCId(), EcalElectronicsMapper::getSMId(), DCCEEEventBlock::unpack(), DCCEBEventBlock::unpack(), DCCFEBlock::unpack(), DCCSRPBlock::unpack(), DCCMemBlock::unpack(), DCCTCCBlock::unpack(), DCCMemBlock::unpackMemTowerData(), DCCTowerBlock::unpackXtalData(), and DCCSCBlock::unpackXtalData().