|
|
Go to the documentation of this file.
106 : collNotFoundWarn_(ps.getUntrackedParameter<
bool>(
"warnIfCollectionNotFound",
true)),
107 ebDigis_(ps.getParameter<
edm::
InputTag>(
"EbDigiCollection"),
false, collNotFoundWarn_),
108 eeDigis_(ps.getParameter<
edm::
InputTag>(
"EeDigiCollection"),
false, collNotFoundWarn_),
111 ebSrFlags_(ps.getParameter<
edm::
InputTag>(
"EbSrFlagCollection"),
false, collNotFoundWarn_),
112 eeSrFlags_(ps.getParameter<
edm::
InputTag>(
"EeSrFlagCollection"),
false, collNotFoundWarn_),
119 tps_(ps.getParameter<
edm::
InputTag>(
"TrigPrimCollection"),
false, collNotFoundWarn_),
124 tmin(numeric_limits<int64_t>::
max()),
127 triggerTowerMap_(nullptr),
128 localReco_(ps.getParameter<
bool>(
"LocalReco")),
129 weights_(ps.getParameter<
vector<double> >(
"weights")),
130 tpInGeV_(ps.getParameter<
bool>(
"tpInGeV")),
131 firstFIRSample_(ps.getParameter<
int>(
"ecalDccZs1stSample")),
132 useEventRate_(ps.getParameter<
bool>(
"useEventRate")),
133 logErrForDccs_(nDccs_,
false),
136 histDir_(ps.getParameter<
string>(
"histDir")),
137 withEeSimHit_(
false),
138 withEbSimHit_(
false) {
150 tps_.setToken(collector);
155 double ebZsThr = ps.
getParameter<
double>(
"ebZsThrADCCount");
156 double eeZsThr = ps.
getParameter<
double>(
"eeZsThrADCCount");
176 LogInfo(
"OutputInfo") <<
" Ecal Digi Task histograms will be saved to '" <<
outputFile_.c_str() <<
"'";
178 LogInfo(
"OutputInfo") <<
" Ecal Digi Task histograms will NOT be saved";
188 for (vector<string>::iterator it =
hists.begin(); it !=
hists.end(); ++it)
195 const int32_t
bx =
event.bunchCrossing();
196 if (bx < 1 || bx > 3564)
199 int64_t
t =
event.bunchCrossing() + (
event.orbitNumber() - 1) * 3564;
213 LogDebug(
"EcalSrValid") << __FILE__ <<
":" << __LINE__ <<
": "
214 <<
"Tmax = " <<
tmax <<
" x 25ns; Tmin = " <<
tmin <<
" x 25ns; L1A(Tmax) = " <<
l1aOfTmax
215 <<
"; L1A(Tmin) = " <<
l1aOfTmin <<
"\n";
229 edm::LogInfo(
"EcalSrValid") <<
"Size of TP collection: " <<
tps_->size() << std::endl
230 <<
"Size of EB SRF collection read from data: " <<
ebSrFlags_->size() << std::endl
231 <<
"Size of EB SRF collection computed from data TTFs: " <<
ebComputedSrFlags_->size()
233 <<
"Size of EE SRF collection read from data: " <<
eeSrFlags_->size() << std::endl
234 <<
"Size of EE SRF collection computed from data TTFs: " <<
eeComputedSrFlags_->size()
291 bool eventError =
false;
295 for (
int iZ0 = 0; iZ0 <
nEndcaps; ++iZ0) {
296 for (
int iX0 = 0; iX0 <
nEeX; ++iX0) {
297 for (
int iY0 = 0; iY0 <
nEeY; ++iY0) {
318 int iZ0 =
frame.id().zside() > 0 ? 1 : 0;
320 if (iX0 < 0 || iX0 >=
nEeX) {
321 edm::LogError(
"EcalSrValid") <<
"iX0 (= " << iX0 <<
") is out of range ("
322 <<
"[0," <<
nEeX - 1 <<
"]\n";
324 if (iY0 < 0 || iY0 >=
nEeY) {
325 edm::LogError(
"EcalSrValid") <<
"iY0 (= " << iY0 <<
") is out of range ("
326 <<
"[0," <<
nEeY - 1 <<
"]\n";
332 for (
int i = 0;
i <
frame.size(); ++
i) {
333 const int gain12Code = 0x1;
350 int iZ0 = static_cast<const EEDetId&>(
hit.
id()).
zside() > 0 ? 1 : 0;
352 if (iX0 < 0 || iX0 >=
nEeX) {
353 LogError(
"EcalSrValid") <<
"iX0 (= " << iX0 <<
") is out of range ("
354 <<
"[0," <<
nEeX - 1 <<
"]\n";
356 if (iY0 < 0 || iY0 >=
nEeY) {
357 LogError(
"EcalSrValid") <<
"iY0 (= " << iY0 <<
") is out of range ("
358 <<
"[0," <<
nEeY - 1 <<
"]\n";
366 for (vector<PCaloHit>::const_iterator it =
eeSimHits_->begin(); it !=
eeSimHits_->end(); ++it) {
373 int iZ0 = detId.zside() > 0 ? 1 : 0;
379 pair<int, int> EExtalCoor[
nEeX][
nEeY][2];
381 for (
int iEeZ = 0; iEeZ < 2; ++iEeZ) {
382 for (
int iEeX = 0; iEeX <
nEeX; ++iEeX) {
383 for (
int iEeY = 0; iEeY <
nEeY; ++iEeY) {
384 EEcrystalShot[iEeX][iEeY][iEeZ] =
false;
385 EExtalCoor[iEeX][iEeY][iEeZ] = make_pair(0, 0);
395 int iZ0 = static_cast<const EEDetId&>(
frame.id()).
zside() > 0 ? 1 : 0;
396 if (iX0 < 0 || iX0 >=
nEeX) {
397 LogError(
"EcalSrValid") <<
"iX0 (= " << iX0 <<
") is out of range ("
398 <<
"[0," <<
nEeX - 1 <<
"]\n";
400 if (iY0 < 0 || iY0 >=
nEeY) {
401 LogError(
"EcalSrValid") <<
"iY0 (= " << iY0 <<
") is out of range ("
402 <<
"[0," <<
nEeY - 1 <<
"]\n";
405 if (!EEcrystalShot[iX0][iY0][iZ0]) {
406 EEcrystalShot[iX0][iY0][iZ0] =
true;
409 cout <<
"Error: several digi for same crystal!";
418 for (
int i = 0;
i <
frame.size(); ++
i) {
419 const int gain12Code = 0x1;
427 bool highInterest =
false;
449 <<
"RU " <<
frame.id() <<
", "
450 <<
"DCC " << ru.first <<
" Ch : " << ru.second <<
": "
451 <<
"LI channel under ZS threshold.\n";
455 <<
"more ZS errors for this event...\n";
461 for (
int iEeZ = 0; iEeZ < 2; ++iEeZ) {
462 for (
int iEeX = 0; iEeX <
nEeX; ++iEeX) {
463 for (
int iEeY = 0; iEeY <
nEeY; ++iEeY) {
465 EExtalCoor[iEeX][iEeY][iEeZ].
first,
466 EExtalCoor[iEeX][iEeY][iEeZ].
second,
467 EEcrystalShot[iEeX][iEeY][iEeZ] ? 1 : 0);
472 for (
int iZ0 = 0; iZ0 <
nEndcaps; ++iZ0) {
473 for (
int iX0 = 0; iX0 <
nEeX; ++iX0) {
474 for (
int iY0 = 0; iY0 <
nEeY; ++iY0) {
496 int EEZs1RuCount[2][20][20];
497 int EEFullRuCount[2][20][20];
498 int EEForcedRuCount[2][20][20];
499 for (
int iZ(0); iZ < 2; iZ++) {
500 for (
int iX(0); iX < 20; iX++) {
501 for (
int iY(0); iY < 20; iY++) {
502 EEZs1RuCount[iZ][iX][iY] = 0;
503 EEFullRuCount[iZ][iX][iY] = 0;
504 EEForcedRuCount[iZ][iX][iY] = 0;
510 char eeSrfMark[2][20][20];
511 bzero(eeSrfMark,
sizeof(eeSrfMark));
516 int iX = srf.
id().
ix();
517 int iY = srf.
id().
iy();
519 if (iX < 1 || iY > 100)
521 <<
"Found an endcap SRF with an invalid det ID: " << srf.
id() <<
".\n";
522 ++eeSrfMark[
zside > 0 ? 1 : 0][iX - 1][iY - 1];
523 if (eeSrfMark[
zside > 0 ? 1 : 0][iX - 1][iY - 1] > 1)
524 throw cms::Exception(
"EcalSelectiveReadoutValidation") <<
"Duplicate SRF for supercrystal " << srf.
id() <<
".\n";
527 EEZs1RuCount[
zside > 0 ? 1 : 0][iX - 1][iY - 1] += 1;
531 EEFullRuCount[
zside > 0 ? 1 : 0][iX - 1][iY - 1] += 1;
536 EEForcedRuCount[
zside > 0 ? 1 : 0][iX - 1][iY - 1] += 1;
539 for (
int iZ(0); iZ < 2; iZ++) {
540 int xOffset(iZ == 0 ? -40 : 20);
541 for (
int iX(0); iX < 20; iX++) {
542 for (
int iY(0); iY < 20; iY++) {
543 int GraphX = (iX + 1) +
xOffset;
544 int GraphY = (iY + 1);
545 fill(
meZs1Ru_, GraphX, GraphY, EEZs1RuCount[iZ][iX][iY]);
554 <<
" ZS-flagged EE channels under "
555 "the ZS threshold, whose "
560 bool eventError =
false;
563 vector<pair<int, int> > xtalEtaPhi;
566 for (
int iEta0 = 0; iEta0 <
nEbEta; ++iEta0) {
567 for (
int iPhi0 = 0; iPhi0 <
nEbPhi; ++iPhi0) {
573 xtalEtaPhi.push_back(pair<int, int>(iEta0, iPhi0));
589 if (iEta0 < 0 || iEta0 >=
nEbEta) {
591 s <<
"EcalSelectiveReadoutValidation: "
592 <<
"iEta0 (= " << iEta0 <<
") is out of range ("
593 <<
"[0," <<
nEbEta - 1 <<
"]\n";
596 if (iPhi0 < 0 || iPhi0 >=
nEbPhi) {
598 s <<
"EcalSelectiveReadoutValidation: "
599 <<
"iPhi0 (= " << iPhi0 <<
") is out of range ("
600 <<
"[0," <<
nEbPhi - 1 <<
"]\n";
606 for (
int i = 0;
i <
frame.size(); ++
i) {
607 const int gain12Code = 0x1;
619 for (vector<PCaloHit>::const_iterator it =
ebSimHits_->begin(); it !=
ebSimHits_->end(); ++it) {
622 int iEta = detId.ieta();
624 int iPhi = detId.iphi();
633 for (
int iEta0 = 0; iEta0 <
nEbEta; ++iEta0) {
634 for (
int iPhi0 = 0; iPhi0 <
nEbPhi; ++iPhi0) {
635 crystalShot[iEta0][iPhi0] =
false;
636 EBxtalCoor[iEta0][iPhi0] = make_pair(0, 0);
646 int iPhi = static_cast<const EBDetId&>(
frame.id()).
iphi();
649 if (iEta0 < 0 || iEta0 >=
nEbEta) {
650 throw(
cms::Exception(
"EcalSelectiveReadoutValidation") <<
"iEta0 (= " << iEta0 <<
") is out of range ("
651 <<
"[0," <<
nEbEta - 1 <<
"]");
653 if (iPhi0 < 0 || iPhi0 >=
nEbPhi) {
654 throw(
cms::Exception(
"EcalSelectiveReadoutValidation") <<
"iPhi0 (= " << iPhi0 <<
") is out of range ("
655 <<
"[0," <<
nEbPhi - 1 <<
"]");
659 if (!crystalShot[iEta0][iPhi0]) {
660 crystalShot[iEta0][iPhi0] =
true;
663 cout <<
"Error: several digi for same crystal!";
671 for (
int i = 0;
i <
frame.size(); ++
i) {
672 const int gain12Code = 0x1;
680 bool highInterest =
false;
704 <<
"RU " <<
frame.id() <<
", "
705 <<
"DCC " << ru.first <<
" Ch : " << ru.second <<
": "
706 <<
"LI channel under ZS threshold.\n";
710 <<
"more ZS errors for this event...\n";
716 for (
int iEta0 = 0; iEta0 <
nEbEta; ++iEta0) {
717 for (
int iPhi0 = 0; iPhi0 <
nEbPhi; ++iPhi0)
719 EBxtalCoor[iEta0][iPhi0].
first,
720 EBxtalCoor[iEta0][iPhi0].
second,
721 crystalShot[iEta0][iPhi0] ? 1. : 0.);
729 int iPhi = static_cast<const EBDetId&>(
hit.
id()).
iphi();
732 if (iEta0 < 0 || iEta0 >=
nEbEta) {
733 LogError(
"EcalSrValid") <<
"iEta0 (= " << iEta0 <<
") is out of range ("
734 <<
"[0," <<
nEbEta - 1 <<
"]\n";
736 if (iPhi0 < 0 || iPhi0 >=
nEbPhi) {
737 LogError(
"EcalSrValid") <<
"iPhi0 (= " << iPhi0 <<
") is out of range ("
738 <<
"[0," <<
nEbPhi - 1 <<
"]\n";
744 for (
unsigned int i = 0;
i < xtalEtaPhi.size(); ++
i) {
745 int iEta0 = xtalEtaPhi[
i].first;
746 int iPhi0 = xtalEtaPhi[
i].second;
749 double recE = energies.
recE;
767 int EBZs1RuCount[2][17][72];
768 int EBFullRuCount[2][17][72];
769 int EBForcedRuCount[2][17][72];
770 std::pair<int, int> EBtowerCoor[2][17][72];
771 for (
int iZ(0); iZ < 2; iZ++) {
773 for (
int iPhi(0); iPhi < 72; iPhi++) {
774 EBZs1RuCount[iZ][
iEta][iPhi] = 0;
775 EBFullRuCount[iZ][
iEta][iPhi] = 0;
776 EBForcedRuCount[iZ][
iEta][iPhi] = 0;
783 char ebSrfMark[2][17][72];
784 bzero(ebSrfMark,
sizeof(ebSrfMark));
789 int iPhi = srf.
id().
iphi();
795 if (iEtaAbs < 1 || iEtaAbs > 17 || iPhi < 1 || iPhi > 72)
797 <<
"Found a barrel SRF with an invalid det ID: " << srf.
id() <<
".\n";
798 ++ebSrfMark[iZ > 0 ? 1 : 0][iEtaAbs - 1][iPhi - 1];
799 if (ebSrfMark[iZ > 0 ? 1 : 0][iEtaAbs - 1][iPhi - 1] > 1)
800 throw cms::Exception(
"EcalSelectiveReadoutValidation") <<
"Duplicate SRF for RU " << srf.
id() <<
".\n";
802 EBtowerCoor[iZ > 0 ? 1 : 0][iEtaAbs - 1][iPhi - 1] = std::pair<int, int>(srf.
id().
ieta(), srf.
id().
iphi());
806 EBZs1RuCount[iZ > 0 ? 1 : 0][iEtaAbs - 1][iPhi - 1] += 1;
809 EBFullRuCount[iZ > 0 ? 1 : 0][iEtaAbs - 1][iPhi - 1] += 1;
813 EBForcedRuCount[iZ > 0 ? 1 : 0][iEtaAbs - 1][iPhi - 1] += 1;
816 for (
int iZ(0); iZ < 2; iZ++) {
818 for (
int iPhi(0); iPhi < 72; iPhi++) {
830 <<
" ZS-flagged EB channels under "
831 "the ZS threshold, whose "
867 "ECAL DCC event fragment size;Dcc id; "
875 "LI channel payload per DCC;Dcc id; "
883 "HI channel payload per DCC;Dcc id; "
891 "ECAL DCC event fragment size;Dcc id; "
899 "ECAL Barrel low interest crystal data payload;"
900 "Event size (kB);Nevts",
907 "Endcap low interest crystal data payload;"
908 "Event size (kB);Nevts",
915 "ECAL low interest crystal data payload;"
916 "Event size (kB);Nevts",
923 "Barrel high interest crystal data payload;"
924 "Event size (kB);Nevts",
931 "Endcap high interest crystal data payload;"
932 "Event size (kB);Nevts",
939 "ECAL high interest crystal data payload;"
940 "Event size (kB);Nevts",
947 "Barrel data volume;Event size (kB);Nevts",
954 "Endcap data volume;Event size (kB);Nevts",
961 "ECAL data volume;Event size (kB);Nevts",
968 "ECAL crystal channel occupancy after zero suppression;"
969 "iX -200 / iEta / iX + 100;"
970 "iY / iPhi (starting from -10^{o}!);"
984 tpUnit =
string(
"TP hw unit");
986 title =
string(
"Trigger primitive TT E_{T};E_{T} ") + tpUnit +
string(
";Event Count");
996 "Trigger primitive TT flag;Flag number;Event count",
1001 title =
string(
"Trigger tower flag vs TP;E_{T}(TT) (") + tpUnit +
string(
");Flag number");
1006 "Trigger tower flag vs #sumE_{T};"
1016 "Trigger primitive Et (TP) vs #sumE_{T};"
1017 "E_{T} (sum) (GeV);"
1024 "Trigger primitive E_{T};"
1034 "Full Read-out readout unit;"
1035 "iX - 40 / iEta / iX + 20;"
1036 "iY / iPhi (iPhi = 1 at phi = 0 rad);"
1047 "Number of Full-readout-flagged readout units;"
1048 "FRO RU count;Event count",
1055 "Number of EB Full-readout-flagged readout units;"
1056 "FRO RU count;Event count",
1063 "Number of EE Full-readout-flagged readout units;"
1064 "FRO RU count;Event count",
1071 "Readout unit with ZS-thr-1 flag;"
1072 "iX - 40 / iEta / iX + 20;"
1073 "iY0 / iPhi0 (iPhi = 1 at phi = 0 rad);"
1084 "ECAL readout unit with forced bit of SR flag on;"
1085 "iX - 40 / iEta / iX + 20;"
1086 "iY / iPhi (iPhi = 1 at phi = 0 rad);"
1097 "Low interest trigger tower flags;"
1110 "Mid interest trigger tower flags;"
1123 "High interest trigger tower flags;"
1136 "Trigger tower flags with forced bit set;"
1147 const float ebMinNoise = -1.;
1148 const float ebMaxNoise = 1.;
1150 const float eeMinNoise = -1.;
1151 const float eeMaxNoise = 1.;
1153 const float ebMinE = ebMinNoise;
1154 const float ebMaxE = ebMaxNoise;
1156 const float eeMinE = eeMinNoise;
1157 const float eeMaxE = eeMaxNoise;
1159 const int evtMax = 500;
1161 meEbRecE_ =
book1D(ibooker,
"hEbRecE",
"Crystal reconstructed energy;E (GeV);Event count", 100, ebMinE, ebMaxE);
1163 meEbEMean_ =
bookProfile(ibooker,
"hEbEMean",
"EE <E_hit>;event #;<E_hit> (GeV)", evtMax, .5, evtMax + .5);
1168 "(rec E of crystal without deposited energy)"
1169 ";Rec E (GeV);Event count",
1176 "Emulated ouput of ZS FIR filter for EB "
1177 "low interest crystals;"
1186 "Emulated ouput of ZS FIR filter for EB "
1187 "high interest crystals;"
1202 meEbSimE_ =
book1D(ibooker,
"hEbSimE",
"EB hit crystal simulated energy", 100, ebMinE, ebMaxE);
1204 meEbRecEHitXtal_ =
book1D(ibooker,
"hEbRecEHitXtal",
"EB rec energy of hit crystals", 100, ebMinE, ebMaxE);
1208 "Crystal simulated vs reconstructed energy;"
1209 "Esim (GeV);Erec GeV);Event count",
1219 "Crystal no-zs simulated vs reconstructed "
1221 "Esim (GeV);Erec GeV);Event count",
1231 "EE crystal reconstructed energy;E (GeV);"
1237 meEeEMean_ =
bookProfile(ibooker,
"hEeEMean",
"<E_{EE hit}>;event;<E_{hit}> (GeV)", evtMax, .5, evtMax + .5);
1242 "(rec E of crystal without deposited energy);"
1243 "E (GeV);Event count",
1250 "Emulated ouput of ZS FIR filter for EE "
1251 "low interest crystals;"
1260 "Emulated ouput of ZS FIR filter for EE "
1261 "high interest crystals;"
1276 meEeSimE_ =
book1D(ibooker,
"hEeSimE",
"EE hit crystal simulated energy", 100, eeMinE, eeMaxE);
1278 meEeRecEHitXtal_ =
book1D(ibooker,
"hEeRecEHitXtal",
"EE rec energy of hit crystals", 100, eeMinE, eeMaxE);
1282 "EE crystal simulated vs reconstructed energy;"
1283 "Esim (GeV);Erec GeV);Event count",
1293 "EE crystal no-zs simulated vs "
1295 "energy;Esim (GeV);Erec GeV);Event count",
1305 "TTFlags and SR Flags mismatch;"
1306 "iX - 40 / iEta / iX + 20;"
1307 "iY / iPhi (iPhi = 1 at phi = 0 rad);"
1318 "hIncompleteFROMap",
1319 "Incomplete full-readout-flagged readout units;"
1320 "iX - 40 / iEta / iX + 20;"
1321 "iY / iPhi (iPhi = 1 at phi = 0 rad);"
1331 "hIncompleteFROCnt",
1332 "Number of incomplete full-readout-flagged "
1334 "Number of RUs;Event count;",
1340 "hIncompleteFRORateMap",
1341 "Incomplete full-readout-flagged readout units;"
1342 "iX - 40 / iEta / iX + 20;"
1343 "iY / iPhi (iPhi = 1 at phi = 0 rad);"
1344 "Incomplete error rate",
1354 "Dropped full-readout-flagged readout units;"
1355 "iX - 40 / iEta / iX + 20;"
1356 "iY / iPhi (iPhi = 1 at phi = 0 rad);"
1367 "Number of dropped full-readout-flagged "
1368 "RU count;RU count;Event count",
1375 "Number of zero-suppressed-flagged RU fully "
1377 "RU count;Event count",
1383 buf <<
"Number of LI EB channels below the " <<
ebZsThr_ / 4.
1384 <<
" ADC count ZS threshold;"
1385 "Channel count;Event count",
1389 buf <<
"Number of LI EE channels below the " <<
eeZsThr_ / 4.
1390 <<
" ADC count ZS theshold;"
1391 "Channel count;Event count",
1396 "Number of LI channels below the ZS threshold;"
1397 "Channel count;Event count",
1404 "Number of EB channels below the ZS "
1405 "threshold in a LI but fully readout RU;"
1406 "Channel count;Event count;",
1413 "Number EE channels below the ZS threshold"
1414 " in a LI but fully readout RU;"
1415 "Channel count;Event count",
1422 "Number of LI channels below the ZS threshold "
1423 "in a LI but fully readout RU;"
1424 "Channel count;Event count",
1430 "hDroppedFRORateMap",
1431 "Dropped full-readout-flagged readout units"
1432 "iX - 40 / iEta / iX + 20;"
1433 "iY / iPhi (iPhi = 1 at phi = 0 rad);"
1444 "Complete zero-suppressed-flagged readout units;"
1445 "iX - 40 / iEta / iX + 20;"
1446 "iY / iPhi (iPhi = 1 at phi = 0 rad);"
1457 "Complete zero-suppressed-flagged readout units;"
1458 "iX - 40 / iEta / iX + 20;"
1459 "iY / iPhi (iPhi = 1 at phi = 0 rad);"
1460 "Completeness rate",
1476 s << (
s.str().empty() ?
"" :
", ") << *it;
1479 if (!
s.str().empty()) {
1480 LogWarning(
"Configuration") <<
"Parameter 'histList' contains some unknown histogram(s). "
1481 "Check spelling. Following name were not found: "
1491 for (
int iTTFlag(0); iTTFlag < 8; iTTFlag++) {
1492 TTFlagCount[iTTFlag] = 0;
1494 for (
int iTtEta(0); iTtEta <
nTtEta; iTtEta++) {
1495 for (
int iTtPhi(0); iTtPhi <
nTtPhi; iTtPhi++) {
1496 LiTTFlagCount[iTtEta][iTtPhi] = 0;
1497 MiTTFlagCount[iTtEta][iTtPhi] = 0;
1498 HiTTFlagCount[iTtEta][iTtPhi] = 0;
1502 for (
int iEt(0); iEt < 100; iEt++) {
1519 double lsb10bitsEB(ebItr == physMap.end() ? 0. : ebItr->second.EtSat / 1024.);
1521 double lsb10bitsEE(eeItr == physMap.end() ? 0. : eeItr->second.EtSat / 1024.);
1527 unsigned int ADC = it->compressedEt();
1529 double lsb10bits(0.);
1531 lsb10bits = lsb10bitsEB;
1533 lsb10bits = lsb10bitsEE;
1537 uint32_t lutGrp = 999;
1538 if (itgrp != lutGrpMap.end())
1539 lutGrp = itgrp->second;
1542 if (itLut != lutMap.end()) {
1543 const unsigned int* lut = (itLut->second).getLut();
1544 for (
unsigned int i = 0;
i < 1024;
i++)
1545 if (
ADC == (0xff & lut[
i])) {
1551 tpEt = lsb10bits * tpg10bits;
1553 tpEt = it->compressedEt();
1555 int iEta = it->id().ieta();
1557 int iPhi = it->id().iphi();
1559 double etSum =
ttEtSums[iEta0][iPhi0];
1562 if ((iE >= 0) && (iE < 100)) {
1571 ++TTFlagCount[it->ttFlag()];
1572 if ((it->ttFlag() & 0x3) == 0) {
1573 LiTTFlagCount[iEta0][iPhi0] += 1;
1574 }
else if ((it->ttFlag() & 0x3) == 1) {
1575 MiTTFlagCount[iEta0][iPhi0] += 1;
1576 }
else if ((it->ttFlag() & 0x3) == 3) {
1577 HiTTFlagCount[iEta0][iPhi0] += 1;
1579 if ((it->ttFlag() & 0x4)) {
1588 for (
int ittflag(0); ittflag < 8; ittflag++) {
1591 for (
int iTtEta(0); iTtEta <
nTtEta; iTtEta++) {
1592 for (
int iTtPhi(0); iTtPhi <
nTtPhi; iTtPhi++) {
1599 for (
int iE(0); iE < 100; iE++) {
1603 for (
int iE(0); iE < 40; iE++) {
1620 for (
unsigned int digis = 0; digis <
ebDigis_->
size(); ++digis) {
1626 for (
unsigned int digis = 0; digis <
eeDigis_->
size(); ++digis) {
1632 for (
unsigned iDcc0 = 0; iDcc0 <
nDccs_; ++iDcc0) {
1662 template <
class T,
class U>
1665 typedef typename U::key_type RuDetId;
1667 typename U::const_iterator srf = srFlagColl.find(ruId);
1669 bool highInterest =
false;
1672 if (srf != srFlagColl.end()) {
1680 pair<int, int> ch =
dccCh(xtalId);
1710 int iZ0 = static_cast<const EEDetId&>(
frame.id()).
zside() > 0 ? 1 : 0;
1724 if (ch.second < 1 || ch.second > 68) {
1726 <<
"Error in DCC channel retrieval for crystal with detId " << xtalId.
rawId()
1727 <<
"DCC channel out of allowed range [1..68]\n";
1757 static std::atomic<bool> firstCall{
true};
1758 bool expected =
true;
1759 if (firstCall.compare_exchange_strong(expected,
false)) {
1768 double adc2GeV = 0.;
1782 double gainInv[] = {12., 1., 6., 12.};
1784 for (
int i = 0;
i <
n; ++
i) {
1794 throw cms::Exception(
"InvalidParameter") <<
"Wrong type of DetId passed to the "
1795 "EcalSelectiveReadoutValidation::dccCh(const DetId&). "
1796 "An ECAL DetId was expected.\n";
1809 const int oneXtalPhi0 = iTtPhi0 * 5;
1810 const int oneXtalEta0 = (iTtEta0 -
nOneEeTtEta) * 5;
1815 if (detId.
rawId() & 0x8000) {
1826 <<
"Wrong type of DetId passed to the method "
1827 "EcalSelectiveReadoutValidation::dccCh(const DetId&). "
1828 "A valid EcalTriggerTower, EcalBarrel or EcalEndcap DetId was expected. "
1830 << xtalId.
rawId() <<
".\n";
1839 throw cms::Exception(
"OutOfRange") <<
"Got an invalid DCC ID, DCCID = " <<
result.first <<
" for DetId 0x" << hex
1840 << detId.
rawId() <<
" and 0x" << xtalId.
rawId() <<
dec <<
"\n";
1846 throw cms::Exception(
"OutOfRange") <<
"Got an invalid DCC channel ID, DCC_CH = " <<
result.second <<
" for DetId 0x"
1847 << hex << detId.
rawId() <<
" and 0x" << xtalId.
rawId() <<
dec <<
"\n";
1859 int iDCC = EcalElecId.
dccId();
1860 int iDccChan = EcalElecId.
towerId();
1861 const bool ignoreSingle =
true;
1872 if (eeGeometry ==
nullptr || ebGeometry ==
nullptr) {
1880 for (
int iEta0 = 0; iEta0 <
nTtEta; ++iEta0) {
1881 for (
int iPhi0 = 0; iPhi0 <
nTtPhi; ++iPhi0) {
1913 int innerTTEtas[] = {0, 1, 54, 55};
1914 for (
unsigned iRing = 0; iRing <
sizeof(innerTTEtas) /
sizeof(innerTTEtas[0]); ++iRing) {
1915 int iTtEta0 = innerTTEtas[iRing];
1931 for (
unsigned iTtPhi0 = 0; iTtPhi0 <
nTtPhi - 1; iTtPhi0 += 2) {
1946 double weights[] = {0., -1 / 3., -1 / 3., -1 / 3., 0., 1.};
1948 double adc2GeV = 0.;
1955 throw cms::Exception(
"Severe Error") << __FILE__ <<
":" << __LINE__ <<
": "
1956 <<
"this is a bug. Please report it.\n";
1963 double gainInv[] = {12., 1., 6., 12};
1967 if (iframe >= 0 && iframe <
frame.size()) {
2038 MonitorElement*
result = ibook.
bookProfile2D(
name,
title, nbinx,
xmin,
xmax, nbiny,
ymin,
ymax, 0, 0, 0,
option);
2069 log <<
"Avalailable histograms (DQM monitor elements): \n";
2071 log << it->first <<
": " << it->second <<
"\n";
2073 log <<
"\nTo include an histogram add its name in the vstring parameter "
2074 "'histograms' of the EcalSelectiveReadoutValidation module\n";
2078 double ruHeaderPayload = 0.;
2079 const int firstEbDcc0 =
nEeDccs / 2;
2080 for (
int iDcc0 = firstEbDcc0; iDcc0 < firstEbDcc0 +
nEbDccs; ++iDcc0) {
2088 double ruHeaderPayload = 0.;
2089 const unsigned firstEbDcc0 =
nEeDccs / 2;
2090 for (
unsigned iDcc0 = 0; iDcc0 <
nDccs_; ++iDcc0) {
2092 if (iDcc0 == firstEbDcc0)
2102 const std::vector<int>& firWeights,
2105 const int nFIRTaps = 6;
2107 const vector<int>&
w = firWeights;
2111 bool gain12saturated =
false;
2112 const int gain12 = 0x01;
2113 const int lastFIRSample = firstFIRSample + nFIRTaps - 1;
2116 for (
int iSample = firstFIRSample - 1; iSample < lastFIRSample; ++iSample, ++iWeight) {
2117 if (iSample >= 0 && iSample <
frame.size()) {
2119 if (
sample.gainId() != gain12)
2120 gain12saturated =
true;
2121 LogTrace(
"DccFir") << (iSample >= firstFIRSample ?
"+" :
"") <<
sample.adc() <<
"*(" <<
w[iWeight] <<
")";
2122 acc +=
sample.adc() *
w[iWeight];
2125 <<
": Not enough samples in data frame or 'ecalDccZs1stSample' module "
2126 "parameter is not valid...";
2133 acc = (acc >= 0) ? (acc >> 8) : -(-acc >> 8);
2138 LogTrace(
"DccFir") <<
"acc: " << acc <<
"\n"
2139 <<
"saturated: " << (gain12saturated ?
"yes" :
"no") <<
"\n";
2142 *saturated = gain12saturated;
2149 const int nFIRTaps = 6;
2150 vector<int> firWeights(nFIRTaps, 0);
2151 const static int maxWeight = 0xEFF;
2152 for (
unsigned i = 0;
i <
min((
size_t)nFIRTaps, normalizedWeights.size()); ++
i) {
2153 firWeights[
i] = lround(normalizedWeights[
i] * (1 << 10));
2154 if (
abs(firWeights[
i]) > maxWeight) {
2155 firWeights[
i] = firWeights[
i] < 0 ? -maxWeight : maxWeight;
2162 bool notNormalized =
false;
2163 bool notInt =
false;
2164 for (
unsigned i = 0;
i < weightsForZsFIR.size(); ++
i) {
2165 if (weightsForZsFIR[
i] > 1.)
2166 notNormalized =
true;
2167 if ((
int)weightsForZsFIR[
i] != weightsForZsFIR[
i])
2170 if (notInt && notNormalized) {
2171 throw cms::Exception(
"InvalidParameter") <<
"weigtsForZsFIR paramater values are not valid: they "
2172 <<
"must either be integer and uses the hardware representation "
2173 <<
"of the weights or less or equal than 1 and used the normalized "
2174 <<
"representation.";
2177 if (notNormalized) {
2178 firWeights_ = vector<int>(weightsForZsFIR.size());
2179 for (
unsigned i = 0;
i < weightsForZsFIR.size(); ++
i) {
2186 log <<
"Input weights for FIR: ";
2187 for (
unsigned i = 0;
i < weightsForZsFIR.size(); ++
i) {
2188 log << weightsForZsFIR[
i] <<
"\t";
2192 log <<
"\nActual FIR weights: ";
2199 log <<
"\nNormalized FIR weights after hw representation rounding: ";
2212 <<
"' for SRP algorithm result check.\n";
2220 <<
"' for Selective Readout decision application check.\n";
2230 typedef typename T::const_iterator SrFlagCollectionConstIt;
2231 typedef typename T::key_type MyRuDetIdType;
2232 SrFlagCollectionConstIt itSrfFromData = srfFromData.begin();
2233 SrFlagCollectionConstIt itComputedSr = computedSrf.begin();
2235 while (itSrfFromData != srfFromData.end() || itComputedSr != computedSrf.end()) {
2236 MyRuDetIdType inconsistentRu = 0;
2237 bool inconsistent =
false;
2238 if (itComputedSr == computedSrf.end() ||
2239 (itSrfFromData != srfFromData.end() && itSrfFromData->id() < itComputedSr->id())) {
2241 pair<int, int> ch =
dccCh(itSrfFromData->id());
2242 srpAlgoErrorLog_ <<
event.id() <<
": " << itSrfFromData->id() <<
", DCC " << ch.first <<
" ch " << ch.second
2243 <<
" found in data (SRF:" << itSrfFromData->flagName()
2244 <<
") but not in the set of SRFs computed from the data TTF.\n";
2245 inconsistentRu = itSrfFromData->id();
2246 inconsistent =
true;
2248 }
else if (itSrfFromData == srfFromData.end() ||
2249 (itComputedSr != computedSrf.end() && itComputedSr->id() < itSrfFromData->id())) {
2251 pair<int, int> ch =
dccCh(itComputedSr->id());
2253 srpAlgoErrorLog_ <<
event.id() <<
": " << itComputedSr->id() <<
", DCC " << ch.first <<
" ch " << ch.second
2254 <<
" not found in data. Computed SRF: " << itComputedSr->flagName() <<
".\n";
2255 inconsistentRu = itComputedSr->id();
2256 inconsistent =
true;
2261 if (itComputedSr->value() != itSrfFromData->value()) {
2262 pair<int, int> ch =
dccCh(itSrfFromData->id());
2263 srpAlgoErrorLog_ <<
event.id() <<
", " << itSrfFromData->id() <<
", DCC " << ch.first <<
" ch " << ch.second
2264 <<
", SRF inconsistency: "
2265 <<
"from data: " << itSrfFromData->flagName()
2266 <<
", computed from TTF: " << itComputedSr->flagName() <<
"\n";
2267 inconsistentRu = itComputedSr->id();
2268 inconsistent =
true;
2270 if (itComputedSr != computedSrf.end())
2272 if (itSrfFromData != srfFromData.end())
2286 <<
"Argument of EcalSelectiveReadoutValidation::dccId(const EcalTrigTowerDetId&) "
2287 <<
"must be a barrel trigger tower Id\n";
2289 return dccCh(detId).first;
2308 buf <<
"List of DCCs found in the first processed event: ";
2310 for (
unsigned iDcc = 0; iDcc <
nDccs_; ++iDcc) {
2316 buf <<
"\nOnly DCCs from this list will be considered for error logging\n";
2324 typedef typename T::const_iterator SrFlagCollectionConstIt;
2325 typedef typename T::key_type MyRuDetIdType;
2327 for (SrFlagCollectionConstIt itSrf = srfs.begin(); itSrf != srfs.end(); ++itSrf) {
2329 pair<int, int> ru =
dccCh(itSrf->id());
2341 << ru.second <<
") is 'Full readout' "
2342 <<
"while none of its channel was read out\n";
2349 << ru.second <<
") is 'Full readout' "
2351 <<
getCrystalCount(ru.first, ru.second) <<
" channels were read out.\n";
2371 if (iDcc < minDccId_ || iDcc >
maxDccId_) {
2373 }
else if (10 <= iDcc && iDcc <= 45) {
2380 iDccPhi = iDcc - 45;
2381 switch (iDccPhi * 100 + iDccCh) {
MonitorElement * meEbRecE_
MonitorElement * meEeRecEHitXtal_
static const double rad2deg
Conversion factor from radian to degree.
T const * product() const
MonitorElement * meDccVolFromData_
double getDccSrDependentPayload(int iDcc0, double nReadRus, double nReadXtals) const
int nEeZsErrors_
Counter of EE ZS errors (LI channel below ZS threshold)
void fill(MonitorElement *me, float x)
constexpr int gainId(sample_type sample)
get the gainId (2 bits)
MonitorElement * meL1aRate_
MonitorElement * meTpVsEtSum_
MonitorElement * meEbRecEHitXtal_
void analyzeEE(const edm::Event &event, const edm::EventSetup &es)
MonitorElement * meEeNoise_
int cIndex2iTtEta(int i) const
int iphi() const
get the tower iphi
std::vector< EcalRecHit >::const_iterator const_iterator
int nDroppedFRO_
Counter of FRO-flagged RU dropped from data.
const EcalTrigTowerDetId & id() const override
double getEeEventSize(double nReadXtals) const
double phi
number of sim hits
double getBytesPerCrystal() const
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
MonitorElement * meSRFlagsConsistency_
std::map< uint32_t, EcalTPGLut > EcalTPGLutMap
MonitorElement * meDccLiVol_
std::string srpAlgoErrorLogFileName_
void compareSrfColl(const edm::Event &event, T &srfFromData, T &computedSrf)
MonitorElement * meHiTtf_
static const int nEndcaps
number of endcaps
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
double getL1aRate() const
MonitorElement * meEbSimE_
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
std::ofstream srpAlgoErrorLog_
Output ascii file for unconsistency on SR flags.
static const int nEeY
EE crystal grid size along Y.
CollHandle< EBDigiCollection > ebDigis_
MonitorElement * meTpMap_
double frame2EnergyForTp(const T &frame, int offset=0) const
MonitorElement * meDccHiVol_
std::set< std::string > histList_
static const int nEeDccs
number of DCCs for EE
int ietaAbs() const
get the absolute value of the tower ieta
MonitorElement * meLiTtf_
const EcalElectronicsMapping * elecMap_
double eta
phi crystal position in degrees
MonitorElement * meTtfVsEtSum_
double ttEtSums[nTtEta][nTtPhi]
MonitorElement * bookProfile2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, double lowZ, double highZ, char const *option="s", FUNC onbooking=NOOP())
std::vector< EcalScDetId > getEcalScDetId(int DCCid, int DCC_Channel, bool ignoreSingleCrystal=true) const
MonitorElement * meEeLiZsFir_
constexpr Detector det() const
get the detector field from this detid
MonitorElement * meDroppedFROCnt_
const EcalTrigTowerConstituentsMap * triggerTowerMap_
void analyzeTP(const edm::Event &event, const edm::EventSetup &es)
MonitorElement * meIncompleteFROMap_
MonitorElement * meEbFullRoCnt_
CollHandle< RecHitCollection > ebRecHits_
unsigned ttId(DetId const &)
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * meVolBHI_
int iEta2cIndex(int iEta) const
MonitorElement * meEbRecVsSimE_
MonitorElement * meEbEMean_
MonitorElement * meChOcc_
U second(std::pair< T, U > const &p)
void configFirWeights(const std::vector< double > &weightsForZsFIR)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
MonitorElement * meEeEMean_
void checkSrApplication(const edm::Event &event, T &srfs)
bool gain12
eta crystal position
~EcalSelectiveReadoutValidation() override
Destructor.
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meDroppedFROMap_
Log< level::Info, false > LogInfo
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
int zside() const
get the z-side of the tower (1/-1)
MonitorElement * meEeHiZsFir_
MonitorElement * meZsErrType1Cnt_
Log< level::Warning, false > LogWarning
CollHandle< EBSrFlagCollection > ebSrFlags_
static const int nEeX
EE crystal grid size along X.
static const double tmax[3]
MonitorElement * bookProfile2D(DQMStore::IBooker &, const std::string &name, const std::string &title, int nbinx, double xmin, double xmax, int nbiny, double ymin, double ymax, const char *option="")
void analyzeDataVolume(const edm::Event &e, const edm::EventSetup &es)
int xtalGraphY(const EEDetId &id) const
MonitorElement * meCompleteZSRateMap_
int towerId() const
get the tower id
Sin< T >::type sin(const T &t)
int simHit
energy reconstructed from zero-suppressed digi
const EcalScDetId & id() const override
MonitorElement * meDroppedFRORateMap_
void anaDigi(const T &frame, const U &srFlagColl)
MonitorElement * meEeZsErrType1Cnt_
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
int iXY2cIndex(int iX) const
double noZsRecE
sim hit energy sum
MonitorElement * meCompleteZSCnt_
std::pair< int, int > dccCh(const DetId &xtalId) const
int iTtPhi2cIndex(int iPhi) const
double getDccOverhead(subdet_t subdet) const
MonitorElement * meEbNoise_
bool gain12
eta crystal position
CollHandle< FEDRawDataCollection > fedRaw_
void dqmEndRun(const edm::Run &r, const edm::EventSetup &c) override
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
double getEbEventSize(double nReadXtals) const
MonitorElement * meVolELI_
static const int nOneEeTtEta
Number of Trigger Towers in an endcap along Eta.
int getRuCount(int iDcc0) const
int dccId(const EcalScDetId &detId) const
MonitorElement * meMiTtf_
static const int nEbDccs
number of DCCs for EB
MonitorElement * meEbHiZsFir_
EcalElectronicsId getElectronicsId(const DetId &id) const
Get the electronics id for this det id.
int nEbZsErrors_
Counter of EB ZS errors (LI channel below ZS threshold)
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
MonitorElement * meVolEHI_
void readAllCollections(const edm::Event &e)
Geom::Theta< T > theta() const
MonitorElement * book2D(DQMStore::IBooker &, const std::string &name, const std::string &title, int nxbins, double xmin, double xmax, int nybins, double ymin, double ymax)
double frame2Energy(const EcalDataFrame &frame) const
CollHandle< EESrFlagCollection > eeSrFlags_
EcalSelectiveReadoutValidation(const edm::ParameterSet &ps)
Constructor.
MonitorElement * meEbZsErrCnt_
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
MonitorElement * meEbLiZsFir_
bool registerHist(const std::string &name, const std::string &title)
int cIndex2iPhi(int i) const
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void setTtEtSums(const edm::EventSetup &es, const EBDigiCollection &ebDigis, const EEDigiCollection &eeDigis)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
double noZsRecE
sim hit energy sum
static const int minDccId_
static const int nEbEta
number of crystals along Eta in EB
std::pair< int, int > getDCCandSC(EcalScDetId id) const
MonitorElement * bookProfile(DQMStore::IBooker &, const std::string &name, const std::string &title, int nbins, double xmin, double xmax)
const std::map< uint32_t, Item > & getMap() const
MonitorElement * meVolLI_
bool isRuComplete_[nDccs_][nDccChs_]
std::vector< int > firWeights_
int iPhi2cIndex(int iPhi) const
MonitorElement * meIncompleteFRORateMap_
CollHandle< RecHitCollection > eeRecHits_
CollHandle< EESrFlagCollection > eeComputedSrFlags_
static const int nTtEta
Number of Trigger Towers along Eta.
int ruGraphX(const EcalScDetId &id) const
static const int maxDccId_
double getDccEventSize(int iDcc0, double nReadXtals) const
static const int nTtPhi
Number of Trigger Towers along Phi.
MonitorElement * meEeNoZsRecVsSimE_
CollHandle< EEDigiCollection > eeDigis_
constexpr int16_t xOffset
const_iterator begin() const
The iterator returned can not safely be used across threads.
std::string outputFile_
Output file for histograms.
const EcalTPGGroupsMap & getMap() const
virtual TProfile * getTProfile()
MonitorElement * meEbNoZsRecVsSimE_
virtual std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const
Get the cell geometry of a given detector id. Should return false if not found.
void updateL1aRate(const edm::Event &event)
Log< level::Error, false > LogError
double recE
energy reconstructed from unsuppressed digi
int nCompleteZS_
Counter of ZS-flagged RU fully read out.
MonitorElement * meEbZsErrType1Cnt_
int ieta() const
get the tower ieta
void analyze(edm::Event const &e, edm::EventSetup const &c) override
Analyzes the event.
static int dccZsFIR(const EcalDataFrame &frame, const std::vector< int > &firWeights, int firstFIRSample, bool *saturated=nullptr)
size_t size() const
Lenght of the data buffer in bytes.
int nEeFROCnt_
Counter of EE FRO-flagged RUs.
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
MonitorElement * meEeSimE_
bool logSrApplicationErrors_
static const unsigned nDccs_
Total number of DCCs.
unsigned towerId(DetId const &)
MonitorElement * meFullRoRu_
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
CollHandle< std::vector< PCaloHit > > eeSimHits_
constexpr uint32_t rawId() const
get the raw id
std::vector< double > weights_
int iTtEta2cIndex(int iEta) const
bool eeRuActive_[nEndcaps][nEeX/scEdge][nEeY/scEdge]
MonitorElement * meZs1Ru_
static const int SRF_FULL
MonitorElement * meEeRecVsSimE_
CollHandle< EBSrFlagCollection > ebComputedSrFlags_
MonitorElement * bookFloat(DQMStore::IBooker &, const std::string &name)
std::vector< bool > logErrForDccs_
energiesEb_t ebEnergies[nEbEta][nEbPhi]
double eta
phi crystal position in degrees
int simHit
energy reconstructed from zero-suppressed digi
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
static const int scEdge
Number of crystals along a supercrystal edge.
int xtalGraphX(const EEDetId &id) const
void read(const edm::Event &event)
static std::vector< int > getFIRWeights(const std::vector< double > &normalizedWeights)
static const int ebTtEdge
Number of crystals along an EB TT.
void setToken(edm::ConsumesCollector &collector)
MonitorElement * book1D(DQMStore::IBooker &, const std::string &name, const std::string &title, int nbins, double xmin, double xmax)
UseScope< MonitorElementData::Scope::RUN > UseRunScope
static const int nDccRus_[nDccs_]
number of RUs for each DCC
int cIndex2iEta(int i) const
MonitorElement * meIncompleteFROCnt_
std::map< uint32_t, EcalTPGLut >::const_iterator EcalTPGLutMapItr
T getParameter(std::string const &) const
int nEbFROCnt_
Counter of EB FRO-flagged RUs.
static const int kByte_
number of bytes in 1 kByte:
MonitorElement * meZsErrCnt_
CollHandle< std::vector< PCaloHit > > ebSimHits_
int getCrystalCount(int iDcc, int iDccCh)
MonitorElement * meFullRoCnt_
std::ofstream srApplicationErrorLog_
Output ascii file for unconsistency between Xtals and RU Flags.
void printAvailableHists()
std::string srApplicationErrorLogFileName_
int nPerRu_[nDccs_][nDccChs_]
Abs< T >::type abs(const T &t)
MonitorElement * meForcedRu_
MonitorElement * meForcedTtf_
MonitorElement * meDccVol_
int nIncompleteFRO_
Counter of FRO-flagged RU only partial data.
MonitorElement * meVolHI_
CollHandle< EBDigiCollection > ebNoZsDigis_
CollHandle< EEDigiCollection > eeNoZsDigis_
bool ebRuActive_[nEbEta/ebTtEdge][nEbPhi/ebTtEdge]
static const int SRF_FORCED_MASK
MonitorElement * meTtfVsTp_
double phi
number of sim hits
MonitorElement * meEeRecE_
int cIndex2iTtPhi(int i) const
EcalTrigTowerDetId readOutUnitOf(const EBDetId &xtalId) const
std::map< uint32_t, EcalTPGPhysicsConst::Item >::const_iterator EcalTPGPhysicsConstMapIterator
static const int nEbPhi
number of crystals along Phi in EB
MonitorElement * meEeZsErrCnt_
MonitorElement * meCompleteZSMap_
double recE
energy reconstructed from unsuppressed digi
int ruGraphY(const EcalScDetId &id) const
const_iterator end() const
MonitorElement * meEeFullRoCnt_
Geom::Phi< T > phi() const
const EcalTPGLutMap & getMap() const
energiesEe_t eeEnergies[nEndcaps][nEeX][nEeY]
std::map< std::string, std::string > availableHistList_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
std::map< uint32_t, uint32_t > EcalTPGGroupsMap
CollHandle< EcalTrigPrimDigiCollection > tps_
bool verbose_
Verbosity switch.
Namespace of DDCMS conversion namespace.
MonitorElement * meVolBLI_
void analyzeEB(const edm::Event &event, const edm::EventSetup &es)