Fill histograms.
100 unsigned int numberOfSeriousErrors = 0;
104 if (isearch !=
input.end()) {
107 for (di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
108 int FedId = di->getFedId();
110 int errorType = di->getType();
116 bool notReset =
true;
122 if (errorType == 32 || errorType == 33 || errorType == 34) {
123 long long errorWord = di->getWord64();
128 uint32_t errorWord = di->getWord32();
143 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
147 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
151 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
155 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
159 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
163 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
167 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
180 uint32_t BLOCK_mask = ~(~uint32_t(0) << BLOCK_bits);
181 int BLOCK = (errorWord >> BLOCK_shift) & BLOCK_mask;
182 int localCH = 1 * CH1 + 2 * CH2 + 3 * CH3 + 4 * CH4 + 5 * CH5;
184 chanNmbr = (BLOCK / 2) * 9 + localCH;
186 chanNmbr = ((BLOCK - 1) / 2) * 9 + 4 + localCH;
187 if ((chanNmbr < 1) || (chanNmbr > 36))
216 if (TBMMessage == 5 || TBMMessage == 6)
218 int StateMach_bits = 4;
219 int StateMach_shift = 8;
220 uint32_t StateMach_mask = ~(~uint32_t(0) << StateMach_bits);
221 int StateMach = (errorWord >> StateMach_shift) & StateMach_mask;
271 if (errorType == 32 || errorType == 33 || errorType == 34) {
272 long long errorWord = di->getWord64();
277 uint32_t errorWord = di->getWord32();
291 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
295 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
299 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
303 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
307 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
311 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
315 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
328 uint32_t BLOCK_mask = ~(~uint32_t(0) << BLOCK_bits);
329 int BLOCK = (errorWord >> BLOCK_shift) & BLOCK_mask;
330 int localCH = 1 * CH1 + 2 * CH2 + 3 * CH3 + 4 * CH4 + 5 * CH5;
332 chanNmbr = (BLOCK / 2) * 9 + localCH;
334 chanNmbr = ((BLOCK - 1) / 2) * 9 + 4 + localCH;
335 if ((chanNmbr < 1) || (chanNmbr > 36))
364 int StateMach_bits = 4;
365 int StateMach_shift = 8;
366 uint32_t StateMach_mask = ~(~uint32_t(0) << StateMach_bits);
367 int StateMach = (errorWord >> StateMach_shift) & StateMach_mask;
417 if (errorType == 32 || errorType == 33 || errorType == 34) {
418 long long errorWord = di->getWord64();
423 uint32_t errorWord = di->getWord32();
437 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
441 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
445 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
449 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
453 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
457 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
461 ((*meMapFEDs)[
"meFullType_"][
FedId])->
Fill((
int)fullType);
474 uint32_t BLOCK_mask = ~(~uint32_t(0) << BLOCK_bits);
475 int BLOCK = (errorWord >> BLOCK_shift) & BLOCK_mask;
476 int localCH = 1 * CH1 + 2 * CH2 + 3 * CH3 + 4 * CH4 + 5 * CH5;
478 chanNmbr = (BLOCK / 2) * 9 + localCH;
480 chanNmbr = ((BLOCK - 1) / 2) * 9 + 4 + localCH;
481 if ((chanNmbr < 1) || (chanNmbr > 36))
510 int StateMach_bits = 4;
511 int StateMach_shift = 8;
512 uint32_t StateMach_mask = ~(~uint32_t(0) << StateMach_bits);
513 int StateMach = (errorWord >> StateMach_shift) & StateMach_mask;
564 if (!(errorType == 30) || notReset) {
566 static const char chNfmt[] =
"Pixel/AdditionalPixelErrors/FED_%d/FedChNErr_%d";
567 char chNbuf[
sizeof(chNfmt) + 2 * 32];
568 sprintf(chNbuf, chNfmt,
FedId, chanNmbr);
570 if ((*meMapFEDs)[
"meFedChNErr_"][
FedId])
571 (*meMapFEDs)[
"meFedChNErr_"][
FedId]->Fill(chanNmbr);
573 static const char chLfmt[] =
"Pixel/AdditionalPixelErrors/FED_%d/FedChLErr_%d";
574 char chLbuf[
sizeof(chLfmt) + 2 * 32];
575 sprintf(chLbuf, chLfmt,
FedId, chanNmbr);
577 if ((*meMapFEDs)[
"meFedChLErr_"][
FedId])
578 (*meMapFEDs)[
"meFedChLErr_"][
FedId]->setBinContent(chanNmbr + 1, errorType);
580 numberOfSeriousErrors++;
581 int messageType = 99;
583 messageType = errorType - 25;
584 else if (errorType > 30)
585 messageType = errorType - 19;
586 else if (errorType == 30 && TBMMessage == 0)
587 messageType = errorType - 25;
588 else if (errorType == 30 && TBMMessage == 1)
589 messageType = errorType - 24;
590 else if (errorType == 30 && (TBMMessage == 2 || TBMMessage == 3 || TBMMessage == 4))
591 messageType = errorType - 23;
592 else if (errorType == 30 && TBMMessage == 7)
593 messageType = errorType - 22;
594 else if (errorType == 30 && TBMType == 1)
595 messageType = errorType - 21;
596 else if (errorType == 30 && TBMType == 2)
597 messageType = errorType - 20;
598 else if (errorType == 30 && TBMType == 3)
599 messageType = errorType - 19;
600 if (messageType <= 20) {
601 static const char fmt[] =
"Pixel/AdditionalPixelErrors/FED_%d/FedETypeNErr_%d";
602 char buf[
sizeof(
fmt) + 2 * 32];
605 if ((*meMapFEDs)[
"meFedETypeNErr_"][
FedId])
606 (*meMapFEDs)[
"meFedETypeNErr_"][
FedId]->Fill(messageType);
610 (*meMapFEDs)[
"meNErrors_"][
FedId]->Fill((
int)numberOfSeriousErrors);
611 (*meMapFEDs)[
"meTBMMessage_"][
FedId]->Fill((
int)TBMMessage);
612 (*meMapFEDs)[
"meTBMType_"][
FedId]->Fill((
int)TBMType);
613 (*meMapFEDs)[
"meErrorType_"][
FedId]->Fill((
int)errorType);
614 (*meMapFEDs)[
"meFullType_"][
FedId]->Fill((
int)fullType);
615 (*meMapFEDs)[
"meEvtNbr_"][
FedId]->setBinContent(1, (
int)evtNbr);
616 (*meMapFEDs)[
"meEvtSize_"][
FedId]->setBinContent(1, (
int)evtSize);
619 return numberOfSeriousErrors;
static const int DB6_shift
static const int LINK_bits
static const int DB3_shift
static const int LINK_shift
static std::string const input
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
constexpr 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 unsigned long long EVTLGT_mask
static const int DB4_shift
static const int DB0_shift
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