Fill histograms.
164 unsigned int numberOfSeriousErrors = 0;
168 if( isearch != input.
end() ) {
171 for(di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
172 int FedId = di->getFedId();
174 int errorType = di->getType();
175 int TBMType=-1;
int TBMMessage=-1;
int evtSize=-1;
int evtNbr=-1;
int fullType=-1;
182 if(errorType == 32 || errorType == 33 || errorType == 34) {
183 long long errorWord = di->getWord64();
184 chanNmbr = (errorWord >>
LINK_shift) & LINK_mask;
187 uint32_t errorWord = di->getWord32();
188 chanNmbr = (errorWord >>
LINK_shift) & LINK_mask;
215 uint32_t BLOCK_mask = ~(~uint32_t(0) << BLOCK_bits);
216 int BLOCK = (errorWord >> BLOCK_shift) & BLOCK_mask;
217 int localCH = 1*CH1+2*CH2+3*CH3+4*CH4+5*CH5;
218 if (BLOCK%2==0) chanNmbr=(BLOCK/2)*9+localCH;
219 else chanNmbr = ((BLOCK-1)/2)*9+4+localCH;
220 if ((chanNmbr<1)||(chanNmbr>36)) chanNmbr=0;
231 if (T0==1) TBMMessage=0;
232 if (T1==1) TBMMessage=1;
233 if (T2==1) TBMMessage=2;
234 if (T3==1) TBMMessage=3;
235 if (T4==1) TBMMessage=4;
236 if (T5==1) TBMMessage=5;
237 if (T6==1) TBMMessage=6;
238 if (T7==1) TBMMessage=7;
240 int StateMach_bits = 4;
241 int StateMach_shift = 8;
242 uint32_t StateMach_mask = ~(~uint32_t(0) << StateMach_bits);
243 int StateMach = (errorWord >> StateMach_shift) & StateMach_mask;
248 case(1) :
case(9) : {
251 case(2) :
case(4) :
case(6) : {
257 default : TBMType = 4;
279 if(errorType == 32 || errorType == 33 || errorType == 34){
280 long long errorWord = di->getWord64();
282 chanNmbr = (errorWord >>
LINK_shift) & LINK_mask;
284 uint32_t errorWord = di->getWord32();
285 chanNmbr = (errorWord >>
LINK_shift) & LINK_mask;
312 uint32_t BLOCK_mask = ~(~uint32_t(0) << BLOCK_bits);
313 int BLOCK = (errorWord >> BLOCK_shift) & BLOCK_mask;
314 int localCH = 1*CH1+2*CH2+3*CH3+4*CH4+5*CH5;
315 if (BLOCK%2==0) chanNmbr=(BLOCK/2)*9+localCH;
316 else chanNmbr = ((BLOCK-1)/2)*9+4+localCH;
317 if ((chanNmbr<1)||(chanNmbr>36)) chanNmbr=0;
328 if (T0==1) TBMMessage=0;
329 if (T1==1) TBMMessage=1;
330 if (T2==1) TBMMessage=2;
331 if (T3==1) TBMMessage=3;
332 if (T4==1) TBMMessage=4;
333 if (T5==1) TBMMessage=5;
334 if (T6==1) TBMMessage=6;
335 if (T7==1) TBMMessage=7;
336 int StateMach_bits = 4;
337 int StateMach_shift = 8;
338 uint32_t StateMach_mask = ~(~uint32_t(0) << StateMach_bits);
339 int StateMach = (errorWord >> StateMach_shift) & StateMach_mask;
344 case(1) :
case(9) : {
347 case(2) :
case(4) :
case(6) : {
353 default : TBMType = 4;
374 if(bladeon && endcap){
375 if(errorType == 32 || errorType == 33 || errorType == 34){
376 long long errorWord = di->getWord64();
378 chanNmbr = (errorWord >>
LINK_shift) & LINK_mask;
380 uint32_t errorWord = di->getWord32();
381 chanNmbr = (errorWord >>
LINK_shift) & LINK_mask;
408 uint32_t BLOCK_mask = ~(~uint32_t(0) << BLOCK_bits);
409 int BLOCK = (errorWord >> BLOCK_shift) & BLOCK_mask;
410 int localCH = 1*CH1+2*CH2+3*CH3+4*CH4+5*CH5;
411 if (BLOCK%2==0) chanNmbr=(BLOCK/2)*9+localCH;
412 else chanNmbr = ((BLOCK-1)/2)*9+4+localCH;
413 if ((chanNmbr<1)||(chanNmbr>36)) chanNmbr=0;
424 if (T0==1) TBMMessage=0;
425 if (T1==1) TBMMessage=1;
426 if (T2==1) TBMMessage=2;
427 if (T3==1) TBMMessage=3;
428 if (T4==1) TBMMessage=4;
429 if (T5==1) TBMMessage=5;
430 if (T6==1) TBMMessage=6;
431 if (T7==1) TBMMessage=7;
432 int StateMach_bits = 4;
433 int StateMach_shift = 8;
434 uint32_t StateMach_mask = ~(~uint32_t(0) << StateMach_bits);
435 int StateMach = (errorWord >> StateMach_shift) & StateMach_mask;
440 case(1) :
case(9) : {
443 case(2) :
case(4) :
case(6) : {
449 default : TBMType = 4;
470 if(!(FedId==38&&chanNmbr==7)){
471 if(errorType==29 || (errorType==30 && TBMType==1)){
475 static const char chNfmt[] =
"Pixel/AdditionalPixelErrors/FED_%d/FedChNErrArray_%d";
476 char chNbuf[
sizeof(chNfmt) + 2*32];
477 sprintf(chNbuf, chNfmt, FedId, chanNmbr);
482 static const char chLfmt[] =
"Pixel/AdditionalPixelErrors/FED_%d/FedChLErrArray_%d";
483 char chLbuf[
sizeof(chLfmt) + 2*32];
484 sprintf(chLbuf, chLfmt, FedId, chanNmbr);
489 numberOfSeriousErrors++;
490 int messageType = 99;
491 if(errorType<30) messageType = errorType-25;
492 else if(errorType>30) messageType = errorType-19;
493 else if(errorType==30 && TBMMessage==0) messageType = errorType-25;
494 else if(errorType==30 && TBMMessage==1) messageType = errorType-24;
495 else if(errorType==30 && (TBMMessage==2 || TBMMessage==3 || TBMMessage==4)) messageType = errorType-23;
496 else if(errorType==30 && TBMMessage==7) messageType = errorType-22;
497 else if(errorType==30 && TBMType==1) messageType = errorType-21;
498 else if(errorType==30 && TBMType==2) messageType = errorType-20;
499 else if(errorType==30 && TBMType==3) messageType = errorType-19;
501 static const char fmt[] =
"Pixel/AdditionalPixelErrors/FED_%d/FedETypeNErrArray_%d";
502 char buf[
sizeof(
fmt) + 2*32];
503 sprintf(buf, fmt, FedId, messageType);
511 static const char buf[] =
"Pixel/AdditionalPixelErrors/FED_%d";
512 char feddir[
sizeof(buf)+2];
513 sprintf(feddir,buf,FedId);
516 static const char buf1[] =
"Pixel/AdditionalPixelErrors/FED_%d/NErrors_siPixelDigis_%d";
517 char hname1[
sizeof(buf1)+4];
518 sprintf(hname1,buf1,FedId,FedId);
519 me = theDMBE->get(hname1);
520 if(me) me->
Fill((
int)numberOfSeriousErrors);
521 static const char buf2[] =
"Pixel/AdditionalPixelErrors/FED_%d/TBMMessage_siPixelDigis_%d";
522 char hname2[
sizeof(buf2)+4];
523 sprintf(hname2,buf2,FedId,FedId);
524 me = theDMBE->get(hname2);
525 if(me) me->
Fill((
int)TBMMessage);
526 static const char buf3[] =
"Pixel/AdditionalPixelErrors/FED_%d/TBMType_siPixelDigis_%d";
527 char hname3[
sizeof(buf3)+4];
528 sprintf(hname3,buf3,FedId,FedId);
529 me = theDMBE->get(hname3);
530 if(me) me->
Fill((
int)TBMType);
531 static const char buf4[] =
"Pixel/AdditionalPixelErrors/FED_%d/errorType_siPixelDigis_%d";
532 char hname4[
sizeof(buf4)+4];
533 sprintf(hname4,buf4,FedId,FedId);
534 me = theDMBE->get(hname4);
535 if(me) me->
Fill((
int)errorType);
536 static const char buf5[] =
"Pixel/AdditionalPixelErrors/FED_%d/fullType_siPixelDigis_%d";
537 char hname5[
sizeof(buf5)+4];
538 sprintf(hname5,buf5,FedId,FedId);
539 me = theDMBE->get(hname5);
540 if(me) me->
Fill((
int)fullType);
541 static const char buf6[] =
"Pixel/AdditionalPixelErrors/FED_%d/EvtNbr_siPixelDigis_%d";
542 char hname6[
sizeof(buf6)+4];
543 sprintf(hname6,buf6,FedId,FedId);
544 me = theDMBE->get(hname6);
545 if(me) me->
Fill((
int)evtNbr);
546 static const char buf7[] =
"Pixel/AdditionalPixelErrors/FED_%d/evtSize_siPixelDigis_%d";
547 char hname7[
sizeof(buf7)+4];
548 sprintf(hname7,buf7,FedId,FedId);
549 me = theDMBE->get(hname7);
550 if(me) me->
Fill((
int)evtSize);
551 theDMBE->cd(currDir);
556 return numberOfSeriousErrors;
MonitorElement * meFullType_
iterator find(det_id_type id)
MonitorElement * meFedChLErrArray_[37]
static const int DB6_shift
static const int LINK_bits
MonitorElement * meFedChNErrArray_[37]
static const int DB3_shift
static const int LINK_shift
MonitorElement * meFedETypeNErrArray_[21]
static const uint32_t ADC_mask
static const uint32_t DataBit_mask
static const uint32_t LINK_mask
static const int DB7_shift
static const int DB5_shift
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
static const int DB1_shift
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
iterator end()
Return the off-the-end iterator.
static const int EVTLGT_shift
static const int DB4_shift
static const int DB0_shift
static const long long EVTLGT_mask
static const int ADC_shift
iterator begin()
Return an iterator to the first DetSet.
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
static const int DB2_shift