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_);
70 (*tps_)->push_back(*
pTP_);
84 (*pss_)->push_back(*
pPS_);
99 (*tps_)->push_back(*
pTP_);
117 (*pss_)->push_back(*
pPS_);
128 if(
i>8 &&
i<=16 )
continue;
141 (*tps_)->push_back(*
pTP_);
154 (*pss_)->push_back(*
pPS_);
165 if(tt>8 && tt<=16 )
continue;
175 (*tps_)->push_back(*
pTP_);
185 bool tccFound(
false);
186 bool errorOnNumbOfTTs(
false);
189 std::vector<unsigned int>::iterator it;
190 for(it= m->begin();it!=m->end();it++){
211 <<
"\n TCC id "<<
tccId_<<
" has "<<
nTTs_<<
" Trigger Towers (only 28 or 16 are the expected values in EE)"
212 <<
"\n => Skipping to next fed block...";
213 errorOnNumbOfTTs =
true;
225 <<
"\n TCC id "<<
tccId_<<
" is not valid for this dcc "
226 <<
"\n => Skipping to next fed block...";
232 return (tccFound || errorOnNumbOfTTs);
247 unsigned int length = numbTps/4 + 2;
248 if(numbTps%4) length++ ;
std::vector< unsigned int > * getTccs(unsigned int smId)
unsigned int getActiveDCC()
EcalPseudoStripInputDigi * pPS_
bool checkTccIdAndNumbTTs()
std::auto_ptr< EcalTrigPrimDigiCollection > * tps_
std::auto_ptr< EcalPSInputDigiCollection > * ecalPSsCollection()
void addTriggerPrimitivesToCollection()
void setSample(int i, const EcalTriggerPrimitiveSample &sam)
static std::atomic< bool > silentMode_
std::auto_ptr< EcalPSInputDigiCollection > * pss_
DCCEETCCBlock(DCCDataUnpacker *u, EcalElectronicsMapper *m, DCCEventBlock *e, bool unpacking)
unsigned int blockLength_
EcalTriggerPrimitiveDigi * pTP_
unsigned int offset(bool)
EcalPseudoStripInputDigi * getPSInputDigiPointer(unsigned int tccId, unsigned int towerId, unsigned int psId)
unsigned long long uint64_t
DCCDataUnpacker * unpacker_
std::auto_ptr< EcalTrigPrimDigiCollection > * ecalTpsCollection()
EcalTriggerPrimitiveDigi * getTPPointer(unsigned int tccId, unsigned int tower)
bool isTCCExternal(unsigned int TCCId)
EcalElectronicsMapper * mapper_
unsigned int getActiveSM()