26 std::ostringstream* pDebugStream){
28 getConfigForHistogram(
nNoData_,
"nNoData",iConfig,pDebugStream);
29 getConfigForHistogram(
nLowRange_,
"nLowRange",iConfig,pDebugStream);
30 getConfigForHistogram(
nHighRange_,
"nHighRange",iConfig,pDebugStream);
31 getConfigForHistogram(
nMinZero_,
"nMinZero",iConfig,pDebugStream);
32 getConfigForHistogram(
nMaxSat_,
"nMaxSat",iConfig,pDebugStream);
33 getConfigForHistogram(
nLowPb_,
"nLowPb",iConfig,pDebugStream);
34 getConfigForHistogram(
nHighPb_,
"nHighPb",iConfig,pDebugStream);
35 getConfigForHistogram(
nOutOfSync_,
"nOutOfSync",iConfig,pDebugStream);
36 getConfigForHistogram(
nOtherPbs_,
"nOtherPbs",iConfig,pDebugStream);
37 getConfigForHistogram(
nApvErrorBit_,
"nApvErrorBit",iConfig,pDebugStream);
39 getConfigForHistogram(
nNegativePeds_,
"nNegativePeds",iConfig,pDebugStream);
41 getConfigForHistogram(
nNoDatavsTime_,
"nNoDatavsTime",iConfig,pDebugStream);
42 getConfigForHistogram(
nLowRangevsTime_,
"nLowRangevsTime",iConfig,pDebugStream);
44 getConfigForHistogram(
nMinZerovsTime_,
"nMinZerovsTime",iConfig,pDebugStream);
45 getConfigForHistogram(
nMaxSatvsTime_,
"nMaxSatvsTime",iConfig,pDebugStream);
46 getConfigForHistogram(
nLowPbvsTime_,
"nLowPbvsTime",iConfig,pDebugStream);
47 getConfigForHistogram(
nHighPbvsTime_,
"nHighPbvsTime",iConfig,pDebugStream);
49 getConfigForHistogram(
nOtherPbsvsTime_,
"nOtherPbsvsTime",iConfig,pDebugStream);
57 getConfigForHistogram(
noData_,
"NoData",iConfig,pDebugStream);
58 getConfigForHistogram(
lowRange_,
"LowRange",iConfig,pDebugStream);
59 getConfigForHistogram(
highRange_,
"HighRange",iConfig,pDebugStream);
60 getConfigForHistogram(
minZero_,
"MinZero",iConfig,pDebugStream);
61 getConfigForHistogram(
maxSat_,
"MaxSat",iConfig,pDebugStream);
62 getConfigForHistogram(
lowPb_,
"LowPb",iConfig,pDebugStream);
63 getConfigForHistogram(
highPb_,
"HighPb",iConfig,pDebugStream);
64 getConfigForHistogram(
outOfSync_,
"OutOfSync",iConfig,pDebugStream);
65 getConfigForHistogram(
otherPbs_,
"OtherPbs",iConfig,pDebugStream);
66 getConfigForHistogram(
apvErrorBit_,
"ApvErrorBit",iConfig,pDebugStream);
67 getConfigForHistogram(
apvAddressError_,
"ApvAddressError",iConfig,pDebugStream);
68 getConfigForHistogram(
negativePeds_,
"NegativePeds",iConfig,pDebugStream);
70 getConfigForHistogram(
frameRange_,
"FrameRange",iConfig,pDebugStream);
71 getConfigForHistogram(
frameMin_,
"FrameMin",iConfig,pDebugStream);
72 getConfigForHistogram(
frameMax_,
"FrameMax",iConfig,pDebugStream);
73 getConfigForHistogram(
baseline_,
"Baseline",iConfig,pDebugStream);
75 getConfigForHistogram(
noDataDetailed_,
"NoDataDetailed",iConfig,pDebugStream);
78 getConfigForHistogram(
minZeroDetailed_,
"MinZeroDetailed",iConfig,pDebugStream);
79 getConfigForHistogram(
maxSatDetailed_,
"MaxSatDetailed",iConfig,pDebugStream);
80 getConfigForHistogram(
lowPbDetailed_,
"LowPbDetailed",iConfig,pDebugStream);
81 getConfigForHistogram(
highPbDetailed_,
"HighPbDetailed",iConfig,pDebugStream);
155 fillHistogram(
lowPb_,aFedId);
182 const unsigned int aFedId,
183 const unsigned int aFedChannel) {
197 fillHistogram(
noData_,static_cast<unsigned int>(aFedChannel/4.));
264 ";n_{noData};n_{entries}",
268 ";n_{LowRange};n_{entries}",
272 ";n_{HighRange};n_{entries}",
276 ";n_{MinZero};n_{entries}",
280 ";n_{MaxSat};n_{entries}",
283 bookHistogram(
nLowPb_,
"nLowPb",
284 ";n_{lowPb};n_{entries}",
288 ";n_{highPb};n_{entries}",
292 ";n_{OOS};n_{entries}",
296 ";n_{OtherPbs};n_{entries}",
300 ";n_{APVerror};n_{entries}",
305 ";n_{APVAddressError};n_{entries}",
306 "n_{APVAddressError}"
310 ";n_{negPeds};n_{entries}",
316 bookHistogram(
noData_,
"NoData",
317 ";delayFPGA;n_{noData}",
325 ";fedId;n_{LowRange}",
326 siStripFedIdMax-siStripFedIdMin+1,
327 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
332 ";fedId;n_{HighRange}",
333 siStripFedIdMax-siStripFedIdMin+1,
334 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
339 ";fedId;n_{MinZero}",
340 siStripFedIdMax-siStripFedIdMin+1,
341 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
345 bookHistogram(
maxSat_,
"MaxSat",
347 siStripFedIdMax-siStripFedIdMin+1,
348 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
352 bookHistogram(
lowPb_,
"LowPb",
354 siStripFedIdMax-siStripFedIdMin+1,
355 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
359 bookHistogram(
highPb_,
"HighPb",
361 siStripFedIdMax-siStripFedIdMin+1,
362 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
368 siStripFedIdMax-siStripFedIdMin+1,
369 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
374 ";fedId;n_{OtherPbs}",
375 siStripFedIdMax-siStripFedIdMin+1,
376 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
381 ";fedId;n_{APVerror}",
382 siStripFedIdMax-siStripFedIdMin+1,
383 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
388 ";fedId;n_{APVAddressError}",
389 siStripFedIdMax-siStripFedIdMin+1,
390 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
395 ";fedId;n_{negPeds}",
396 siStripFedIdMax-siStripFedIdMin+1,
397 siStripFedIdMin-0.5,siStripFedIdMax+0.5,
402 ";range;n_{entries}",
404 "range (adc counts)");
407 ";Zero-light level;n_{entries}",
409 "Zero-light level (adc counts)");
412 ";Tick height;n_{entries}",
414 "Tick height (adc counts)");
417 ";Baseline;n_{entries}",
419 "Baseline (adc counts)");
433 ";time;n_{LowRange}",
440 ";time;n_{HighRange}",
484 ";time;n_{OtherPbs}",
491 ";time;n_{APVerror}",
498 ";time;n_{APVAddressError}",
502 "n_{APVAddressError}");
517 ";time;meanDigitalLow",
528 LogInfo(
"SPYHistograms") <<
" ---- Toplevel histograms book ! Number of MEs : "
529 << dqm_->getMEs().size()
562 std::stringstream fedIdStream;
563 fedIdStream << fedId;
564 dqm_->setCurrentFolder(fedKey.
path());
569 "NoDataForFED"+fedIdStream.str(),
570 "No data for FED ID "+fedIdStream.str(),
577 "LowRangeForFED"+fedIdStream.str(),
578 "Max-min<VAL for FED ID "+fedIdStream.str(),
585 "HighRangeForFED"+fedIdStream.str(),
586 "Max-min>VAL for FED ID "+fedIdStream.str(),
593 "MinZeroForFED"+fedIdStream.str(),
594 "min=0 for FED ID "+fedIdStream.str(),
601 "MaxSatForFED"+fedIdStream.str(),
602 "max=1023 for FED ID "+fedIdStream.str(),
609 "LowPbForFED"+fedIdStream.str(),
610 "Pb with digitalLow for FED ID "+fedIdStream.str(),
617 "HighPbForFED"+fedIdStream.str(),
618 "Pb with digitalHigh for FED ID "+fedIdStream.str(),
625 "OutOfSyncForFED"+fedIdStream.str(),
626 "Out-of-sync for FED ID "+fedIdStream.str(),
633 "OtherPbsForFED"+fedIdStream.str(),
634 "Other issues for FED ID "+fedIdStream.str(),
641 "ApvErrorBitForFED"+fedIdStream.str(),
642 "APV error for FED ID "+fedIdStream.str(),
649 "ApvAddressErrorForFED"+fedIdStream.str(),
650 "APV address error for FED ID "+fedIdStream.str(),
657 "NegativePedsForFED"+fedIdStream.str(),
658 "Negative ped subtr for FED ID "+fedIdStream.str(),
667 "PositionOfFirstHeaderBitForFED"+fedIdStream.str(),
668 "FED ID "+fedIdStream.str(),
675 "PositionOfFirstTrailerBitForFED"+fedIdStream.str(),
676 "FED ID "+fedIdStream.str(),
683 "DistanceHeaderTrailerForFED"+fedIdStream.str(),
684 "FED ID "+fedIdStream.str(),
703 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_
HistogramConfig lowPbDetailed_
HistogramConfig highRange_
HistogramConfig negativePeds_
static const uint16_t SPY_SAMPLES_PER_CHANNEL
HistogramConfig minZeroDetailed_
HistogramConfig frameMax_
HistogramConfig nOutOfSyncvsTime_
HistogramConfig maxSatDetailed_
HistogramConfig positionOfFirstTrailerBitDetailed_
HistogramConfig highPbDetailed_
void initialise(const edm::ParameterSet &iConfig, std::ostringstream *pDebugStream)
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_
HistogramConfig noDataDetailed_
std::map< unsigned int, MonitorElement * > apvAddressErrorDetailedMap_
HistogramConfig positionOfFirstHeaderBitDetailed_
std::map< unsigned int, MonitorElement * > maxSatDetailedMap_
HistogramConfig baseline_
void bookAllFEDHistograms()
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
HistogramConfig otherPbs_
HistogramConfig outOfSync_
HistogramConfig lowRangeDetailed_
HistogramConfig nHighRange_
void bookFEDHistograms(const unsigned int fedId, const Errors &aErr, bool doAll=false)
HistogramConfig lowRange_
HistogramConfig distanceHeaderTrailerDetailed_
HistogramConfig nNoDatavsTime_
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_
void bookTopLevelHistograms(DQMStore *dqm)
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_