228 cout <<
"CTP7 Payload Header:" << endl;
232 bool negativeEta =
false;
234 for(uint32_t
i = 0;
i < 2;
i++) {
235 if(
i != 0) negativeEta =
true;
238 for(uint32_t cEta = 1; cEta <= 28; cEta++) {
239 for(uint32_t iPhi = 0; iPhi < 4; iPhi++) {
241 getET(cType, negativeEta, cEta, iPhi) != 0) {
242 if(
first)
cout <<
"EcalET FG LinkStatus" << endl;
244 cout <<
dec << setfill(
' ') << setw(6) <<
getET(cType, negativeEta, cEta, iPhi) <<
" "
245 <<
getFB(cType, negativeEta, cEta, iPhi) <<
" "
246 << showbase <<
internal << setfill(
'0') << setw(10) << hex <<
getLinkStatus(cType, negativeEta, cEta, iPhi)
247 <<
" (" <<
dec <<
getIndex(cType, negativeEta, cEta, iPhi) <<
", " << negativeEta <<
", " << cEta <<
", " << iPhi <<
")"
254 for(uint32_t cEta = 1; cEta <= 28; cEta++) {
255 for(uint32_t iPhi = 0; iPhi < 4; iPhi++) {
257 getET(cType, negativeEta, cEta, iPhi) != 0) {
258 if(
first)
cout <<
"HcalET Feature LinkStatus" << endl;
260 cout <<
dec << setfill(
' ') << setw(6) <<
getET(cType, negativeEta, cEta, iPhi) <<
" "
261 <<
getFB(cType, negativeEta, cEta, iPhi) <<
" "
262 << showbase <<
internal << setfill(
'0') << setw(10) << hex <<
getLinkStatus(cType, negativeEta, cEta, iPhi)
263 <<
" (" <<
dec <<
getIndex(cType, negativeEta, cEta, iPhi) <<
", " << negativeEta <<
", " << cEta <<
", " << iPhi <<
")"
270 for(uint32_t cEta = 30; cEta <= 40; cEta++) {
271 for(uint32_t iPhi = 0; iPhi < 2; iPhi++) {
272 if(iPhi == 1 && cEta == 40) cEta = 41;
274 getET(cType, negativeEta, cEta, iPhi) != 0) {
275 if(
first)
cout <<
"HF-ET Feature LinkStatus" << endl;
277 cout <<
dec << setfill(
' ') << setw(6) <<
getET(cType, negativeEta, cEta, iPhi) <<
" "
279 << showbase <<
internal << setfill(
'0') << setw(10) << hex <<
getLinkStatus(cType, negativeEta, cEta, iPhi)
280 <<
" (" <<
dec <<
getIndex(cType, negativeEta, cEta, iPhi) <<
", " << negativeEta <<
", " << cEta <<
", " << iPhi <<
")"
uint32_t getHFFeatureBits(bool negativeEta, uint32_t cEta, uint32_t iPhi)
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 getET(CaloType cType, bool negativeEta, uint32_t cEta, uint32_t iPhi)
bool getFB(CaloType cType, bool negativeEta, uint32_t cEta, uint32_t iPhi)