Fill histograms.
173 bool isHalfModule =
false;
174 uint32_t DBladder = 0;
185 unsigned int numberOfSeriousErrors = 0;
189 if( isearch != input.
end() ) {
192 for(di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
193 int FedId = di->getFedId();
195 int errorType = di->getType();
196 int TBMType=-1;
int TBMMessage=-1;
int evtSize=-1;
int evtNbr=-1;
int fullType=-1;
197 bool notReset =
true;
203 if(errorType == 32 || errorType == 33 || errorType == 34) {
204 long long errorWord = di->getWord64();
205 chanNmbr = (errorWord >>
LINK_shift) & LINK_mask;
208 uint32_t errorWord = di->getWord32();
209 chanNmbr = (errorWord >>
LINK_shift) & LINK_mask;
219 if (NFa==1) fullType = 1; (
meFullType_)->Fill((
int)fullType);
220 if (NFb==1) fullType = 2; (
meFullType_)->Fill((
int)fullType);
221 if (NFc==1) fullType = 3; (
meFullType_)->Fill((
int)fullType);
222 if (NFd==1) fullType = 4; (
meFullType_)->Fill((
int)fullType);
223 if (NFe==1) fullType = 5; (
meFullType_)->Fill((
int)fullType);
224 if (NF2==1) fullType = 6; (
meFullType_)->Fill((
int)fullType);
225 if (L1A==1) fullType = 7; (
meFullType_)->Fill((
int)fullType);
237 if (T0==1) TBMMessage=0;
238 if (T1==1) TBMMessage=1;
239 if (T2==1) TBMMessage=2;
240 if (T3==1) TBMMessage=3;
241 if (T4==1) TBMMessage=4;
242 if (T5==1) TBMMessage=5;
243 if (T6==1) TBMMessage=6;
244 if (T7==1) TBMMessage=7;
245 if(TBMMessage==5 || TBMMessage==6) notReset=
false;
246 int StateMach_bits = 4;
247 int StateMach_shift = 8;
248 uint32_t StateMach_mask = ~(~uint32_t(0) << StateMach_bits);
249 int StateMach = (errorWord >> StateMach_shift) & StateMach_mask;
254 case(1) :
case(9) : {
257 case(2) :
case(4) :
case(6) : {
263 default : TBMType = 4;
285 if(errorType == 32 || errorType == 33 || errorType == 34){
286 long long errorWord = di->getWord64();
288 chanNmbr = (errorWord >>
LINK_shift) & LINK_mask;
290 uint32_t errorWord = di->getWord32();
291 chanNmbr = (errorWord >>
LINK_shift) & LINK_mask;
301 if (NFa==1) fullType = 1; (
meFullType_)->Fill((
int)fullType);
302 if (NFb==1) fullType = 2; (
meFullType_)->Fill((
int)fullType);
303 if (NFc==1) fullType = 3; (
meFullType_)->Fill((
int)fullType);
304 if (NFd==1) fullType = 4; (
meFullType_)->Fill((
int)fullType);
305 if (NFe==1) fullType = 5; (
meFullType_)->Fill((
int)fullType);
306 if (NF2==1) fullType = 6; (
meFullType_)->Fill((
int)fullType);
307 if (L1A==1) fullType = 7; (
meFullType_)->Fill((
int)fullType);
319 if (T0==1) TBMMessage=0;
320 if (T1==1) TBMMessage=1;
321 if (T2==1) TBMMessage=2;
322 if (T3==1) TBMMessage=3;
323 if (T4==1) TBMMessage=4;
324 if (T5==1) TBMMessage=5;
325 if (T6==1) TBMMessage=6;
326 if (T7==1) TBMMessage=7;
327 int StateMach_bits = 4;
328 int StateMach_shift = 8;
329 uint32_t StateMach_mask = ~(~uint32_t(0) << StateMach_bits);
330 int StateMach = (errorWord >> StateMach_shift) & StateMach_mask;
335 case(1) :
case(9) : {
338 case(2) :
case(4) :
case(6) : {
344 default : TBMType = 4;
365 if(bladeon && endcap){
366 if(errorType == 32 || errorType == 33 || errorType == 34){
367 long long errorWord = di->getWord64();
369 chanNmbr = (errorWord >>
LINK_shift) & LINK_mask;
371 uint32_t errorWord = di->getWord32();
372 chanNmbr = (errorWord >>
LINK_shift) & LINK_mask;
382 if (NFa==1) fullType = 1; (
meFullType_)->Fill((
int)fullType);
383 if (NFb==1) fullType = 2; (
meFullType_)->Fill((
int)fullType);
384 if (NFc==1) fullType = 3; (
meFullType_)->Fill((
int)fullType);
385 if (NFd==1) fullType = 4; (
meFullType_)->Fill((
int)fullType);
386 if (NFe==1) fullType = 5; (
meFullType_)->Fill((
int)fullType);
387 if (NF2==1) fullType = 6; (
meFullType_)->Fill((
int)fullType);
388 if (L1A==1) fullType = 7; (
meFullType_)->Fill((
int)fullType);
400 if (T0==1) TBMMessage=0;
401 if (T1==1) TBMMessage=1;
402 if (T2==1) TBMMessage=2;
403 if (T3==1) TBMMessage=3;
404 if (T4==1) TBMMessage=4;
405 if (T5==1) TBMMessage=5;
406 if (T6==1) TBMMessage=6;
407 if (T7==1) TBMMessage=7;
408 int StateMach_bits = 4;
409 int StateMach_shift = 8;
410 uint32_t StateMach_mask = ~(~uint32_t(0) << StateMach_bits);
411 int StateMach = (errorWord >> StateMach_shift) & StateMach_mask;
416 case(1) :
case(9) : {
419 case(2) :
case(4) :
case(6) : {
425 default : TBMType = 4;
446 if(!(errorType==30) || notReset){
447 if(!(FedId==38&&chanNmbr==7)){
448 numberOfSeriousErrors++;
453 else if(errorType==30 && TBMMessage==0)
FedETypeNErrArray[FedId][errorType-25]++;
454 else if(errorType==30 && TBMMessage==1)
FedETypeNErrArray[FedId][errorType-24]++;
455 else if(errorType==30 && (TBMMessage==2 || TBMMessage==3 || TBMMessage==4))
FedETypeNErrArray[FedId][errorType-23]++;
456 else if(errorType==30 && TBMMessage==7)
FedETypeNErrArray[FedId][errorType-22]++;
462 if(!(FedId==38&&chanNmbr==7)){
463 std::string currDir = theDMBE->pwd();
464 static const char buf[] =
"Pixel/AdditionalPixelErrors/FED_%d";
465 char feddir[
sizeof(buf)+2];
466 sprintf(feddir,buf,FedId);
469 static const char buf1[] =
"Pixel/AdditionalPixelErrors/FED_%d/NErrors_siPixelDigis_%d";
470 char hname1[
sizeof(buf1)+4];
471 sprintf(hname1,buf1,FedId,FedId);
472 me = theDMBE->get(hname1);
473 if(me) me->
Fill((
int)numberOfSeriousErrors);
474 static const char buf2[] =
"Pixel/AdditionalPixelErrors/FED_%d/TBMMessage_siPixelDigis_%d";
475 char hname2[
sizeof(buf2)+4];
476 sprintf(hname2,buf2,FedId,FedId);
477 me = theDMBE->get(hname2);
478 if(me) me->
Fill((
int)TBMMessage);
479 static const char buf3[] =
"Pixel/AdditionalPixelErrors/FED_%d/TBMType_siPixelDigis_%d";
480 char hname3[
sizeof(buf3)+4];
481 sprintf(hname3,buf3,FedId,FedId);
482 me = theDMBE->get(hname3);
483 if(me) me->
Fill((
int)TBMType);
484 static const char buf4[] =
"Pixel/AdditionalPixelErrors/FED_%d/errorType_siPixelDigis_%d";
485 char hname4[
sizeof(buf4)+4];
486 sprintf(hname4,buf4,FedId,FedId);
487 me = theDMBE->get(hname4);
488 if(me) me->
Fill((
int)errorType);
489 static const char buf5[] =
"Pixel/AdditionalPixelErrors/FED_%d/fullType_siPixelDigis_%d";
490 char hname5[
sizeof(buf5)+4];
491 sprintf(hname5,buf5,FedId,FedId);
492 me = theDMBE->get(hname5);
493 if(me) me->
Fill((
int)fullType);
494 static const char buf6[] =
"Pixel/AdditionalPixelErrors/FED_%d/EvtNbr_siPixelDigis_%d";
495 char hname6[
sizeof(buf6)+4];
496 sprintf(hname6,buf6,FedId,FedId);
497 me = theDMBE->get(hname6);
498 if(me) me->
Fill((
int)evtNbr);
499 static const char buf7[] =
"Pixel/AdditionalPixelErrors/FED_%d/evtSize_siPixelDigis_%d";
500 char hname7[
sizeof(buf7)+4];
501 sprintf(hname7,buf7,FedId,FedId);
502 me = theDMBE->get(hname7);
503 if(me) me->
Fill((
int)evtSize);
504 theDMBE->cd(currDir);
509 for(
int i=0;
i!=40;
i++){
510 for(
int j=0;
j!=37;
j++){
512 static const char fmt[] =
"Pixel/AdditionalPixelErrors/FED_%d/FedChNErrArray_%d";
513 char buf[
sizeof(fmt) + 2*32];
514 sprintf(buf, fmt,
i,
j);
520 static const char fmt[] =
"Pixel/AdditionalPixelErrors/FED_%d/FedChLErrArray_%d";
521 char buf[
sizeof(fmt) + 2*32];
522 sprintf(buf, fmt,
i, j);
528 static const char fmt[] =
"Pixel/AdditionalPixelErrors/FED_%d/FedETypeNErrArray_%d";
529 char buf[
sizeof(fmt) + 2*32];
530 sprintf(buf, fmt,
i, j);
539 return numberOfSeriousErrors;
MonitorElement * meFullType_
iterator find(det_id_type id)
int FedChLErrArray[40][37]
MonitorElement * meFedChLErrArray_[37]
static const int DB6_shift
static const int LINK_bits
MonitorElement * meFedChNErrArray_[37]
static const int DB3_shift
int FedChNErrArray[40][37]
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
bool isHalfModule() const
full or half module
static const int DB5_shift
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
int FedETypeNErrArray[40][21]
int ladderName() const
ladder id (index in phi)
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