25 std::ostringstream* pDebugStream){
27 getConfigForHistogram(
nNoData_,
"nNoData",iConfig,pDebugStream);
28 getConfigForHistogram(
nLowRange_,
"nLowRange",iConfig,pDebugStream);
29 getConfigForHistogram(
nHighRange_,
"nHighRange",iConfig,pDebugStream);
30 getConfigForHistogram(
nMinZero_,
"nMinZero",iConfig,pDebugStream);
31 getConfigForHistogram(
nMaxSat_,
"nMaxSat",iConfig,pDebugStream);
32 getConfigForHistogram(
nLowPb_,
"nLowPb",iConfig,pDebugStream);
33 getConfigForHistogram(
nHighPb_,
"nHighPb",iConfig,pDebugStream);
34 getConfigForHistogram(
nOutOfSync_,
"nOutOfSync",iConfig,pDebugStream);
35 getConfigForHistogram(
nOtherPbs_,
"nOtherPbs",iConfig,pDebugStream);
36 getConfigForHistogram(
nApvErrorBit_,
"nApvErrorBit",iConfig,pDebugStream);
38 getConfigForHistogram(
nNegativePeds_,
"nNegativePeds",iConfig,pDebugStream);
40 getConfigForHistogram(
nNoDatavsTime_,
"nNoDatavsTime",iConfig,pDebugStream);
41 getConfigForHistogram(
nLowRangevsTime_,
"nLowRangevsTime",iConfig,pDebugStream);
43 getConfigForHistogram(
nMinZerovsTime_,
"nMinZerovsTime",iConfig,pDebugStream);
44 getConfigForHistogram(
nMaxSatvsTime_,
"nMaxSatvsTime",iConfig,pDebugStream);
45 getConfigForHistogram(
nLowPbvsTime_,
"nLowPbvsTime",iConfig,pDebugStream);
46 getConfigForHistogram(
nHighPbvsTime_,
"nHighPbvsTime",iConfig,pDebugStream);
48 getConfigForHistogram(
nOtherPbsvsTime_,
"nOtherPbsvsTime",iConfig,pDebugStream);
56 getConfigForHistogram(
noData_,
"NoData",iConfig,pDebugStream);
57 getConfigForHistogram(
lowRange_,
"LowRange",iConfig,pDebugStream);
58 getConfigForHistogram(
highRange_,
"HighRange",iConfig,pDebugStream);
59 getConfigForHistogram(
minZero_,
"MinZero",iConfig,pDebugStream);
60 getConfigForHistogram(
maxSat_,
"MaxSat",iConfig,pDebugStream);
61 getConfigForHistogram(
lowPb_,
"LowPb",iConfig,pDebugStream);
62 getConfigForHistogram(
highPb_,
"HighPb",iConfig,pDebugStream);
63 getConfigForHistogram(
outOfSync_,
"OutOfSync",iConfig,pDebugStream);
64 getConfigForHistogram(
otherPbs_,
"OtherPbs",iConfig,pDebugStream);
65 getConfigForHistogram(
apvErrorBit_,
"ApvErrorBit",iConfig,pDebugStream);
66 getConfigForHistogram(
apvAddressError_,
"ApvAddressError",iConfig,pDebugStream);
67 getConfigForHistogram(
negativePeds_,
"NegativePeds",iConfig,pDebugStream);
69 getConfigForHistogram(
frameRange_,
"FrameRange",iConfig,pDebugStream);
70 getConfigForHistogram(
frameMin_,
"FrameMin",iConfig,pDebugStream);
71 getConfigForHistogram(
frameMax_,
"FrameMax",iConfig,pDebugStream);
72 getConfigForHistogram(
baseline_,
"Baseline",iConfig,pDebugStream);
74 getConfigForHistogram(
noDataDetailed_,
"NoDataDetailed",iConfig,pDebugStream);
77 getConfigForHistogram(
minZeroDetailed_,
"MinZeroDetailed",iConfig,pDebugStream);
78 getConfigForHistogram(
maxSatDetailed_,
"MaxSatDetailed",iConfig,pDebugStream);
79 getConfigForHistogram(
lowPbDetailed_,
"LowPbDetailed",iConfig,pDebugStream);
80 getConfigForHistogram(
highPbDetailed_,
"HighPbDetailed",iConfig,pDebugStream);
154 fillHistogram(
lowPb_,aFedId);
181 const unsigned int aFedId,
182 const unsigned int aFedChannel) {
196 fillHistogram(
noData_,static_cast<unsigned int>(aFedChannel/4.));
260 bookHistogram(ibooker ,
nNoData_,
"nNoData",
261 ";n_{noData};n_{entries}",
264 bookHistogram(ibooker ,
nLowRange_,
"nLowRange",
265 ";n_{LowRange};n_{entries}",
269 ";n_{HighRange};n_{entries}",
272 bookHistogram(ibooker ,
nMinZero_,
"nMinZero",
273 ";n_{MinZero};n_{entries}",
276 bookHistogram(ibooker ,
nMaxSat_,
"nMaxSat",
277 ";n_{MaxSat};n_{entries}",
280 bookHistogram(ibooker ,
nLowPb_,
"nLowPb",
281 ";n_{lowPb};n_{entries}",
284 bookHistogram(ibooker ,
nHighPb_,
"nHighPb",
285 ";n_{highPb};n_{entries}",
289 ";n_{OOS};n_{entries}",
292 bookHistogram(ibooker ,
nOtherPbs_,
"nOtherPbs",
293 ";n_{OtherPbs};n_{entries}",
297 ";n_{APVerror};n_{entries}",
302 ";n_{APVAddressError};n_{entries}",
303 "n_{APVAddressError}" 307 ";n_{negPeds};n_{entries}",
313 bookHistogram(ibooker ,
noData_,
"NoData",
314 ";delayFPGA;n_{noData}",
321 bookHistogram(ibooker ,
lowRange_,
"LowRange",
322 ";fedId;n_{LowRange}",
323 siStripFedIdMax-siStripFedIdMin+1,
324 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
328 bookHistogram(ibooker ,
highRange_,
"HighRange",
329 ";fedId;n_{HighRange}",
330 siStripFedIdMax-siStripFedIdMin+1,
331 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
335 bookHistogram(ibooker ,
minZero_,
"MinZero",
336 ";fedId;n_{MinZero}",
337 siStripFedIdMax-siStripFedIdMin+1,
338 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
342 bookHistogram(ibooker ,
maxSat_,
"MaxSat",
344 siStripFedIdMax-siStripFedIdMin+1,
345 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
349 bookHistogram(ibooker ,
lowPb_,
"LowPb",
351 siStripFedIdMax-siStripFedIdMin+1,
352 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
356 bookHistogram(ibooker ,
highPb_,
"HighPb",
358 siStripFedIdMax-siStripFedIdMin+1,
359 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
363 bookHistogram(ibooker ,
outOfSync_,
"OutOfSync",
365 siStripFedIdMax-siStripFedIdMin+1,
366 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
370 bookHistogram(ibooker ,
otherPbs_,
"OtherPbs",
371 ";fedId;n_{OtherPbs}",
372 siStripFedIdMax-siStripFedIdMin+1,
373 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
378 ";fedId;n_{APVerror}",
379 siStripFedIdMax-siStripFedIdMin+1,
380 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
385 ";fedId;n_{APVAddressError}",
386 siStripFedIdMax-siStripFedIdMin+1,
387 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
392 ";fedId;n_{negPeds}",
393 siStripFedIdMax-siStripFedIdMin+1,
394 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
399 ";range;n_{entries}",
401 "range (adc counts)");
403 bookHistogram(ibooker ,
frameMin_,
"FrameMin",
404 ";Zero-light level;n_{entries}",
406 "Zero-light level (adc counts)");
408 bookHistogram(ibooker ,
frameMax_,
"FrameMax",
409 ";Tick height;n_{entries}",
411 "Tick height (adc counts)");
413 bookHistogram(ibooker ,
baseline_,
"Baseline",
414 ";Baseline;n_{entries}",
416 "Baseline (adc counts)");
430 ";time;n_{LowRange}",
437 ";time;n_{HighRange}",
481 ";time;n_{OtherPbs}",
488 ";time;n_{APVerror}",
495 ";time;n_{APVAddressError}",
499 "n_{APVAddressError}");
514 ";time;meanDigitalLow",
548 std::stringstream fedIdStream;
549 fedIdStream <<
fedId;
555 "NoDataForFED"+fedIdStream.str(),
556 "No data for FED ID "+fedIdStream.str(),
563 "LowRangeForFED"+fedIdStream.str(),
564 "Max-min<VAL for FED ID "+fedIdStream.str(),
571 "HighRangeForFED"+fedIdStream.str(),
572 "Max-min>VAL for FED ID "+fedIdStream.str(),
579 "MinZeroForFED"+fedIdStream.str(),
580 "min=0 for FED ID "+fedIdStream.str(),
587 "MaxSatForFED"+fedIdStream.str(),
588 "max=1023 for FED ID "+fedIdStream.str(),
595 "LowPbForFED"+fedIdStream.str(),
596 "Pb with digitalLow for FED ID "+fedIdStream.str(),
603 "HighPbForFED"+fedIdStream.str(),
604 "Pb with digitalHigh for FED ID "+fedIdStream.str(),
611 "OutOfSyncForFED"+fedIdStream.str(),
612 "Out-of-sync for FED ID "+fedIdStream.str(),
619 "OtherPbsForFED"+fedIdStream.str(),
620 "Other issues for FED ID "+fedIdStream.str(),
627 "ApvErrorBitForFED"+fedIdStream.str(),
628 "APV error for FED ID "+fedIdStream.str(),
635 "ApvAddressErrorForFED"+fedIdStream.str(),
636 "APV address error for FED ID "+fedIdStream.str(),
643 "NegativePedsForFED"+fedIdStream.str(),
644 "Negative ped subtr for FED ID "+fedIdStream.str(),
653 "PositionOfFirstHeaderBitForFED"+fedIdStream.str(),
654 "FED ID "+fedIdStream.str(),
661 "PositionOfFirstTrailerBitForFED"+fedIdStream.str(),
662 "FED ID "+fedIdStream.str(),
669 "DistanceHeaderTrailerForFED"+fedIdStream.str(),
670 "FED ID "+fedIdStream.str(),
689 for (
unsigned int iFed = siStripFedIdMin; iFed <= siStripFedIdMax; iFed++) {
unsigned int nAPVAddressError
std::map< unsigned int, MonitorElement * > negativePedsDetailedMap_
HistogramConfig nApvAddressErrorvsTime_
HistogramConfig frameMin_
HistogramConfig negativePedsDetailed_
std::map< unsigned int, MonitorElement * > highPbDetailedMap_
static const uint16_t FED_ID_MIN
HistogramConfig apvAddressError_
HistogramConfig nNegativePedsvsTime_
unsigned int meanDigitalLow
A container class for generic run and event-related info, information required by the commissioning a...
std::map< unsigned int, MonitorElement * > highRangeDetailedMap_
HistogramConfig nHighRangevsTime_
void initialise(const edm::ParameterSet &iConfig, std::ostringstream *pDebugStream) override
HistogramConfig lowPbDetailed_
HistogramConfig highRange_
HistogramConfig negativePeds_
void bookTopLevelHistograms(DQMStore::IBooker &, const TkDetMap *)
static const uint16_t SPY_SAMPLES_PER_CHANNEL
HistogramConfig minZeroDetailed_
HistogramConfig frameMax_
HistogramConfig nOutOfSyncvsTime_
HistogramConfig maxSatDetailed_
HistogramConfig positionOfFirstTrailerBitDetailed_
void bookAllFEDHistograms(DQMStore::IBooker &)
HistogramConfig highPbDetailed_
std::map< unsigned int, MonitorElement * > minZeroDetailedMap_
std::map< unsigned int, MonitorElement * > positionOfFirstHeaderBitDetailedMap_
std::map< unsigned int, MonitorElement * > lowRangeDetailedMap_
HistogramConfig nOtherPbs_
void fillCountersHistograms(const ErrorCounters &aCounter, const double aTime)
std::map< unsigned int, MonitorElement * > otherPbsDetailedMap_
HistogramConfig outOfSyncDetailed_
void setCurrentFolder(std::string const &fullpath)
HistogramConfig noDataDetailed_
std::map< unsigned int, MonitorElement * > apvAddressErrorDetailedMap_
HistogramConfig positionOfFirstHeaderBitDetailed_
std::map< unsigned int, MonitorElement * > maxSatDetailedMap_
HistogramConfig baseline_
std::map< unsigned int, MonitorElement * > noDataDetailedMap_
HistogramConfig nApvAddressError_
static const uint16_t range(const Frame &aFrame)
std::map< unsigned int, MonitorElement * > apvErrorBitDetailedMap_
HistogramConfig meanDigitalLowvsTime_
std::map< unsigned int, MonitorElement * > lowPbDetailedMap_
const std::string & path() const
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_
~SPYHistograms() override
HistogramConfig nHighPbvsTime_
Constants and enumerated types for FED/FEC systems.
void fillFEDHistograms(const Errors &aErr, const unsigned int aFedId)
HistogramConfig highRangeDetailed_
HistogramConfig frameRange_
HistogramConfig nOtherPbsvsTime_
void fillGainHistograms(const Trends &aTrendElement, const double aTime)
HistogramConfig nMaxSatvsTime_
HistogramConfig apvAddressErrorDetailed_
HistogramConfig otherPbsDetailed_
HistogramConfig apvErrorBitDetailed_
HistogramConfig nNegativePeds_
std::map< unsigned int, MonitorElement * > distanceHeaderTrailerDetailedMap_
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_
HistogramConfig nApvErrorBitvsTime_
HistogramConfig nLowRangevsTime_
static const uint16_t FED_ID_MAX
HistogramConfig nLowRange_
std::vector< bool > histosBooked_
HistogramConfig nMinZerovsTime_
HistogramConfig apvErrorBit_
std::map< unsigned int, MonitorElement * > positionOfFirstTrailerBitDetailedMap_
HistogramConfig nMinZero_
std::map< unsigned int, MonitorElement * > outOfSyncDetailedMap_
HistogramConfig nLowPbvsTime_
HistogramConfig nOutOfSync_