DQM
SiStripCommissioningSummary
src
SamplingSummaryFactory.cc
Go to the documentation of this file.
1
#include "
DQM/SiStripCommissioningSummary/interface/SamplingSummaryFactory.h
"
2
#include "
CondFormats/SiStripObjects/interface/SamplingAnalysis.h
"
3
#include "
DataFormats/SiStripCommon/interface/SiStripEnumsAndStrings.h
"
4
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
5
#include <iostream>
6
#include <sstream>
7
8
using namespace
sistrip
;
9
10
// -----------------------------------------------------------------------------
11
//
12
void
SamplingSummaryFactory::extract
(
Iterator
iter) {
13
SamplingAnalysis
*
anal
= dynamic_cast<SamplingAnalysis*>(iter->second);
14
if
(!
anal
) {
15
return
;
16
}
17
18
if
(mon_ ==
sistrip::FINE_DELAY_POS
) {
19
generator_->fillMap(level_, gran_, iter->first,
anal
->maximum());
20
}
else
if
(mon_ ==
sistrip::FINE_DELAY_ERROR
) {
21
generator_->fillMap(level_, gran_, iter->first,
anal
->error());
22
}
else
{
23
edm::LogWarning
(
mlSummaryPlots_
) <<
"[SummaryPlotFactory::"
<< __func__ <<
"]"
24
<<
" Unexpected monitorable: "
25
<<
SiStripEnumsAndStrings::monitorable
(
SummaryPlotFactoryBase::mon_
);
26
return
;
27
}
28
}
29
30
//------------------------------------------------------------------------------
31
//
32
void
SamplingSummaryFactory::format
() {
33
// Histogram formatting
34
if
(mon_ ==
sistrip::FINE_DELAY_POS
) {
35
generator_->axisLabel(
"Delay [ns]"
);
36
}
else
if
(mon_ ==
sistrip::FINE_DELAY_ERROR
) {
37
generator_->axisLabel(
"Uncertainty [ns]"
);
38
}
else
{
39
edm::LogWarning
(
mlSummaryPlots_
) <<
"[SummaryPlotFactory::"
<< __func__ <<
"]"
40
<<
" Unexpected SummaryHisto value:"
41
<<
SiStripEnumsAndStrings::monitorable
(
SummaryPlotFactoryBase::mon_
);
42
}
43
}
SamplingSummaryFactory::extract
void extract(Iterator) override
Definition:
SamplingSummaryFactory.cc:12
MessageLogger.h
SamplingSummaryFactory.h
sistrip::FINE_DELAY_POS
Definition:
ConstantsForMonitorable.h:292
SamplingAnalysis
Analysis for latency run.
Definition:
SamplingAnalysis.h:17
SummaryPlotFactoryBase::mon_
sistrip::Monitorable mon_
Definition:
SummaryPlotFactoryBase.h:25
sistrip::FINE_DELAY_ERROR
Definition:
ConstantsForMonitorable.h:293
SamplingSummaryFactory::format
void format() override
Definition:
SamplingSummaryFactory.cc:32
Iterator
Definition:
DQMStoreStats.h:94
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition:
MessageLogger.h:122
SamplingAnalysis.h
SiStripEnumsAndStrings::monitorable
static std::string monitorable(const sistrip::Monitorable &)
Definition:
SiStripEnumsAndStrings.cc:547
sistrip::mlSummaryPlots_
static const char mlSummaryPlots_[]
Definition:
ConstantsForLogger.h:26
SiStripEnumsAndStrings.h
sistrip
sistrip classes
Definition:
EnsembleCalibrationLA.cc:10
conversion_template_cfg.anal
anal
Definition:
conversion_template_cfg.py:16
Generated for CMSSW Reference Manual by
1.8.16