266 LogError(
"UCTCTP7RawData") <<
"CTP7 Payload Header:" << endl;
270 bool negativeEta =
false;
272 for(uint32_t
i = 0;
i < 2;
i++) {
273 if(
i != 0) negativeEta =
true;
276 for(uint32_t cEta = 1; cEta <= 28; cEta++) {
277 for(uint32_t iPhi = 0; iPhi < 4; iPhi++) {
279 getET(cType, negativeEta, cEta, iPhi) != 0) {
280 if(first)
LogError(
"UCTCTP7RawData") <<
"EcalET FG LinkStatus" << endl;
282 LogError(
"UCTCTP7RawData") <<
dec << setfill(
' ') << setw(6) <<
getET(cType, negativeEta, cEta, iPhi) <<
" " 283 <<
getFB(cType, negativeEta, cEta, iPhi) <<
" " 284 << showbase <<
internal << setfill(
'0') << setw(10) << hex <<
getLinkStatus(cType, negativeEta, cEta, iPhi)
285 <<
" (" <<
dec <<
getIndex(cType, negativeEta, cEta, iPhi) <<
", " << negativeEta <<
", " << cEta <<
", " << iPhi <<
")" 292 for(uint32_t cEta = 1; cEta <= 28; cEta++) {
293 for(uint32_t iPhi = 0; iPhi < 4; iPhi++) {
295 getET(cType, negativeEta, cEta, iPhi) != 0) {
296 if(first)
LogError(
"UCTCTP7RawData") <<
"HcalET Feature LinkStatus" << endl;
298 LogError(
"UCTCTP7RawData") <<
dec << setfill(
' ') << setw(6) <<
getET(cType, negativeEta, cEta, iPhi) <<
" " 299 <<
getFB(cType, negativeEta, cEta, iPhi) <<
" " 300 << showbase <<
internal << setfill(
'0') << setw(10) << hex <<
getLinkStatus(cType, negativeEta, cEta, iPhi)
301 <<
" (" <<
dec <<
getIndex(cType, negativeEta, cEta, iPhi) <<
", " << negativeEta <<
", " << cEta <<
", " << iPhi <<
")" 308 for(uint32_t cEta = 30; cEta <= 40; cEta++) {
309 for(uint32_t iPhi = 0; iPhi < 2; iPhi++) {
310 if(iPhi == 1 && cEta == 40) cEta = 41;
312 getET(cType, negativeEta, cEta, iPhi) != 0) {
313 if(first)
LogError(
"UCTCTP7RawData") <<
"HF-ET Feature LinkStatus" << endl;
315 LogError(
"UCTCTP7RawData") <<
dec << setfill(
' ') << setw(6) <<
getET(cType, negativeEta, cEta, iPhi) <<
" " 317 << showbase <<
internal << setfill(
'0') << setw(10) << hex <<
getLinkStatus(cType, negativeEta, cEta, iPhi)
318 <<
" (" <<
dec <<
getIndex(cType, negativeEta, cEta, iPhi) <<
", " << negativeEta <<
", " << cEta <<
", " << iPhi <<
")" 324 for(uint32_t region = 0; region < 7; region++) {
325 if(first)
LogError(
"UCTCTP7RawData") <<
"Region ET EGVeto TauVeto HitLocation" << endl;
327 LogError(
"UCTCTP7RawData") <<
dec << setfill(
' ') << setw(6) << region
328 <<
" " << hex << showbase <<
internal << setfill(
'0') << setw(6) <<
getRegionET(negativeEta, region) <<
dec 331 <<
" " << showbase <<
internal << setfill(
'0') << setw(3) << hex <<
getRegionHitLocation(negativeEta, region)
uint32_t getFB(CaloType cType, bool negativeEta, uint32_t cEta, uint32_t iPhi)
bool getRegionTauVeto(bool negativeEta, uint32_t region)
uint32_t getHFFeatureBits(bool negativeEta, uint32_t cEta, uint32_t iPhi)
bool getRegionEGVeto(bool negativeEta, uint32_t region)
uint32_t getLinkStatus(CaloType cType, bool negativeEta, uint32_t cEta, uint32_t iPhi)
uint32_t getIndex(CaloType cType, bool negativeEta, uint32_t cEta, uint32_t iPhi)
uint32_t getRegionET(bool negativeEta, uint32_t region)
uint32_t getET(CaloType cType, bool negativeEta, uint32_t cEta, uint32_t iPhi)
uint32_t getRegionHitLocation(bool negativeEta, uint32_t region)