24 bool processTPG2(
true) ;
25 unsigned int psInputCounter(0);
27 const uint16_t * tccP_=
reinterpret_cast<const uint16_t *
>(
data_);
34 <<
"\n FOV value in data is: " << dccFOV <<
36 <<
"\n TCC id "<<
tccId_<<
" FOV "<< dccFOV <<
" which is not a foreseen value. Setting it to: " <<
dcc_FOV_2;
54 (*pss_)->push_back(*
pPS_);
71 else edm::LogError(
"IncorrectBlock")<<
"trigger primitive digi was not aquired";
85 (*pss_)->push_back(*
pPS_);
100 (*tps_)->push_back(*
pTP_);
118 (*pss_)->push_back(*
pPS_);
129 if(
i>8 &&
i<=16 )
continue;
142 if (
pTP_) (*tps_)->push_back(*
pTP_);
143 else edm::LogError(
"IncorrectBlock")<<
"trigger primitive digi was not aquired";
156 (*pss_)->push_back(*
pPS_);
167 if(tt>8 && tt<=16 )
continue;
177 (*tps_)->push_back(*
pTP_);
187 bool tccFound(
false);
188 bool errorOnNumbOfTTs(
false);
191 std::vector<unsigned int>::iterator it;
192 for(it= m->begin();it!=m->end();it++){
213 <<
"\n TCC id "<<
tccId_<<
" has "<<
nTTs_<<
" Trigger Towers (only 28 or 16 are the expected values in EE)" 214 <<
"\n => Skipping to next fed block...";
215 errorOnNumbOfTTs =
true;
227 <<
"\n TCC id "<<
tccId_<<
" is not valid for this dcc " 228 <<
"\n => Skipping to next fed block...";
234 return (tccFound || errorOnNumbOfTTs);
249 unsigned int length = numbTps/4 + 2;
250 if(numbTps%4) length++ ;
std::vector< unsigned int > * getTccs(unsigned int smId)
unsigned int getLength() override
unsigned int getActiveDCC()
EcalPseudoStripInputDigi * pPS_
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()
unsigned int getActiveSM()