320 myMap_ -> deletePointers();
321 myMap_ -> resetPointers();
328 std::vector<int> FEDS_to_unpack;
332 FEDS_to_unpack = listoffeds -> GetList();
346 auto productDigisEB = std::make_unique<EBDigiCollection>();
347 productDigisEB->reserve(1700);
351 auto productDigisEE = std::make_unique<EEDigiCollection>();
355 auto productDccHeaders = std::make_unique<EcalRawDataCollection>();
359 auto productInvalidGains = std::make_unique<EBDetIdCollection>();
363 auto productInvalidGainsSwitch = std::make_unique<EBDetIdCollection>();
367 auto productInvalidChIds = std::make_unique<EBDetIdCollection>();
373 auto productInvalidEEGains = std::make_unique<EEDetIdCollection>();
377 auto productInvalidEEGainsSwitch = std::make_unique<EEDetIdCollection>();
381 auto productInvalidEEChIds = std::make_unique<EEDetIdCollection>();
387 auto productEBSrFlags = std::make_unique<EBSrFlagCollection>();
391 auto productEESrFlags = std::make_unique<EESrFlagCollection>();
395 auto productEcalTps = std::make_unique<EcalTrigPrimDigiCollection>();
400 auto productEcalPSs = std::make_unique<EcalPSInputDigiCollection>();
405 auto productInvalidTTIds = std::make_unique<EcalElectronicsIdCollection>();
409 auto productInvalidZSXtalIds = std::make_unique<EcalElectronicsIdCollection>();
415 auto productInvalidBlockLengths = std::make_unique<EcalElectronicsIdCollection>();
420 auto productPnDiodeDigis = std::make_unique<EcalPnDiodeDigiCollection>();
424 auto productInvalidMemTtIds = std::make_unique<EcalElectronicsIdCollection>();
428 auto productInvalidMemBlockSizes = std::make_unique<EcalElectronicsIdCollection>();
432 auto productInvalidMemChIds = std::make_unique<EcalElectronicsIdCollection>();
436 auto productInvalidMemGains = std::make_unique<EcalElectronicsIdCollection>();
445 std::vector<int>::const_iterator fed_it =
find(FEDS_to_unpack.begin(), FEDS_to_unpack.end(), *
i);
446 if (fed_it == FEDS_to_unpack.end())
continue;
452 const size_t length = fedData.
size();
454 LogDebug(
"EcalRawToDigi") <<
"raw data length: " << length ;
461 LogDebug(
"EcalRawToDigi") <<
"Getting FED = " << *
i <<
"(SM = "<<smId<<
")"<<
" data size is: " << length;
466 LogDebug(
"EcalRawToDigi") <<
" in EE :"<<productDigisEE->size()
467 <<
" in EB :"<<productDigisEB->size();
488 productDigisEB->sort();
490 productDigisEE->sort();
492 e.
put(
std::move(productInvalidGains),
"EcalIntegrityGainErrors");
493 e.
put(
std::move(productInvalidGainsSwitch),
"EcalIntegrityGainSwitchErrors");
494 e.
put(
std::move(productInvalidChIds),
"EcalIntegrityChIdErrors");
496 e.
put(
std::move(productInvalidEEGains),
"EcalIntegrityGainErrors");
497 e.
put(
std::move(productInvalidEEGainsSwitch),
"EcalIntegrityGainSwitchErrors");
498 e.
put(
std::move(productInvalidEEChIds),
"EcalIntegrityChIdErrors");
500 e.
put(
std::move(productInvalidTTIds),
"EcalIntegrityTTIdErrors");
501 e.
put(
std::move(productInvalidZSXtalIds),
"EcalIntegrityZSXtalIdErrors");
502 e.
put(
std::move(productInvalidBlockLengths),
"EcalIntegrityBlockSizeErrors");
506 e.
put(
std::move(productInvalidMemTtIds),
"EcalIntegrityMemTtIdErrors");
507 e.
put(
std::move(productInvalidMemBlockSizes),
"EcalIntegrityMemBlockSizeErrors");
508 e.
put(
std::move(productInvalidMemChIds),
"EcalIntegrityMemChIdErrors");
509 e.
put(
std::move(productInvalidMemGains),
"EcalIntegrityMemGainErrors");
516 e.
put(
std::move(productEcalTps),
"EcalTriggerPrimitives");
517 e.
put(
std::move(productEcalPSs),
"EcalPseudoStripInputs");
void setInvalidEEChIdsCollection(std::unique_ptr< EEDetIdCollection > *x)
edm::ESWatcher< EcalMappingRcd > watcher_
void setInvalidGainsCollection(std::unique_ptr< EBDetIdCollection > *x)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void unpack(const uint64_t *buffer, size_t bufferSize, unsigned int smId, unsigned int fedId)
edm::EDGetTokenT< FEDRawDataCollection > dataToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setPnDiodeDigisCollection(std::unique_ptr< EcalPnDiodeDigiCollection > *x)
void setInvalidTTIdsCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
void setInvalidBlockLengthsCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
void setInvalidGainsSwitchCollection(std::unique_ptr< EBDetIdCollection > *x)
void setInvalidZSXtalIdsCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
size_t size() const
Lenght of the data buffer in bytes.
std::vector< int > fedUnpackList_
DCCDataUnpacker * theUnpacker_
void setInvalidMemChIdsCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void setEBSrFlagsCollection(std::unique_ptr< EBSrFlagCollection > *x)
void setInvalidMemBlockSizesCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
void setEcalTpsCollection(std::unique_ptr< EcalTrigPrimDigiCollection > *x)
bool setActiveDCC(unsigned int dccId)
void setInvalidMemTtIdsCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
void setInvalidEEGainsSwitchCollection(std::unique_ptr< EEDetIdCollection > *x)
void setEEDigisCollection(std::unique_ptr< EEDigiCollection > *x)
edm::EDGetTokenT< EcalListOfFEDS > fedsToken_
void setEcalPSsCollection(std::unique_ptr< EcalPSInputDigiCollection > *x)
void setEESrFlagsCollection(std::unique_ptr< EESrFlagCollection > *x)
void setInvalidEEGainsCollection(std::unique_ptr< EEDetIdCollection > *x)
unsigned long long uint64_t
bool check(const edm::EventSetup &iSetup)
void setDccHeadersCollection(std::unique_ptr< EcalRawDataCollection > *x)
char data[epos_bytes_allocation]
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
void setInvalidChIdsCollection(std::unique_ptr< EBDetIdCollection > *x)
void setInvalidMemGainsCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
EcalElectronicsMapper * myMap_
void setEBDigisCollection(std::unique_ptr< EBDigiCollection > *x)
unsigned int getActiveSM()
T const * product() const