DQMOffline
Trigger
plugins
TriggerDQMBase.h
Go to the documentation of this file.
1
#ifndef DQMOffline_Trigger_TriggerDQMBase_h
2
#define DQMOffline_Trigger_TriggerDQMBase_h
3
4
#include "
DQMServices/Core/interface/DQMStore.h
"
5
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
6
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
7
8
class
TriggerDQMBase
{
9
public
:
10
typedef
dqm::legacy::MonitorElement
MonitorElement
;
11
typedef
dqm::legacy::DQMStore
DQMStore
;
12
13
TriggerDQMBase
() =
default
;
14
virtual
~TriggerDQMBase
() =
default
;
15
16
struct
MEbinning
{
17
uint
nbins
;
18
double
xmin
;
19
double
xmax
;
20
};
21
22
class
ObjME
{
23
public
:
24
ObjME
() {}
25
virtual
~ObjME
() {}
26
27
MonitorElement
*
numerator
=
nullptr
;
28
MonitorElement
*
denominator
=
nullptr
;
29
30
template
<
typename
... Args>
31
void
fill
(
const
bool
pass_num, Args...
args
);
32
};
33
34
void
setMETitle
(
ObjME
&
me
,
const
std::string
& titleX,
const
std::string
& titleY);
35
36
void
bookME
(
DQMStore::IBooker
&,
37
ObjME
&
me
,
38
const
std::string
& histname,
39
const
std::string
& histtitle,
40
const
uint
nbins
,
41
const
double
xmin
,
42
const
double
xmax
,
43
const
bool
bookDen =
true
);
44
void
bookME
(
DQMStore::IBooker
&,
45
ObjME
&
me
,
46
const
std::string
& histname,
47
const
std::string
& histtitle,
48
const
std::vector<double>& binningX,
49
const
bool
bookDen =
true
);
50
void
bookME
(
DQMStore::IBooker
&,
51
ObjME
&
me
,
52
const
std::string
& histname,
53
const
std::string
& histtitle,
54
const
uint
nbinsX
,
55
const
double
xmin
,
56
const
double
xmax
,
57
const
double
ymin
,
58
const
double
ymax
,
59
const
bool
bookDen =
true
);
60
void
bookME
(
DQMStore::IBooker
&,
61
ObjME
&
me
,
62
const
std::string
& histname,
63
const
std::string
& histtitle,
64
const
uint
nbinsX
,
65
const
double
xmin
,
66
const
double
xmax
,
67
const
uint
nbinsY
,
68
const
double
ymin
,
69
const
double
ymax
,
70
const
bool
bookDen =
true
);
71
void
bookME
(
DQMStore::IBooker
&,
72
ObjME
&
me
,
73
const
std::string
& histname,
74
const
std::string
& histtitle,
75
const
std::vector<double>& binningX,
76
const
std::vector<double>& binningY,
77
const
bool
bookDen =
true
);
78
79
static
void
fillHistoPSetDescription
(
edm::ParameterSetDescription
&
pset
);
80
static
void
fillHistoLSPSetDescription
(
edm::ParameterSetDescription
&
pset
);
81
82
static
MEbinning
getHistoPSet
(
const
edm::ParameterSet
&
pset
);
83
static
MEbinning
getHistoLSPSet
(
const
edm::ParameterSet
&
pset
);
84
};
85
86
template
<
typename
... Args>
87
void
TriggerDQMBase::ObjME::fill
(
const
bool
fill_num, Args...
args
) {
88
if
(
denominator
) {
89
denominator
->
Fill
(
args
...);
90
}
91
92
if
(fill_num and
numerator
) {
93
numerator
->
Fill
(
args
...);
94
}
95
}
96
97
#endif // DQMOffline_Trigger_TriggerDQMBase_h
writedatasetfile.args
args
Definition:
writedatasetfile.py:18
TriggerDQMBase::MEbinning
Definition:
TriggerDQMBase.h:16
TriggerDQMBase::ObjME::ObjME
ObjME()
Definition:
TriggerDQMBase.h:24
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
hlt_dqm_clientPB-live_cfg.nbinsX
nbinsX
Definition:
hlt_dqm_clientPB-live_cfg.py:60
DQMStore.h
dqm::legacy::MonitorElement
Definition:
MonitorElement.h:461
parallelization.uint
uint
Definition:
parallelization.py:124
TriggerDQMBase::ObjME::numerator
MonitorElement * numerator
Definition:
TriggerDQMBase.h:27
TriggerDQMBase::ObjME::fill
void fill(const bool pass_num, Args... args)
Definition:
TriggerDQMBase.h:87
L1TOccupancyClient_cfi.ymax
ymax
Definition:
L1TOccupancyClient_cfi.py:43
dqm::legacy::DQMStore
Definition:
DQMStore.h:727
TriggerDQMBase::setMETitle
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
Definition:
TriggerDQMBase.cc:3
TriggerDQMBase::MEbinning::xmax
double xmax
Definition:
TriggerDQMBase.h:19
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition:
MonitorElement.h:290
LaserClient_cfi.nbins
nbins
Definition:
LaserClient_cfi.py:51
TriggerDQMBase::bookME
void bookME(DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbins, const double xmin, const double xmax, const bool bookDen=true)
Definition:
TriggerDQMBase.cc:15
TriggerDQMBase::DQMStore
dqm::legacy::DQMStore DQMStore
Definition:
TriggerDQMBase.h:11
ParameterSetDescription.h
TriggerDQMBase
Definition:
TriggerDQMBase.h:8
TriggerDQMBase::ObjME
Definition:
TriggerDQMBase.h:22
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
hlt_dqm_clientPB-live_cfg.nbinsY
nbinsY
Definition:
hlt_dqm_clientPB-live_cfg.py:64
TriggerDQMBase::fillHistoPSetDescription
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
Definition:
TriggerDQMBase.cc:108
edm::ParameterSet
Definition:
ParameterSet.h:36
TriggerDQMBase::TriggerDQMBase
TriggerDQMBase()=default
TriggerDQMBase::getHistoLSPSet
static MEbinning getHistoLSPSet(const edm::ParameterSet &pset)
Definition:
TriggerDQMBase.cc:125
TriggerDQMBase::getHistoPSet
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
Definition:
TriggerDQMBase.cc:120
TriggerDQMBase::ObjME::~ObjME
virtual ~ObjME()
Definition:
TriggerDQMBase.h:25
L1TOccupancyClient_cfi.ymin
ymin
Definition:
L1TOccupancyClient_cfi.py:43
TriggerDQMBase::~TriggerDQMBase
virtual ~TriggerDQMBase()=default
TrackerOfflineValidation_Dqm_cff.xmax
xmax
Definition:
TrackerOfflineValidation_Dqm_cff.py:11
TriggerDQMBase::ObjME::denominator
MonitorElement * denominator
Definition:
TriggerDQMBase.h:28
TriggerDQMBase::MEbinning::nbins
uint nbins
Definition:
TriggerDQMBase.h:17
TriggerDQMBase::MEbinning::xmin
double xmin
Definition:
TriggerDQMBase.h:18
dqm::implementation::IBooker
Definition:
DQMStore.h:43
ParameterSet.h
TrackerOfflineValidation_Dqm_cff.xmin
xmin
Definition:
TrackerOfflineValidation_Dqm_cff.py:10
hlt_dqm_clientPB-live_cfg.me
me
Definition:
hlt_dqm_clientPB-live_cfg.py:56
TriggerDQMBase::fillHistoLSPSetDescription
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
Definition:
TriggerDQMBase.cc:114
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
TriggerDQMBase::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition:
TriggerDQMBase.h:10
Generated for CMSSW Reference Manual by
1.8.16