DQM
SiStripCommissioningSummary
src
SummaryPlotFactory.cc
Go to the documentation of this file.
1
#include "
DQM/SiStripCommissioningSummary/interface/SummaryPlotFactory.h
"
2
#include "
DQM/SiStripCommissioningSummary/interface/SummaryGenerator.h
"
3
#include <iostream>
4
5
using namespace
sistrip
;
6
7
// -----------------------------------------------------------------------------
8
//
9
template
<
class
T>
10
uint32_t
SummaryPlotFactory<T>::init
(
const
sistrip::Monitorable
&
mon
,
11
const
sistrip::Presentation
& pres,
12
const
sistrip::View
& view,
13
const
std::string
&
level
,
14
const
sistrip::Granularity
& gran,
15
const
std::map<uint32_t, T>&
data
) {
16
// Some initialisation
17
SummaryPlotFactoryBase::init
(
mon
, pres, view,
level
, gran);
18
19
// Transfer appropriate monitorables info to generator object
20
if
(!
SummaryPlotFactoryBase::generator_
) {
21
return
0;
22
}
23
typename
std::map<uint32_t, T>::const_iterator iter =
data
.begin();
24
for
(; iter !=
data
.end(); iter++) {
25
static
float
value
= static_cast<float>(iter->second);
26
SummaryPlotFactoryBase::generator_
->
fillMap
(
27
SummaryPlotFactoryBase::level_
,
SummaryPlotFactoryBase::gran_
, iter->first,
value
);
28
}
29
30
return
SummaryPlotFactoryBase::generator_
->
nBins
();
31
}
32
33
// -----------------------------------------------------------------------------
34
//
35
template
<
class
T>
36
void
SummaryPlotFactory<T>::fill
(TH1& summary_histo) {
37
// Some initialisation
38
SummaryPlotFactoryBase::fill
(summary_histo);
39
}
40
41
// -----------------------------------------------------------------------------
42
//
43
template
class
SummaryPlotFactory<uint32_t>
;
44
template
class
SummaryPlotFactory<uint16_t>
;
45
template
class
SummaryPlotFactory<int32_t>
;
46
template
class
SummaryPlotFactory<int16_t>
;
47
template
class
SummaryPlotFactory<double>
;
48
template
class
SummaryPlotFactory<float>
;
personalPlayback.level
level
Definition:
personalPlayback.py:22
sistrip::Granularity
Granularity
Definition:
ConstantsForGranularity.h:60
SummaryGenerator::fillMap
void fillMap(const std::string &top_level_dir, const sistrip::Granularity &, const uint32_t &key, const float &value, const float &error=0.)
Definition:
SummaryGenerator.cc:222
SummaryPlotFactory
Definition:
SummaryPlotFactory.h:12
sistrip::View
View
Definition:
ConstantsForView.h:26
SummaryPlotFactoryBase::fill
void fill(TH1 &summary_histo)
Definition:
SummaryPlotFactoryBase.cc:99
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:
SummaryPlotFactory.cc:10
SummaryPlotFactory::fill
void fill(TH1 &summary_histo)
Definition:
SummaryPlotFactory.cc:36
SummaryPlotFactoryBase::level_
std::string level_
Definition:
SummaryPlotFactoryBase.h:28
sistrip::Monitorable
Monitorable
Definition:
ConstantsForMonitorable.h:200
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
sistrip::Presentation
Presentation
Definition:
ConstantsForPresentation.h:28
LaserDQM_cfi.mon
mon
Definition:
LaserDQM_cfi.py:3
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
SummaryPlotFactoryBase::generator_
SummaryGenerator * generator_
Definition:
SummaryPlotFactoryBase.h:32
value
Definition:
value.py:1
SummaryPlotFactoryBase::gran_
sistrip::Granularity gran_
Definition:
SummaryPlotFactoryBase.h:29
SummaryPlotFactory.h
SummaryGenerator::nBins
uint32_t nBins() const
Definition:
SummaryGenerator.h:134
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
SummaryGenerator.h
sistrip
sistrip classes
Definition:
SiStripQualityHelpers.h:14
Generated for CMSSW Reference Manual by
1.8.16