src
DQM
SiStripCommissioningSummary
src
CommissioningSummaryFactory.cc
Go to the documentation of this file.
1
#include "
DQM/SiStripCommissioningSummary/interface/CommissioningSummaryFactory.h
"
2
#include "
CondFormats/SiStripObjects/interface/CommissioningAnalysis.h
"
3
4
// -----------------------------------------------------------------------------
5
//
6
uint32_t
SummaryPlotFactory<CommissioningAnalysis*>::init
(
const
sistrip::Monitorable
&
mon
,
7
const
sistrip::Presentation
& pres,
8
const
sistrip::View
&
view
,
9
const
std::string
&
level
,
10
const
sistrip::Granularity
& gran,
11
const
std::map<uint32_t, CommissioningAnalysis*>&
data
) {
12
// initialisation
13
SummaryPlotFactoryBase::init
(
mon
, pres,
view
,
level
, gran);
14
15
// check if generator object exists
16
if
(!
SummaryPlotFactoryBase::generator_
) {
17
return
0;
18
}
19
20
// extract monitorables and populate map
21
std::map<uint32_t, CommissioningAnalysis*>::const_iterator iter =
data
.begin();
22
for
(; iter !=
data
.end(); iter++) {
23
extract
(iter);
24
}
25
26
return
SummaryPlotFactoryBase::generator_
->
nBins
();
27
}
28
29
// -----------------------------------------------------------------------------
30
//
31
void
SummaryPlotFactory<CommissioningAnalysis*>::fill
(TH1& summary_histo) {
32
// fill histogram
33
SummaryPlotFactoryBase::fill
(summary_histo);
34
35
// check if generator object exists
36
if
(!
SummaryPlotFactoryBase::generator_
) {
37
return
;
38
}
39
40
// format histo
41
format
();
42
}
CommissioningSummaryFactory.h
CommissioningAnalysis.h
SummaryPlotFactoryBase::init
void init(const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &top_level_dir, const sistrip::Granularity &)
Definition:
SummaryPlotFactoryBase.cc:31
pv::view
view
Definition:
PreparePVTrends.h:58
sistrip::Presentation
Presentation
Definition:
ConstantsForPresentation.h:28
sistrip::Monitorable
Monitorable
Definition:
ConstantsForMonitorable.h:200
SummaryPlotFactory::init
uint32_t init(const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &top_level_dir, const sistrip::Granularity &, const std::map< uint32_t, T > &data)
Definition:
CommissioningSummaryFactory.cc:6
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
SummaryPlotFactory::fill
void fill(TH1 &summary_histo)
Definition:
CommissioningSummaryFactory.cc:31
gammaJetAnalysis_CHSJECs_cff.level
level
Definition:
gammaJetAnalysis_CHSJECs_cff.py:6
dqm-mbProfile.format
format
Definition:
dqm-mbProfile.py:16
LaserDQM_cfi.mon
mon
Definition:
LaserDQM_cfi.py:3
extract
int extract(std::vector< int > *output, const std::string &dati)
Definition:
InvMatrixUtils.cc:251
SummaryPlotFactoryBase::generator_
SummaryGenerator * generator_
Definition:
SummaryPlotFactoryBase.h:32
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:80
sistrip::View
View
Definition:
ConstantsForView.h:26
sistrip::Granularity
Granularity
Definition:
ConstantsForGranularity.h:60
SummaryGenerator::nBins
uint32_t nBins() const
Definition:
SummaryGenerator.h:134
SummaryPlotFactoryBase::fill
void fill(TH1 &summary_histo)
Definition:
SummaryPlotFactoryBase.cc:99
Generated for CMSSW Reference Manual by
1.8.14