18 getConfigForHistogram(
nNoData_,
"nNoData", iConfig, pDebugStream);
19 getConfigForHistogram(
nLowRange_,
"nLowRange", iConfig, pDebugStream);
20 getConfigForHistogram(
nHighRange_,
"nHighRange", iConfig, pDebugStream);
21 getConfigForHistogram(
nMinZero_,
"nMinZero", iConfig, pDebugStream);
22 getConfigForHistogram(
nMaxSat_,
"nMaxSat", iConfig, pDebugStream);
23 getConfigForHistogram(
nLowPb_,
"nLowPb", iConfig, pDebugStream);
24 getConfigForHistogram(
nHighPb_,
"nHighPb", iConfig, pDebugStream);
25 getConfigForHistogram(
nOutOfSync_,
"nOutOfSync", iConfig, pDebugStream);
26 getConfigForHistogram(
nOtherPbs_,
"nOtherPbs", iConfig, pDebugStream);
27 getConfigForHistogram(
nApvErrorBit_,
"nApvErrorBit", iConfig, pDebugStream);
28 getConfigForHistogram(
nApvAddressError_,
"nApvAddressError", iConfig, pDebugStream);
29 getConfigForHistogram(
nNegativePeds_,
"nNegativePeds", iConfig, pDebugStream);
31 getConfigForHistogram(
nNoDatavsTime_,
"nNoDatavsTime", iConfig, pDebugStream);
32 getConfigForHistogram(
nLowRangevsTime_,
"nLowRangevsTime", iConfig, pDebugStream);
33 getConfigForHistogram(
nHighRangevsTime_,
"nHighRangevsTime", iConfig, pDebugStream);
34 getConfigForHistogram(
nMinZerovsTime_,
"nMinZerovsTime", iConfig, pDebugStream);
35 getConfigForHistogram(
nMaxSatvsTime_,
"nMaxSatvsTime", iConfig, pDebugStream);
36 getConfigForHistogram(
nLowPbvsTime_,
"nLowPbvsTime", iConfig, pDebugStream);
37 getConfigForHistogram(
nHighPbvsTime_,
"nHighPbvsTime", iConfig, pDebugStream);
38 getConfigForHistogram(
nOutOfSyncvsTime_,
"nOutOfSyncvsTime", iConfig, pDebugStream);
39 getConfigForHistogram(
nOtherPbsvsTime_,
"nOtherPbsvsTime", iConfig, pDebugStream);
46 getConfigForHistogram(
noData_,
"NoData", iConfig, pDebugStream);
47 getConfigForHistogram(
lowRange_,
"LowRange", iConfig, pDebugStream);
48 getConfigForHistogram(
highRange_,
"HighRange", iConfig, pDebugStream);
49 getConfigForHistogram(
minZero_,
"MinZero", iConfig, pDebugStream);
50 getConfigForHistogram(
maxSat_,
"MaxSat", iConfig, pDebugStream);
51 getConfigForHistogram(
lowPb_,
"LowPb", iConfig, pDebugStream);
52 getConfigForHistogram(
highPb_,
"HighPb", iConfig, pDebugStream);
53 getConfigForHistogram(
outOfSync_,
"OutOfSync", iConfig, pDebugStream);
54 getConfigForHistogram(
otherPbs_,
"OtherPbs", iConfig, pDebugStream);
55 getConfigForHistogram(
apvErrorBit_,
"ApvErrorBit", iConfig, pDebugStream);
56 getConfigForHistogram(
apvAddressError_,
"ApvAddressError", iConfig, pDebugStream);
57 getConfigForHistogram(
negativePeds_,
"NegativePeds", iConfig, pDebugStream);
59 getConfigForHistogram(
frameRange_,
"FrameRange", iConfig, pDebugStream);
60 getConfigForHistogram(
frameMin_,
"FrameMin", iConfig, pDebugStream);
61 getConfigForHistogram(
frameMax_,
"FrameMax", iConfig, pDebugStream);
62 getConfigForHistogram(
baseline_,
"Baseline", iConfig, pDebugStream);
64 getConfigForHistogram(
noDataDetailed_,
"NoDataDetailed", iConfig, pDebugStream);
65 getConfigForHistogram(
lowRangeDetailed_,
"LowRangeDetailed", iConfig, pDebugStream);
67 getConfigForHistogram(
minZeroDetailed_,
"MinZeroDetailed", iConfig, pDebugStream);
68 getConfigForHistogram(
maxSatDetailed_,
"MaxSatDetailed", iConfig, pDebugStream);
69 getConfigForHistogram(
lowPbDetailed_,
"LowPbDetailed", iConfig, pDebugStream);
70 getConfigForHistogram(
highPbDetailed_,
"HighPbDetailed", iConfig, pDebugStream);
72 getConfigForHistogram(
otherPbsDetailed_,
"OtherPbsDetailed", iConfig, pDebugStream);
133 fillHistogram(
maxSat_, aFedId);
136 fillHistogram(
lowPb_, aFedId);
139 fillHistogram(
highPb_, aFedId);
160 const unsigned int aFedId,
161 const unsigned int aFedChannel) {
175 fillHistogram(
noData_, static_cast<unsigned int>(aFedChannel / 4.));
237 bookHistogram(ibooker,
nNoData_,
"nNoData",
";n_{noData};n_{entries}",
"n_{noData}");
239 bookHistogram(ibooker,
nLowRange_,
"nLowRange",
";n_{LowRange};n_{entries}",
"n_{LowRange}");
241 bookHistogram(ibooker,
nHighRange_,
"nHighRange",
";n_{HighRange};n_{entries}",
"n_{HighRange}");
243 bookHistogram(ibooker,
nMinZero_,
"nMinZero",
";n_{MinZero};n_{entries}",
"n_{MinZero}");
245 bookHistogram(ibooker,
nMaxSat_,
"nMaxSat",
";n_{MaxSat};n_{entries}",
"n_{MaxSat}");
247 bookHistogram(ibooker,
nLowPb_,
"nLowPb",
";n_{lowPb};n_{entries}",
"n_{lowPb}");
249 bookHistogram(ibooker,
nHighPb_,
"nHighPb",
";n_{highPb};n_{entries}",
"n_{highPb}");
251 bookHistogram(ibooker,
nOutOfSync_,
"nOutOfSync",
";n_{OOS};n_{entries}",
"n_{OOS}");
253 bookHistogram(ibooker,
nOtherPbs_,
"nOtherPbs",
";n_{OtherPbs};n_{entries}",
"n_{OtherPbs}");
255 bookHistogram(ibooker,
nApvErrorBit_,
"nApvErrorBit",
";n_{APVerror};n_{entries}",
"n_{APVerror}");
258 ibooker,
nApvAddressError_,
"nApvAddressError",
";n_{APVAddressError};n_{entries}",
"n_{APVAddressError}");
260 bookHistogram(ibooker,
nNegativePeds_,
"nNegativePeds",
";n_{negPeds};n_{entries}",
"n_{negPeds}");
262 bookHistogram(ibooker,
265 ";delayFPGA;n_{noData}",
273 bookHistogram(ibooker,
276 ";fedId;n_{LowRange}",
277 siStripFedIdMax - siStripFedIdMin + 1,
278 siStripFedIdMin - 0.5,
279 siStripFedIdMax + 0.5,
282 bookHistogram(ibooker,
285 ";fedId;n_{HighRange}",
286 siStripFedIdMax - siStripFedIdMin + 1,
287 siStripFedIdMin - 0.5,
288 siStripFedIdMax + 0.5,
291 bookHistogram(ibooker,
294 ";fedId;n_{MinZero}",
295 siStripFedIdMax - siStripFedIdMin + 1,
296 siStripFedIdMin - 0.5,
297 siStripFedIdMax + 0.5,
300 bookHistogram(ibooker,
304 siStripFedIdMax - siStripFedIdMin + 1,
305 siStripFedIdMin - 0.5,
306 siStripFedIdMax + 0.5,
309 bookHistogram(ibooker,
313 siStripFedIdMax - siStripFedIdMin + 1,
314 siStripFedIdMin - 0.5,
315 siStripFedIdMax + 0.5,
318 bookHistogram(ibooker,
322 siStripFedIdMax - siStripFedIdMin + 1,
323 siStripFedIdMin - 0.5,
324 siStripFedIdMax + 0.5,
327 bookHistogram(ibooker,
331 siStripFedIdMax - siStripFedIdMin + 1,
332 siStripFedIdMin - 0.5,
333 siStripFedIdMax + 0.5,
336 bookHistogram(ibooker,
339 ";fedId;n_{OtherPbs}",
340 siStripFedIdMax - siStripFedIdMin + 1,
341 siStripFedIdMin - 0.5,
342 siStripFedIdMax + 0.5,
345 bookHistogram(ibooker,
348 ";fedId;n_{APVerror}",
349 siStripFedIdMax - siStripFedIdMin + 1,
350 siStripFedIdMin - 0.5,
351 siStripFedIdMax + 0.5,
354 bookHistogram(ibooker,
357 ";fedId;n_{APVAddressError}",
358 siStripFedIdMax - siStripFedIdMin + 1,
359 siStripFedIdMin - 0.5,
360 siStripFedIdMax + 0.5,
363 bookHistogram(ibooker,
366 ";fedId;n_{negPeds}",
367 siStripFedIdMax - siStripFedIdMin + 1,
368 siStripFedIdMin - 0.5,
369 siStripFedIdMax + 0.5,
372 bookHistogram(ibooker,
frameRange_,
"FrameRange",
";range;n_{entries}", 1024, 0, 1024,
"range (adc counts)");
375 ibooker,
frameMin_,
"FrameMin",
";Zero-light level;n_{entries}", 800, 0, 800,
"Zero-light level (adc counts)");
377 bookHistogram(ibooker,
frameMax_,
"FrameMax",
";Tick height;n_{entries}", 824, 200, 1024,
"Tick height (adc counts)");
379 bookHistogram(ibooker,
baseline_,
"Baseline",
";Baseline;n_{entries}", 1024, 0, 1024,
"Baseline (adc counts)");
395 ";time;n_{LowRange}",
404 ";time;n_{HighRange}",
458 ";time;n_{OtherPbs}",
466 "nApvErrorBitvsTime",
467 ";time;n_{APVerror}",
475 "nApvAddressErrorvsTime",
476 ";time;n_{APVAddressError}",
480 "n_{APVAddressError}");
484 "nNegativePedsvsTime",
495 "meanDigitalLowvsTime",
496 ";time;meanDigitalLow",
504 const unsigned int fedId,
522 std::stringstream fedIdStream;
523 fedIdStream <<
fedId;
526 bookHistogram(ibooker,
529 "NoDataForFED" + fedIdStream.str(),
530 "No data for FED ID " + fedIdStream.str(),
536 bookHistogram(ibooker,
539 "LowRangeForFED" + fedIdStream.str(),
540 "Max-min<VAL for FED ID " + fedIdStream.str(),
546 bookHistogram(ibooker,
549 "HighRangeForFED" + fedIdStream.str(),
550 "Max-min>VAL for FED ID " + fedIdStream.str(),
556 bookHistogram(ibooker,
559 "MinZeroForFED" + fedIdStream.str(),
560 "min=0 for FED ID " + fedIdStream.str(),
566 bookHistogram(ibooker,
569 "MaxSatForFED" + fedIdStream.str(),
570 "max=1023 for FED ID " + fedIdStream.str(),
576 bookHistogram(ibooker,
579 "LowPbForFED" + fedIdStream.str(),
580 "Pb with digitalLow for FED ID " + fedIdStream.str(),
586 bookHistogram(ibooker,
589 "HighPbForFED" + fedIdStream.str(),
590 "Pb with digitalHigh for FED ID " + fedIdStream.str(),
596 bookHistogram(ibooker,
599 "OutOfSyncForFED" + fedIdStream.str(),
600 "Out-of-sync for FED ID " + fedIdStream.str(),
606 bookHistogram(ibooker,
609 "OtherPbsForFED" + fedIdStream.str(),
610 "Other issues for FED ID " + fedIdStream.str(),
616 bookHistogram(ibooker,
619 "ApvErrorBitForFED" + fedIdStream.str(),
620 "APV error for FED ID " + fedIdStream.str(),
626 bookHistogram(ibooker,
629 "ApvAddressErrorForFED" + fedIdStream.str(),
630 "APV address error for FED ID " + fedIdStream.str(),
636 bookHistogram(ibooker,
639 "NegativePedsForFED" + fedIdStream.str(),
640 "Negative ped subtr for FED ID " + fedIdStream.str(),
646 bookHistogram(ibooker,
649 "PositionOfFirstHeaderBitForFED" + fedIdStream.str(),
650 "FED ID " + fedIdStream.str(),
656 bookHistogram(ibooker,
659 "PositionOfFirstTrailerBitForFED" + fedIdStream.str(),
660 "FED ID " + fedIdStream.str(),
664 "first trailer bit");
666 bookHistogram(ibooker,
669 "DistanceHeaderTrailerForFED" + fedIdStream.str(),
670 "FED ID " + fedIdStream.str(),
685 for (
unsigned int iFed = siStripFedIdMin; iFed <= siStripFedIdMax; iFed++) {
unsigned int nAPVAddressError
std::map< unsigned int, MonitorElement * > maxSatDetailedMap_
HistogramConfig nApvAddressErrorvsTime_
HistogramConfig frameMin_
HistogramConfig negativePedsDetailed_
static const uint16_t FED_ID_MIN
HistogramConfig apvAddressError_
HistogramConfig nNegativePedsvsTime_
unsigned int meanDigitalLow
virtual void setCurrentFolder(std::string const &fullpath)
A container class for generic run and event-related info, information required by the commissioning a...
std::map< unsigned int, MonitorElement * > lowPbDetailedMap_
HistogramConfig nHighRangevsTime_
void initialise(const edm::ParameterSet &iConfig, std::ostringstream *pDebugStream) override
HistogramConfig lowPbDetailed_
HistogramConfig highRange_
const std::string & path() const
std::map< unsigned int, MonitorElement * > highPbDetailedMap_
HistogramConfig negativePeds_
void bookTopLevelHistograms(DQMStore::IBooker &, const TkDetMap *)
static const uint16_t SPY_SAMPLES_PER_CHANNEL
std::map< unsigned int, MonitorElement * > negativePedsDetailedMap_
HistogramConfig minZeroDetailed_
HistogramConfig frameMax_
HistogramConfig nOutOfSyncvsTime_
HistogramConfig maxSatDetailed_
Log< level::Error, false > LogError
HistogramConfig positionOfFirstTrailerBitDetailed_
void bookAllFEDHistograms(DQMStore::IBooker &)
HistogramConfig highPbDetailed_
HistogramConfig nOtherPbs_
void fillCountersHistograms(const ErrorCounters &aCounter, const double aTime)
const uint16_t range(const Frame &aFrame)
HistogramConfig outOfSyncDetailed_
HistogramConfig noDataDetailed_
std::map< unsigned int, MonitorElement * > positionOfFirstTrailerBitDetailedMap_
HistogramConfig positionOfFirstHeaderBitDetailed_
HistogramConfig baseline_
std::map< unsigned int, MonitorElement * > lowRangeDetailedMap_
HistogramConfig nApvAddressError_
HistogramConfig meanDigitalLowvsTime_
std::map< unsigned int, MonitorElement * > outOfSyncDetailedMap_
std::map< unsigned int, MonitorElement * > highRangeDetailedMap_
void bookFEDHistograms(DQMStore::IBooker &, const unsigned int fedId, const Errors &aErr, bool doAll=false)
HistogramConfig otherPbs_
HistogramConfig outOfSync_
HistogramConfig lowRangeDetailed_
HistogramConfig nHighRange_
HistogramConfig lowRange_
HistogramConfig distanceHeaderTrailerDetailed_
HistogramConfig nNoDatavsTime_
Log< level::Info, false > LogInfo
std::map< unsigned int, MonitorElement * > positionOfFirstHeaderBitDetailedMap_
std::map< unsigned int, MonitorElement * > distanceHeaderTrailerDetailedMap_
~SPYHistograms() override
HistogramConfig nHighPbvsTime_
std::map< unsigned int, MonitorElement * > noDataDetailedMap_
Constants and enumerated types for FED/FEC systems.
void fillFEDHistograms(const Errors &aErr, const unsigned int aFedId)
std::map< unsigned int, MonitorElement * > apvErrorBitDetailedMap_
HistogramConfig highRangeDetailed_
HistogramConfig frameRange_
HistogramConfig nOtherPbsvsTime_
void fillGainHistograms(const Trends &aTrendElement, const double aTime)
HistogramConfig nMaxSatvsTime_
std::map< unsigned int, MonitorElement * > apvAddressErrorDetailedMap_
HistogramConfig apvAddressErrorDetailed_
HistogramConfig otherPbsDetailed_
HistogramConfig apvErrorBitDetailed_
HistogramConfig nNegativePeds_
static const uint16_t FEDCH_PER_FED
void fillDetailedHistograms(const Errors &aErr, const sistrip::SpyUtilities::Frame &aFrame, const unsigned int aFedId, const unsigned int aFedChannel)
HistogramConfig nApvErrorBit_
std::map< unsigned int, MonitorElement * > otherPbsDetailedMap_
HistogramConfig nApvErrorBitvsTime_
HistogramConfig nLowRangevsTime_
static const uint16_t FED_ID_MAX
HistogramConfig nLowRange_
std::vector< bool > histosBooked_
HistogramConfig nMinZerovsTime_
Log< level::Warning, false > LogWarning
HistogramConfig apvErrorBit_
std::map< unsigned int, MonitorElement * > minZeroDetailedMap_
HistogramConfig nMinZero_
HistogramConfig nLowPbvsTime_
HistogramConfig nOutOfSync_