20 bool processTPG2(
true);
21 unsigned int psInputCounter(0);
23 const uint16_t* tccP_ =
reinterpret_cast<const uint16_t*
>(
data_);
30 <<
"\n TCC id " <<
tccId_ <<
" FOV " << dccFOV
31 <<
" which is not a foreseen value. Setting it to: " <<
dcc_FOV_2;
47 (*pss_)->push_back(*
pPS_);
65 (*tps_)->push_back(*
pTP_);
67 edm::LogError(
"IncorrectBlock") <<
"trigger primitive digi was not aquired";
81 (*pss_)->push_back(*
pPS_);
96 (*tps_)->push_back(*
pTP_);
113 (*pss_)->push_back(*
pPS_);
124 if (
i > 8 &&
i <= 16)
142 (*tps_)->push_back(*
pTP_);
144 edm::LogError(
"IncorrectBlock") <<
"trigger primitive digi was not aquired";
158 (*pss_)->push_back(*
pPS_);
168 if (
tt > 8 &&
tt <= 16)
182 (*tps_)->push_back(*
pTP_);
189 bool tccFound(
false);
190 bool errorOnNumbOfTTs(
false);
193 std::vector<unsigned int>::iterator it;
194 for (it =
m->begin(); it !=
m->end(); it++) {
214 <<
"Error on event " <<
event_->
l1A() <<
" with bx " <<
event_->
bx() <<
" in fed <<" 216 <<
" Trigger Towers (only 28 or 16 are the expected values in EE)" 217 <<
"\n => Skipping to next fed block...";
218 errorOnNumbOfTTs =
true;
229 <<
" is not valid for this dcc " 230 <<
"\n => Skipping to next fed block...";
235 return (tccFound || errorOnNumbOfTTs);
249 unsigned int length = numbTps / 4 + 2;
std::vector< unsigned int > * getTccs(unsigned int smId)
unsigned int getLength() override
std::pair< unsigned int, unsigned int > unpack(cond::Time_t since)
unsigned int getActiveDCC()
EcalPseudoStripInputDigi * pPS_
Log< level::Error, false > LogError
std::unique_ptr< EcalPSInputDigiCollection > * ecalPSsCollection()
std::unique_ptr< EcalTrigPrimDigiCollection > * tps_
void setSample(int i, const EcalTriggerPrimitiveSample &sam)
static std::atomic< bool > silentMode_
DCCEETCCBlock(DCCDataUnpacker *u, EcalElectronicsMapper *m, DCCEventBlock *e, bool unpacking)
std::unique_ptr< EcalPSInputDigiCollection > * pss_
unsigned int blockLength_
EcalTriggerPrimitiveDigi * pTP_
bool checkTccIdAndNumbTTs() override
EcalPseudoStripInputDigi * getPSInputDigiPointer(unsigned int tccId, unsigned int towerId, unsigned int psId)
unsigned long long uint64_t
void addTriggerPrimitivesToCollection() override
void updateCollectors() override
DCCDataUnpacker * unpacker_
EcalTriggerPrimitiveDigi * getTPPointer(unsigned int tccId, unsigned int tower)
bool isTCCExternal(unsigned int TCCId)
EcalElectronicsMapper * mapper_
std::unique_ptr< EcalTrigPrimDigiCollection > * ecalTpsCollection()
Log< level::Warning, false > LogWarning
unsigned int getActiveSM()