254 LogError(
"UCTCTP7RawData") <<
"CTP7 Payload Header:" << endl;
258 bool negativeEta =
false;
260 for(uint32_t
i = 0;
i < 2;
i++) {
261 if(
i != 0) negativeEta =
true;
264 for(uint32_t cEta = 1; cEta <= 28; cEta++) {
265 for(uint32_t iPhi = 0; iPhi < 4; iPhi++) {
267 getET(cType, negativeEta, cEta, iPhi) != 0) {
268 if(
first)
LogError(
"UCTCTP7RawData") <<
"EcalET FG LinkStatus" << endl;
270 LogError(
"UCTCTP7RawData") <<
dec << setfill(
' ') << setw(6) <<
getET(cType, negativeEta, cEta, iPhi) <<
" "
271 <<
getFB(cType, negativeEta, cEta, iPhi) <<
" "
272 << showbase <<
internal << setfill(
'0') << setw(10) << hex <<
getLinkStatus(cType, negativeEta, cEta, iPhi)
273 <<
" (" <<
dec <<
getIndex(cType, negativeEta, cEta, iPhi) <<
", " << negativeEta <<
", " << cEta <<
", " << iPhi <<
")"
280 for(uint32_t cEta = 1; cEta <= 28; cEta++) {
281 for(uint32_t iPhi = 0; iPhi < 4; iPhi++) {
283 getET(cType, negativeEta, cEta, iPhi) != 0) {
284 if(
first)
LogError(
"UCTCTP7RawData") <<
"HcalET Feature LinkStatus" << endl;
286 LogError(
"UCTCTP7RawData") <<
dec << setfill(
' ') << setw(6) <<
getET(cType, negativeEta, cEta, iPhi) <<
" "
287 <<
getFB(cType, negativeEta, cEta, iPhi) <<
" "
288 << showbase <<
internal << setfill(
'0') << setw(10) << hex <<
getLinkStatus(cType, negativeEta, cEta, iPhi)
289 <<
" (" <<
dec <<
getIndex(cType, negativeEta, cEta, iPhi) <<
", " << negativeEta <<
", " << cEta <<
", " << iPhi <<
")"
296 for(uint32_t cEta = 30; cEta <= 40; cEta++) {
297 for(uint32_t iPhi = 0; iPhi < 2; iPhi++) {
298 if(iPhi == 1 && cEta == 40) cEta = 41;
300 getET(cType, negativeEta, cEta, iPhi) != 0) {
301 if(
first)
LogError(
"UCTCTP7RawData") <<
"HF-ET Feature LinkStatus" << endl;
303 LogError(
"UCTCTP7RawData") <<
dec << setfill(
' ') << setw(6) <<
getET(cType, negativeEta, cEta, iPhi) <<
" "
305 << showbase <<
internal << setfill(
'0') << setw(10) << hex <<
getLinkStatus(cType, negativeEta, cEta, iPhi)
306 <<
" (" <<
dec <<
getIndex(cType, negativeEta, cEta, iPhi) <<
", " << negativeEta <<
", " << cEta <<
", " << iPhi <<
")"
313 if(
first)
LogError(
"UCTCTP7RawData") <<
"Region ET EGVeto TauVeto HitLocation" << endl;
316 <<
" " << hex << showbase <<
internal << setfill(
'0') << setw(6) <<
getRegionET(negativeEta,
region) <<
dec
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)