#include <EventFilter/EcalRawToDigiDev/interface/DCCDataUnpacker.h>
Definition at line 49 of file DCCDataUnpacker.h.
DCCDataUnpacker::DCCDataUnpacker | ( | EcalElectronicsMapper * | mapper, | |
bool | hU, | |||
bool | srpU, | |||
bool | tccU, | |||
bool | feU, | |||
bool | memU, | |||
bool | syncCheck, | |||
bool | feIdCheck | |||
) |
Definition at line 5 of file DCCDataUnpacker.cc.
References ebEventBlock_, eeEventBlock_, electronicsMapper_, DCCEventBlock::enableFeIdChecks(), and DCCEventBlock::enableSyncChecks().
00007 { 00008 electronicsMapper_ = mapper; 00009 ebEventBlock_ = new DCCEBEventBlock(this,mapper,hU,srpU,tccU,feU,memU); 00010 eeEventBlock_ = new DCCEEEventBlock(this,mapper,hU,srpU,tccU,feU,memU); 00011 if(syncCheck){ 00012 ebEventBlock_->enableSyncChecks(); 00013 eeEventBlock_->enableSyncChecks(); 00014 } 00015 if(feIdCheck){ 00016 ebEventBlock_->enableFeIdChecks(); 00017 eeEventBlock_->enableFeIdChecks(); 00018 } 00019 }
DCCDataUnpacker::~DCCDataUnpacker | ( | ) |
Definition at line 43 of file DCCDataUnpacker.cc.
References ebEventBlock_, and eeEventBlock_.
00043 { 00044 delete ebEventBlock_; 00045 delete eeEventBlock_; 00046 }
DCCEventBlock* DCCDataUnpacker::currentEvent | ( | ) | [inline] |
Get the associated event.
Definition at line 197 of file DCCDataUnpacker.h.
References currentEvent_.
00197 { return currentEvent_;}
std::auto_ptr<EcalRawDataCollection>* DCCDataUnpacker::dccHeadersCollection | ( | ) | [inline] |
Definition at line 144 of file DCCDataUnpacker.h.
References dccHeaders_.
Referenced by DCCEventBlock::updateCollectors().
00145 { return dccHeaders_; }
std::auto_ptr<EBDigiCollection>* DCCDataUnpacker::ebDigisCollection | ( | ) | [inline] |
Get the collection pointers.
Definition at line 129 of file DCCDataUnpacker.h.
References ebDigis_.
Referenced by DCCTowerBlock::updateCollectors(), and EcalUnpackerWorker::work().
00130 { return ebDigis_; }
std::auto_ptr<EBSrFlagCollection>* DCCDataUnpacker::ebSrFlagsCollection | ( | ) | [inline] |
Definition at line 138 of file DCCDataUnpacker.h.
References ebSrFlags_.
Referenced by DCCEBSRPBlock::updateCollectors().
00139 { return ebSrFlags_; }
std::auto_ptr<EcalTrigPrimDigiCollection>* DCCDataUnpacker::ecalTpsCollection | ( | ) | [inline] |
Definition at line 135 of file DCCDataUnpacker.h.
References ecalTps_.
Referenced by DCCEETCCBlock::updateCollectors(), and DCCEBTCCBlock::updateCollectors().
00136 { return ecalTps_; }
std::auto_ptr<EEDigiCollection>* DCCDataUnpacker::eeDigisCollection | ( | ) | [inline] |
Definition at line 132 of file DCCDataUnpacker.h.
References eeDigis_.
Referenced by DCCSCBlock::updateCollectors(), and EcalUnpackerWorker::work().
00133 { return eeDigis_; }
std::auto_ptr<EESrFlagCollection>* DCCDataUnpacker::eeSrFlagsCollection | ( | ) | [inline] |
Definition at line 141 of file DCCDataUnpacker.h.
References eeSrFlags_.
Referenced by DCCEESRPBlock::updateCollectors().
00142 { return eeSrFlags_; }
EcalElectronicsMapper* DCCDataUnpacker::electronicsMapper | ( | ) | [inline] |
Get the ECAL electronics Mapper.
Definition at line 192 of file DCCDataUnpacker.h.
References electronicsMapper_.
00192 {return electronicsMapper_;}
std::auto_ptr< EcalElectronicsIdCollection>* DCCDataUnpacker::invalidBlockLengthsCollection | ( | ) | [inline] |
Definition at line 170 of file DCCDataUnpacker.h.
References invalidBlockLengths_.
Referenced by DCCFEBlock::updateCollectors().
00171 { return invalidBlockLengths_; }
std::auto_ptr<EBDetIdCollection>* DCCDataUnpacker::invalidChIdsCollection | ( | ) | [inline] |
Definition at line 153 of file DCCDataUnpacker.h.
References invalidChIds_.
Referenced by DCCTowerBlock::updateCollectors().
00154 { return invalidChIds_; }
std::auto_ptr<EEDetIdCollection>* DCCDataUnpacker::invalidEEChIdsCollection | ( | ) | [inline] |
Definition at line 163 of file DCCDataUnpacker.h.
References invalidEEChIds_.
Referenced by DCCSCBlock::updateCollectors().
00164 { return invalidEEChIds_; }
std::auto_ptr<EEDetIdCollection>* DCCDataUnpacker::invalidEEGainsCollection | ( | ) | [inline] |
Definition at line 157 of file DCCDataUnpacker.h.
References invalidEEGains_.
Referenced by DCCSCBlock::updateCollectors().
00158 { return invalidEEGains_; }
std::auto_ptr<EEDetIdCollection>* DCCDataUnpacker::invalidEEGainsSwitchCollection | ( | ) | [inline] |
Definition at line 160 of file DCCDataUnpacker.h.
References invalidEEGainsSwitch_.
Referenced by DCCSCBlock::updateCollectors().
00161 { return invalidEEGainsSwitch_; }
std::auto_ptr<EBDetIdCollection>* DCCDataUnpacker::invalidGainsCollection | ( | ) | [inline] |
Definition at line 147 of file DCCDataUnpacker.h.
References invalidGains_.
Referenced by DCCTowerBlock::updateCollectors().
00148 { return invalidGains_; }
std::auto_ptr<EBDetIdCollection>* DCCDataUnpacker::invalidGainsSwitchCollection | ( | ) | [inline] |
Definition at line 150 of file DCCDataUnpacker.h.
References invalidGainsSwitch_.
Referenced by DCCTowerBlock::updateCollectors().
00151 { return invalidGainsSwitch_; }
std::auto_ptr<EcalElectronicsIdCollection>* DCCDataUnpacker::invalidMemBlockSizesCollection | ( | ) | [inline] |
Definition at line 176 of file DCCDataUnpacker.h.
References invalidMemBlockSizes_.
Referenced by DCCMemBlock::updateCollectors().
00177 { return invalidMemBlockSizes_; }
std::auto_ptr<EcalElectronicsIdCollection>* DCCDataUnpacker::invalidMemChIdsCollection | ( | ) | [inline] |
Definition at line 179 of file DCCDataUnpacker.h.
References invalidMemChIds_.
Referenced by DCCMemBlock::updateCollectors().
00180 { return invalidMemChIds_; }
std::auto_ptr<EcalElectronicsIdCollection>* DCCDataUnpacker::invalidMemGainsCollection | ( | ) | [inline] |
Definition at line 182 of file DCCDataUnpacker.h.
References invalidMemGains_.
Referenced by DCCMemBlock::updateCollectors().
00183 { return invalidMemGains_; }
std::auto_ptr<EcalElectronicsIdCollection>* DCCDataUnpacker::invalidMemTtIdsCollection | ( | ) | [inline] |
Definition at line 173 of file DCCDataUnpacker.h.
References invalidMemTtIds_.
Referenced by DCCMemBlock::updateCollectors().
00174 { return invalidMemTtIds_; }
std::auto_ptr<EcalElectronicsIdCollection>* DCCDataUnpacker::invalidTTIdsCollection | ( | ) | [inline] |
Definition at line 167 of file DCCDataUnpacker.h.
References invalidTTIds_.
Referenced by DCCFEBlock::updateCollectors().
00168 { return invalidTTIds_; }
std::auto_ptr<EcalPnDiodeDigiCollection>* DCCDataUnpacker::pnDiodeDigisCollection | ( | ) | [inline] |
Definition at line 185 of file DCCDataUnpacker.h.
References pnDiodeDigis_.
Referenced by DCCMemBlock::updateCollectors().
00186 { return pnDiodeDigis_; }
void DCCDataUnpacker::setDccHeadersCollection | ( | std::auto_ptr< EcalRawDataCollection > * | x | ) | [inline] |
Definition at line 71 of file DCCDataUnpacker.h.
References dccHeaders_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00072 { dccHeaders_ = x; }
void DCCDataUnpacker::setEBDigisCollection | ( | std::auto_ptr< EBDigiCollection > * | x | ) | [inline] |
Set the collection pointers.
Definition at line 65 of file DCCDataUnpacker.h.
References ebDigis_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
void DCCDataUnpacker::setEBSrFlagsCollection | ( | std::auto_ptr< EBSrFlagCollection > * | x | ) | [inline] |
Definition at line 74 of file DCCDataUnpacker.h.
References ebSrFlags_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00075 { ebSrFlags_ = x; }
void DCCDataUnpacker::setEcalTpsCollection | ( | std::auto_ptr< EcalTrigPrimDigiCollection > * | x | ) | [inline] |
Definition at line 80 of file DCCDataUnpacker.h.
References ecalTps_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
void DCCDataUnpacker::setEEDigisCollection | ( | std::auto_ptr< EEDigiCollection > * | x | ) | [inline] |
Definition at line 68 of file DCCDataUnpacker.h.
References eeDigis_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
void DCCDataUnpacker::setEESrFlagsCollection | ( | std::auto_ptr< EESrFlagCollection > * | x | ) | [inline] |
Definition at line 77 of file DCCDataUnpacker.h.
References eeSrFlags_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00078 { eeSrFlags_ = x; }
void DCCDataUnpacker::setInvalidBlockLengthsCollection | ( | std::auto_ptr< EcalElectronicsIdCollection > * | x | ) | [inline] |
Definition at line 106 of file DCCDataUnpacker.h.
References invalidBlockLengths_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00107 { invalidBlockLengths_ = x; }
void DCCDataUnpacker::setInvalidChIdsCollection | ( | std::auto_ptr< EBDetIdCollection > * | x | ) | [inline] |
Definition at line 89 of file DCCDataUnpacker.h.
References invalidChIds_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00090 { invalidChIds_ = x; }
void DCCDataUnpacker::setInvalidEEChIdsCollection | ( | std::auto_ptr< EEDetIdCollection > * | x | ) | [inline] |
Definition at line 99 of file DCCDataUnpacker.h.
References invalidEEChIds_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00100 { invalidEEChIds_ = x; }
void DCCDataUnpacker::setInvalidEEGainsCollection | ( | std::auto_ptr< EEDetIdCollection > * | x | ) | [inline] |
Definition at line 93 of file DCCDataUnpacker.h.
References invalidEEGains_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00094 { invalidEEGains_ = x; }
void DCCDataUnpacker::setInvalidEEGainsSwitchCollection | ( | std::auto_ptr< EEDetIdCollection > * | x | ) | [inline] |
Definition at line 96 of file DCCDataUnpacker.h.
References invalidEEGainsSwitch_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00097 { invalidEEGainsSwitch_ = x; }
void DCCDataUnpacker::setInvalidGainsCollection | ( | std::auto_ptr< EBDetIdCollection > * | x | ) | [inline] |
Definition at line 83 of file DCCDataUnpacker.h.
References invalidGains_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00084 { invalidGains_ = x; }
void DCCDataUnpacker::setInvalidGainsSwitchCollection | ( | std::auto_ptr< EBDetIdCollection > * | x | ) | [inline] |
Definition at line 86 of file DCCDataUnpacker.h.
References invalidGainsSwitch_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00087 { invalidGainsSwitch_ = x; }
void DCCDataUnpacker::setInvalidMemBlockSizesCollection | ( | std::auto_ptr< EcalElectronicsIdCollection > * | x | ) | [inline] |
Definition at line 115 of file DCCDataUnpacker.h.
References invalidMemBlockSizes_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00116 { invalidMemBlockSizes_ = x; }
void DCCDataUnpacker::setInvalidMemChIdsCollection | ( | std::auto_ptr< EcalElectronicsIdCollection > * | x | ) | [inline] |
Definition at line 118 of file DCCDataUnpacker.h.
References invalidMemChIds_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00119 { invalidMemChIds_ = x; }
void DCCDataUnpacker::setInvalidMemGainsCollection | ( | std::auto_ptr< EcalElectronicsIdCollection > * | x | ) | [inline] |
Definition at line 121 of file DCCDataUnpacker.h.
References invalidMemGains_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00122 { invalidMemGains_ = x; }
void DCCDataUnpacker::setInvalidMemTtIdsCollection | ( | std::auto_ptr< EcalElectronicsIdCollection > * | x | ) | [inline] |
Definition at line 112 of file DCCDataUnpacker.h.
References invalidMemTtIds_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00113 { invalidMemTtIds_ = x; }
void DCCDataUnpacker::setInvalidTTIdsCollection | ( | std::auto_ptr< EcalElectronicsIdCollection > * | x | ) | [inline] |
Definition at line 103 of file DCCDataUnpacker.h.
References invalidTTIds_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00104 { invalidTTIds_ = x; }
void DCCDataUnpacker::setPnDiodeDigisCollection | ( | std::auto_ptr< EcalPnDiodeDigiCollection > * | x | ) | [inline] |
Definition at line 109 of file DCCDataUnpacker.h.
References pnDiodeDigis_.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker(), and EcalRawToDigiDev::produce().
00110 { pnDiodeDigis_ = x; }
void DCCDataUnpacker::unpack | ( | uint64_t * | buffer, | |
uint | bufferSize, | |||
uint | smId, | |||
uint | fedId | |||
) |
Unpack data from a buffer.
Definition at line 22 of file DCCDataUnpacker.cc.
References currentEvent_, ebEventBlock_, eeEventBlock_, DCCEventBlock::unpack(), and DCCEventBlock::updateCollectors().
Referenced by EcalRawToDigiDev::produce(), and EcalUnpackerWorker::work().
00022 { 00023 //buffer is pointer to binary data 00024 //See if this fed is on EB or in EE 00025 00026 if(smId>9&&smId<46){ 00027 00028 currentEvent_ = ebEventBlock_; 00029 ebEventBlock_ ->updateCollectors(); 00030 ebEventBlock_ ->unpack(buffer,bufferSize,fedId); 00031 00032 } 00033 else{ 00034 00035 currentEvent_ = eeEventBlock_; 00036 eeEventBlock_ ->updateCollectors(); 00037 eeEventBlock_ ->unpack(buffer,bufferSize,fedId); 00038 00039 } 00040 00041 }
DCCEventBlock* DCCDataUnpacker::currentEvent_ [protected] |
std::auto_ptr<EcalRawDataCollection>* DCCDataUnpacker::dccHeaders_ [protected] |
Definition at line 207 of file DCCDataUnpacker.h.
Referenced by dccHeadersCollection(), and setDccHeadersCollection().
std::auto_ptr<EBDigiCollection>* DCCDataUnpacker::ebDigis_ [protected] |
Definition at line 204 of file DCCDataUnpacker.h.
Referenced by ebDigisCollection(), and setEBDigisCollection().
DCCEBEventBlock* DCCDataUnpacker::ebEventBlock_ [protected] |
Definition at line 229 of file DCCDataUnpacker.h.
Referenced by DCCDataUnpacker(), unpack(), and ~DCCDataUnpacker().
std::auto_ptr<EBSrFlagCollection>* DCCDataUnpacker::ebSrFlags_ [protected] |
Definition at line 216 of file DCCDataUnpacker.h.
Referenced by ebSrFlagsCollection(), and setEBSrFlagsCollection().
std::auto_ptr<EcalTrigPrimDigiCollection >* DCCDataUnpacker::ecalTps_ [protected] |
Definition at line 206 of file DCCDataUnpacker.h.
Referenced by ecalTpsCollection(), and setEcalTpsCollection().
std::auto_ptr<EEDigiCollection>* DCCDataUnpacker::eeDigis_ [protected] |
Definition at line 205 of file DCCDataUnpacker.h.
Referenced by eeDigisCollection(), and setEEDigisCollection().
DCCEEEventBlock* DCCDataUnpacker::eeEventBlock_ [protected] |
Definition at line 230 of file DCCDataUnpacker.h.
Referenced by DCCDataUnpacker(), unpack(), and ~DCCDataUnpacker().
std::auto_ptr<EESrFlagCollection>* DCCDataUnpacker::eeSrFlags_ [protected] |
Definition at line 217 of file DCCDataUnpacker.h.
Referenced by eeSrFlagsCollection(), and setEESrFlagsCollection().
EcalElectronicsMapper* DCCDataUnpacker::electronicsMapper_ [protected] |
Definition at line 227 of file DCCDataUnpacker.h.
Referenced by DCCDataUnpacker(), and electronicsMapper().
std::auto_ptr<EcalElectronicsIdCollection>* DCCDataUnpacker::invalidBlockLengths_ [protected] |
Definition at line 219 of file DCCDataUnpacker.h.
Referenced by invalidBlockLengthsCollection(), and setInvalidBlockLengthsCollection().
std::auto_ptr<EBDetIdCollection>* DCCDataUnpacker::invalidChIds_ [protected] |
Definition at line 210 of file DCCDataUnpacker.h.
Referenced by invalidChIdsCollection(), and setInvalidChIdsCollection().
std::auto_ptr<EEDetIdCollection>* DCCDataUnpacker::invalidEEChIds_ [protected] |
Definition at line 214 of file DCCDataUnpacker.h.
Referenced by invalidEEChIdsCollection(), and setInvalidEEChIdsCollection().
std::auto_ptr<EEDetIdCollection>* DCCDataUnpacker::invalidEEGains_ [protected] |
Definition at line 212 of file DCCDataUnpacker.h.
Referenced by invalidEEGainsCollection(), and setInvalidEEGainsCollection().
std::auto_ptr<EEDetIdCollection>* DCCDataUnpacker::invalidEEGainsSwitch_ [protected] |
Definition at line 213 of file DCCDataUnpacker.h.
Referenced by invalidEEGainsSwitchCollection(), and setInvalidEEGainsSwitchCollection().
std::auto_ptr<EBDetIdCollection>* DCCDataUnpacker::invalidGains_ [protected] |
Definition at line 208 of file DCCDataUnpacker.h.
Referenced by invalidGainsCollection(), and setInvalidGainsCollection().
std::auto_ptr<EBDetIdCollection>* DCCDataUnpacker::invalidGainsSwitch_ [protected] |
Definition at line 209 of file DCCDataUnpacker.h.
Referenced by invalidGainsSwitchCollection(), and setInvalidGainsSwitchCollection().
std::auto_ptr<EcalElectronicsIdCollection>* DCCDataUnpacker::invalidMemBlockSizes_ [protected] |
Definition at line 222 of file DCCDataUnpacker.h.
Referenced by invalidMemBlockSizesCollection(), and setInvalidMemBlockSizesCollection().
std::auto_ptr<EcalElectronicsIdCollection>* DCCDataUnpacker::invalidMemChIds_ [protected] |
Definition at line 223 of file DCCDataUnpacker.h.
Referenced by invalidMemChIdsCollection(), and setInvalidMemChIdsCollection().
std::auto_ptr<EcalElectronicsIdCollection>* DCCDataUnpacker::invalidMemGains_ [protected] |
Definition at line 224 of file DCCDataUnpacker.h.
Referenced by invalidMemGainsCollection(), and setInvalidMemGainsCollection().
std::auto_ptr<EcalElectronicsIdCollection>* DCCDataUnpacker::invalidMemTtIds_ [protected] |
Definition at line 221 of file DCCDataUnpacker.h.
Referenced by invalidMemTtIdsCollection(), and setInvalidMemTtIdsCollection().
std::auto_ptr<EcalElectronicsIdCollection>* DCCDataUnpacker::invalidTTIds_ [protected] |
Definition at line 218 of file DCCDataUnpacker.h.
Referenced by invalidTTIdsCollection(), and setInvalidTTIdsCollection().
std::auto_ptr<EcalPnDiodeDigiCollection>* DCCDataUnpacker::pnDiodeDigis_ [protected] |
Definition at line 225 of file DCCDataUnpacker.h.
Referenced by pnDiodeDigisCollection(), and setPnDiodeDigisCollection().
bool DCCDataUnpacker::silentMode_ = false [static] |
Definition at line 199 of file DCCDataUnpacker.h.
Referenced by DCCEBSRPBlock::checkSrpIdAndNumbSRFlags(), DCCEETCCBlock::checkTccIdAndNumbTTs(), DCCEBTCCBlock::checkTccIdAndNumbTTs(), EcalDCCHeaderRuntypeDecoder::Decode(), EcalDCCHeaderRuntypeDecoder::DecodeSetting(), EcalDCCHeaderRuntypeDecoder::DecodeSettingGlobal(), EcalRawToDigiDev::EcalRawToDigiDev(), DCCSCBlock::fillEcalElectronicsError(), DCCTowerBlock::fillEcalElectronicsError(), DCCMemBlock::fillPnDiodeDigisCollection(), EcalElectronicsMapper::getDCCId(), EcalElectronicsMapper::getSMId(), DCCMemBlock::unpack(), DCCFEBlock::unpack(), DCCTCCBlock::unpack(), DCCSRPBlock::unpack(), DCCEventBlock::unpack(), DCCMemBlock::unpackMemTowerData(), DCCTowerBlock::unpackXtalData(), and DCCSCBlock::unpackXtalData().