|
|
Go to the documentation of this file.
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::pair< unsigned int, unsigned int > unpack(cond::Time_t since)
unsigned int getActiveSM()
EcalPseudoStripInputDigi * pPS_
static std::atomic< bool > silentMode_
EcalTriggerPrimitiveDigi * pTP_
DCCDataUnpacker * unpacker_
bool checkTccIdAndNumbTTs() override
unsigned int getActiveDCC()
unsigned int getLength() override
std::unique_ptr< EcalTrigPrimDigiCollection > * tps_
std::vector< unsigned int > * getTccs(unsigned int smId)
EcalPseudoStripInputDigi * getPSInputDigiPointer(unsigned int tccId, unsigned int towerId, unsigned int psId)
void setSample(int i, const EcalTriggerPrimitiveSample &sam)
std::unique_ptr< EcalPSInputDigiCollection > * pss_
void addTriggerPrimitivesToCollection() override
std::unique_ptr< EcalPSInputDigiCollection > * ecalPSsCollection()
EcalElectronicsMapper * mapper_
EcalTriggerPrimitiveDigi * getTPPointer(unsigned int tccId, unsigned int tower)
DCCEETCCBlock(DCCDataUnpacker *u, EcalElectronicsMapper *m, DCCEventBlock *e, bool unpacking)
bool isTCCExternal(unsigned int TCCId)
unsigned long long uint64_t
void updateCollectors() override
std::unique_ptr< EcalTrigPrimDigiCollection > * ecalTpsCollection()
unsigned int blockLength_