81 int section, layer, sector, plane, strip, stripGlobal;
82 std::map<int, StripData>::iterator it;
83 std::vector<StripData> stripDataVector;
84 std::vector<StripData>::iterator it2, it3, it4;
86 stripDataVector.push_back(it->second);
87 sort(stripDataVector.begin(), stripDataVector.end(), compareBadDigitRate);
88 printf(
"EKLM data checker report.\n"
89 "Strips with readout errors sorted by error rate:\n");
90 it2 = stripDataVector.begin();
91 while (it2 != stripDataVector.end()) {
92 if (it2->nBadDigits == 0)
95 while (it3 != stripDataVector.end()) {
96 if (it3->nBadDigits != it2->nBadDigits || it3->nDigits != it2->nDigits)
100 sort(it2, it3, compareStripNumber);
101 for (it4 = it2; it4 != it3; ++it4) {
103 it4->strip, §ion, &layer, §or, &plane, &strip);
104 printf(
"Section %d, layer %d, sector %d, plane %d, strip %d: %.1f%% "
106 section, layer, sector, plane, strip,
107 float(it4->nBadDigits) / it4->nDigits * 100,
108 it4->nBadDigits, it4->nDigits);
112 printf(
"Strips with no data collected:\n");
113 for (section = 1; section <=
m_GeoDat->getNSections(); section++) {
114 for (layer = 1; layer <=
m_GeoDat->getNDetectorLayers(section); layer++) {
115 for (sector = 1; sector <=
m_GeoDat->getNSectors(); sector++) {
116 for (plane = 1; plane <=
m_GeoDat->getNPlanes(); plane++) {
117 for (strip = 1; strip <=
m_GeoDat->getNStrips(); strip++) {
119 section, layer, sector, plane, strip);
122 printf(
"Section %d, layer %d, sector %d, plane %d, strip %d.\n",
123 section, layer, sector, plane, strip);