54 <<
"\n For event L1A: "<<
l1_
55 <<
"\n Expected FED id is: "<<expFedId<<
" while current FED id is: "<<
fedId_
56 <<
"\n => Skipping to next fed block...";
68 <<
"\n Event L1A: "<<
l1_<<
" is empty for fed: "<<
fedId_
69 <<
"\n => Skipping to next fed block...";
79 <<
"\n Event L1A: "<<
l1_<<
" in fed: "<<
fedId_
81 <<
"\n => Skipping to next fed block...";
101 <<
"\n Event L1A: "<<
l1_<<
" in fed: "<<
fedId_
103 <<
"\n => Skipping to next fed block...";
145 for(
int dw = 0; dw<5; dw++ ){
147 for(
int i = 0;
i<14;
i++, channel++){
158 std::vector<short>::iterator it;
179 unsigned int numbChannels(0);
186 <<
"\n Event L1A: "<<
l1_<<
" in fed: "<<
fedId_
187 <<
"\n Event has an unsupported trigger type "<<
triggerType_
188 <<
"\n => Skipping to next fed block...";
202 unsigned int next_tower_id = 1000;
204 unsigned int next_dwToEnd =
dwToEnd_;
207 for(
unsigned int chNumber=1; chNumber<= numbChannels && STATUS!=
STOP_EVENT_UNPACKING; chNumber++, it++ ){
210 const short chStatus(*it);
230 const bool ttProblem = (val == 13) || (val == 14);
233 <<
"Bad channel status: " << chStatus
234 <<
" in the DCC channel: " << chNumber
235 <<
" (LV1 " <<
l1_ <<
" fed " <<
fedId_ <<
")\n"
236 <<
" => DCC channel is not being unpacked";
244 const unsigned int prev_dwToEnd =
dwToEnd_;
247 if (chNumber >= next_tower_id) {
250 next_tower_id = 1000;
317 std::vector<short>::iterator it;
318 unsigned int tccChId(0);
DCCEEEventBlock(DCCDataUnpacker *u, EcalElectronicsMapper *m, bool hU, bool srpU, bool tccU, bool feU, bool memU, bool forceToKeepFRdata)
int unpack(const uint64_t **data, unsigned int *dwToEnd, short tccChId=0)
int unpack(const uint64_t **data, unsigned int *dwToEnd, bool zs, unsigned int expectedTowerID)
unsigned int detailedTriggerType_
unsigned int blockLength_
unsigned int triggerType_
DCCDataUnpacker * unpacker_
unsigned short srFlag(unsigned int feChannel)
uint16_t getCCUValue(const int fed, const int ccu) const
unsigned int orbitCounter_
std::vector< short > feChStatus_
unsigned long long uint64_t
void unpack(const uint64_t *buffer, size_t bufferSize, unsigned int expFedId)
int unpack(const uint64_t **data, unsigned int *dwToEnd, unsigned int numbFlags=SRP_NUMBFLAGS)
static unsigned int const shift
void addHeaderToCollection()
unsigned int next_tower_search(const unsigned int current_tower_id)
std::vector< short > tccChStatus_
int unpack(const uint64_t **data, unsigned int *dwToEnd, unsigned int expectedTowerID)