Main Page
Namespaces
Classes
Package Documentation
DQMOffline
EGamma
interface
ElectronDqmAnalyzerBase.h
Go to the documentation of this file.
1
2
#ifndef ElectronDqmAnalyzerBase_h
3
#define ElectronDqmAnalyzerBase_h
4
5
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
6
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
7
#include <Rtypes.h>
8
#include <string>
9
#include <vector>
10
11
//DQM
12
#include "
FWCore/ServiceRegistry/interface/Service.h
"
13
#include "
DQMServices/Core/interface/DQMEDAnalyzer.h
"
14
#include "
DQMServices/Core/interface/DQMStore.h
"
15
16
namespace
edab
{
17
struct
Empty
{};
18
}
// namespace edab
19
class
ElectronDqmAnalyzerBase
:
public
DQMEDAnalyzer
{
20
protected
:
21
explicit
ElectronDqmAnalyzerBase
(
const
edm::ParameterSet
&conf);
22
~
ElectronDqmAnalyzerBase
()
override
;
23
24
// specific implementation of EDAnalyzer
25
void
bookHistograms
(
DQMStore::IBooker
&,
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
26
27
// interface to implement in derived classes
28
void
analyze
(
const
edm::Event
&
e
,
const
edm::EventSetup
&
c
)
override
{}
29
30
// utility methods
31
int
verbosity
() {
return
verbosity_; }
32
33
void
setBookPrefix(
const
std::string
&);
34
void
setBookIndex(
short
);
35
void
setBookEfficiencyFlag(
const
bool
&);
36
void
setBookStatOverflowFlag(
const
bool
&);
37
38
MonitorElement
*bookH1(
DQMStore::IBooker
&,
39
const
std::string
&
name
,
40
const
std::string
&
title
,
41
int
nchX,
42
double
lowX,
43
double
highX,
44
const
std::string
&titleX =
""
,
45
const
std::string
&titleY =
"Events"
,
46
Option_t *
option
=
"E1 P"
);
47
48
MonitorElement
*bookH1withSumw2(
DQMStore::IBooker
&,
49
const
std::string
&name,
50
const
std::string
&title,
51
int
nchX,
52
double
lowX,
53
double
highX,
54
const
std::string
&titleX =
""
,
55
const
std::string
&titleY =
"Events"
,
56
Option_t *
option
=
"E1 P"
);
57
58
MonitorElement
*bookH2(
DQMStore::IBooker
&,
59
const
std::string
&name,
60
const
std::string
&title,
61
int
nchX,
62
double
lowX,
63
double
highX,
64
int
nchY,
65
double
lowY,
66
double
highY,
67
const
std::string
&titleX =
""
,
68
const
std::string
&titleY =
""
,
69
Option_t *
option
=
"COLZ"
);
70
71
MonitorElement
*bookH2withSumw2(
DQMStore::IBooker
&,
72
const
std::string
&name,
73
const
std::string
&title,
74
int
nchX,
75
double
lowX,
76
double
highX,
77
int
nchY,
78
double
lowY,
79
double
highY,
80
const
std::string
&titleX =
""
,
81
const
std::string
&titleY =
""
,
82
Option_t *
option
=
"COLZ"
);
83
84
MonitorElement
*bookP1(
DQMStore::IBooker
&,
85
const
std::string
&name,
86
const
std::string
&title,
87
int
nchX,
88
double
lowX,
89
double
highX,
90
double
lowY,
91
double
highY,
92
const
std::string
&titleX =
""
,
93
const
std::string
&titleY =
""
,
94
Option_t *
option
=
"E1 P"
);
95
96
MonitorElement
*cloneH1(
DQMStore::IBooker
&iBooker,
97
const
std::string
&name,
98
MonitorElement
*
original
,
99
const
std::string
&title =
""
);
100
101
MonitorElement
*cloneH1(
DQMStore::IBooker
&iBooker,
102
const
std::string
&name,
103
const
std::string
&original,
104
const
std::string
&title =
""
);
105
106
private
:
107
int
verbosity_
;
108
std::string
bookPrefix_
;
109
short
bookIndex_
;
110
bool
bookEfficiencyFlag_ =
false
;
111
bool
bookStatOverflowFlag_ =
false
;
112
bool
histoNamesReady
;
113
std::vector<std::string>
histoNames_
;
114
std::string
finalStep_
;
115
std::string
inputFile_
;
116
std::string
outputFile_
;
117
std::string
inputInternalPath_
;
118
std::string
outputInternalPath_
;
119
120
// utility methods
121
std::string
newName
(
const
std::string
&name);
122
};
123
124
#endif
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edab::Empty
Definition:
ElectronDqmAnalyzerBase.h:17
mps_merge.newName
string newName
Definition:
mps_merge.py:86
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
ParameterSet.h
dqm::dqmstoreimpl::DQMStore::IBooker
Definition:
DQMStore.h:106
DQMEDAnalyzer.h
DQMStore.h
DQMEDAnalyzer
Definition:
DQMEDAnalyzer.py:1
dqm::impl::MonitorElement
Definition:
MonitorElement.h:72
Service.h
ElectronDqmAnalyzerBase::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition:
ElectronDqmAnalyzerBase.h:28
edm::EventSetup
Definition:
EventSetup.h:57
overlapproblemtsosanalyzer_cfi.title
title
Definition:
overlapproblemtsosanalyzer_cfi.py:7
ElectronDqmAnalyzerBase::finalStep_
std::string finalStep_
Definition:
ElectronDqmAnalyzerBase.h:114
ElectronDqmAnalyzerBase::outputInternalPath_
std::string outputInternalPath_
Definition:
ElectronDqmAnalyzerBase.h:118
EDAnalyzer.h
ElectronDqmAnalyzerBase::inputFile_
std::string inputFile_
Definition:
ElectronDqmAnalyzerBase.h:115
edab
Definition:
ElectronDqmAnalyzerBase.h:16
ElectronDqmAnalyzerBase::histoNamesReady
bool histoNamesReady
Definition:
ElectronDqmAnalyzerBase.h:112
ElectronDqmAnalyzerBase::outputFile_
std::string outputFile_
Definition:
ElectronDqmAnalyzerBase.h:116
ElectronDqmAnalyzerBase::histoNames_
std::vector< std::string > histoNames_
Definition:
ElectronDqmAnalyzerBase.h:113
ElectronDqmAnalyzerBase::bookIndex_
short bookIndex_
Definition:
ElectronDqmAnalyzerBase.h:109
bookHistograms
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
ElectronDqmAnalyzerBase::verbosity_
int verbosity_
Definition:
ElectronDqmAnalyzerBase.h:107
definitions.original
original
Definition:
definitions.py:57
ElectronDqmAnalyzerBase
Definition:
ElectronDqmAnalyzerBase.h:19
fileinputsource_cfi.option
option
Definition:
fileinputsource_cfi.py:75
ElectronDqmAnalyzerBase::bookPrefix_
std::string bookPrefix_
Definition:
ElectronDqmAnalyzerBase.h:108
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:72
ElectronDqmAnalyzerBase::inputInternalPath_
std::string inputInternalPath_
Definition:
ElectronDqmAnalyzerBase.h:117
edm::Run
Definition:
Run.h:45
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
ElectronDqmAnalyzerBase::verbosity
int verbosity()
Definition:
ElectronDqmAnalyzerBase.h:31
Generated for CMSSW Reference Manual by
1.8.11