CMS 3D CMS Logo

ElectronDqmHarvesterBase.h
Go to the documentation of this file.
1 
2 #ifndef ElectronDqmHarvesterBase_h
3 #define ElectronDqmHarvesterBase_h
4 
7 #include <Rtypes.h>
8 #include <string>
9 #include <vector>
10 
11 //DQM
15 
17 protected:
18  explicit ElectronDqmHarvesterBase(const edm::ParameterSet &conf);
19  ~ElectronDqmHarvesterBase() override;
20 
21  // specific implementation of EDAnalyzer
22  void beginJob() override; // prepare DQM, open input field if declared, and call book() below
25  edm::LuminosityBlock const &,
26  edm::EventSetup const &) override; //performed in the endLumi
27  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override; //performed in the endJob
28 
29  // interface to implement in derived classes
30  virtual void finalize(DQMStore::IBooker &iBooker,
31  DQMStore::IGetter &iGetter){}; // override ;, const edm::Event& e, const edm::EventSetup & c
32 
33  // utility methods
34  bool finalStepDone() { return finalDone_; }
35  int verbosity() { return verbosity_; }
37  void remove(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, const std::string &name);
38 
39  void setBookPrefix(const std::string &);
40  void setBookIndex(short);
41  void setBookEfficiencyFlag(const bool &);
42  void setBookStatOverflowFlag(const bool &);
43 
45  const std::string &name,
46  const std::string &title,
47  int nchX,
48  double lowX,
49  double highX,
50  const std::string &titleX = "",
51  const std::string &titleY = "Events",
52  Option_t *option = "E1 P");
53 
55  const std::string &name,
56  const std::string &title,
57  int nchX,
58  double lowX,
59  double highX,
60  const std::string &titleX = "",
61  const std::string &titleY = "Events",
62  Option_t *option = "E1 P");
63 
65  const std::string &name,
66  const std::string &title,
67  int nchX,
68  double lowX,
69  double highX,
70  int nchY,
71  double lowY,
72  double highY,
73  const std::string &titleX = "",
74  const std::string &titleY = "",
75  Option_t *option = "COLZ");
76 
78  const std::string &name,
79  const std::string &title,
80  int nchX,
81  double lowX,
82  double highX,
83  int nchY,
84  double lowY,
85  double highY,
86  const std::string &titleX = "",
87  const std::string &titleY = "",
88  Option_t *option = "COLZ");
89 
91  const std::string &name,
92  const std::string &title,
93  int nchX,
94  double lowX,
95  double highX,
96  double lowY,
97  double highY,
98  const std::string &titleX = "",
99  const std::string &titleY = "",
100  Option_t *option = "E1 P");
101 
104  const std::string &name,
107  const std::string &titleX,
108  const std::string &titleY,
109  const std::string &title = "");
110 
113  const std::string &name,
116  const std::string &titleX,
117  const std::string &titleY,
118  const std::string &title = "");
119 
122  const std::string &name,
124  const std::string &title = "");
125 
127  DQMStore::IGetter &iGetter,
128  MonitorElement *me2d,
129  const std::string &title = "",
130  const std::string &titleX = "",
131  const std::string &titleY = "",
132  Double_t minimum = -1111,
133  Double_t maximum = -1111);
134 
136  DQMStore::IGetter &iGetter,
137  MonitorElement *me2d,
138  const std::string &title = "",
139  const std::string &titleX = "",
140  const std::string &titleY = "",
141  Double_t minimum = -1111,
142  Double_t maximum = -1111);
143 
145  DQMStore::IGetter &iGetter,
146  const std::string &name,
147  const std::string &num,
148  const std::string &denom,
149  const std::string &titleX,
150  const std::string &titleY,
151  const std::string &title = "");
152 
155  const std::string &name,
156  const std::string &num,
157  const std::string &denom,
158  const std::string &titleX,
159  const std::string &titleY,
160  const std::string &title = "");
161 
164  const std::string &name,
165  const std::string &original,
166  const std::string &title = "");
167 
169  DQMStore::IGetter &iGetter,
170  const std::string &me2d,
171  const std::string &title = "",
172  const std::string &titleX = "",
173  const std::string &titleY = "",
174  Double_t minimum = -1111,
175  Double_t maximum = -1111);
176 
178  DQMStore::IGetter &iGetter,
179  const std::string &me2d,
180  const std::string &title = "",
181  const std::string &titleX = "",
182  const std::string &titleY = "",
183  Double_t minimum = -1111,
184  Double_t maximum = -1111);
185 
186 private:
189  short bookIndex_;
190  bool bookEfficiencyFlag_ = false;
191  bool bookStatOverflowFlag_ = false;
193  std::vector<std::string> histoNames_;
200 
201  // utility methods
203  const std::string *find(DQMStore::IGetter &iGetter, const std::string &name);
204 };
205 
206 #endif
ElectronDqmHarvesterBase::ElectronDqmHarvesterBase
ElectronDqmHarvesterBase(const edm::ParameterSet &conf)
Definition: ElectronDqmHarvesterBase.cc:18
DQMEDHarvester.h
ElectronDqmHarvesterBase::bookH2
MonitorElement * bookH2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
Definition: ElectronDqmHarvesterBase.cc:239
ElectronDqmHarvesterBase::find
const std::string * find(DQMStore::IGetter &iGetter, const std::string &name)
Definition: ElectronDqmHarvesterBase.cc:53
ElectronDqmHarvesterBase::setBookEfficiencyFlag
void setBookEfficiencyFlag(const bool &)
Definition: ElectronDqmHarvesterBase.cc:34
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
ElectronDqmHarvesterBase::newName
std::string newName(const std::string &name)
Definition: ElectronDqmHarvesterBase.cc:40
ElectronDqmHarvesterBase::setBookPrefix
void setBookPrefix(const std::string &)
Definition: ElectronDqmHarvesterBase.cc:30
ElectronDqmHarvesterBase::remove
void remove(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, const std::string &name)
Definition: ElectronDqmHarvesterBase.cc:130
ElectronDqmHarvesterBase::bookH1andDivide
MonitorElement * bookH1andDivide(DQMStore::IBooker &iBooker, DQMStore::IGetter &, const std::string &name, MonitorElement *num, MonitorElement *denom, const std::string &titleX, const std::string &titleY, const std::string &title="")
Definition: ElectronDqmHarvesterBase.cc:326
ElectronDqmHarvesterBase::inputFile_
std::string inputFile_
Definition: ElectronDqmHarvesterBase.h:195
ElectronDqmHarvesterBase::bookH2andDivide
MonitorElement * bookH2andDivide(DQMStore::IBooker &iBooker, DQMStore::IGetter &, const std::string &name, MonitorElement *num, MonitorElement *denom, const std::string &titleX, const std::string &titleY, const std::string &title="")
Definition: ElectronDqmHarvesterBase.cc:357
makePileupJSON.denom
denom
Definition: makePileupJSON.py:146
ElectronDqmHarvesterBase::finalStepDone
bool finalStepDone()
Definition: ElectronDqmHarvesterBase.h:34
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
ElectronDqmHarvesterBase::bookH1withSumw2
MonitorElement * bookH1withSumw2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
Definition: ElectronDqmHarvesterBase.cc:212
ElectronDqmHarvesterBase::verbosity
int verbosity()
Definition: ElectronDqmHarvesterBase.h:35
ElectronDqmHarvesterBase::bookIndex_
short bookIndex_
Definition: ElectronDqmHarvesterBase.h:189
DQMStore.h
ElectronDqmHarvesterBase::inputInternalPath_
std::string inputInternalPath_
Definition: ElectronDqmHarvesterBase.h:197
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
EDAnalyzer.h
fileinputsource_cfi.option
option
Definition: fileinputsource_cfi.py:94
ElectronDqmHarvesterBase::bookEfficiencyFlag_
bool bookEfficiencyFlag_
Definition: ElectronDqmHarvesterBase.h:190
ElectronDqmHarvesterBase::bookH1
MonitorElement * bookH1(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
Definition: ElectronDqmHarvesterBase.cc:186
ElectronDqmHarvesterBase::profileY
MonitorElement * profileY(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, MonitorElement *me2d, const std::string &title="", const std::string &titleX="", const std::string &titleY="", Double_t minimum=-1111, Double_t maximum=-1111)
Definition: ElectronDqmHarvesterBase.cc:438
ElectronDqmHarvesterBase::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: ElectronDqmHarvesterBase.cc:95
ElectronDqmHarvesterBase::finalDone_
bool finalDone_
Definition: ElectronDqmHarvesterBase.h:199
ElectronDqmHarvesterBase
Definition: ElectronDqmHarvesterBase.h:16
ElectronDqmHarvesterBase::outputInternalPath_
std::string outputInternalPath_
Definition: ElectronDqmHarvesterBase.h:198
Service.h
ElectronDqmHarvesterBase::cloneH1
MonitorElement * cloneH1(DQMStore::IBooker &iBooker, DQMStore::IGetter &, const std::string &name, MonitorElement *original, const std::string &title="")
Definition: ElectronDqmHarvesterBase.cc:388
ElectronDqmHarvesterBase::profileX
MonitorElement * profileX(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, MonitorElement *me2d, const std::string &title="", const std::string &titleX="", const std::string &titleY="", Double_t minimum=-1111, Double_t maximum=-1111)
Definition: ElectronDqmHarvesterBase.cc:407
ElectronDqmHarvesterBase::bookStatOverflowFlag_
bool bookStatOverflowFlag_
Definition: ElectronDqmHarvesterBase.h:191
edm::ParameterSet
Definition: ParameterSet.h:47
definitions.original
original
Definition: definitions.py:57
edm::EventSetup
Definition: EventSetup.h:58
ElectronDqmHarvesterBase::bookH2withSumw2
MonitorElement * bookH2withSumw2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
Definition: ElectronDqmHarvesterBase.cc:268
ElectronDqmHarvesterBase::histoNamesReady
bool histoNamesReady
Definition: ElectronDqmHarvesterBase.h:192
ElectronDqmHarvesterBase::histoNames_
std::vector< std::string > histoNames_
Definition: ElectronDqmHarvesterBase.h:193
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:33
ElectronDqmHarvesterBase::beginJob
void beginJob() override
Definition: ElectronDqmHarvesterBase.cc:93
DQMEDHarvester
Definition: DQMEDHarvester.py:1
ElectronDqmHarvesterBase::get
MonitorElement * get(DQMStore::IGetter &iGetter, const std::string &name)
Definition: ElectronDqmHarvesterBase.cc:120
ElectronDqmHarvesterBase::setBookStatOverflowFlag
void setBookStatOverflowFlag(const bool &)
Definition: ElectronDqmHarvesterBase.cc:36
dqm::implementation::IGetter
Definition: DQMStore.h:484
ElectronDqmHarvesterBase::finalStep_
std::string finalStep_
Definition: ElectronDqmHarvesterBase.h:194
ElectronDqmHarvesterBase::finalize
virtual void finalize(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter)
Definition: ElectronDqmHarvesterBase.h:30
ElectronDqmHarvesterBase::outputFile_
std::string outputFile_
Definition: ElectronDqmHarvesterBase.h:196
ElectronDqmHarvesterBase::verbosity_
int verbosity_
Definition: ElectronDqmHarvesterBase.h:187
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
ElectronDqmHarvesterBase::setBookIndex
void setBookIndex(short)
Definition: ElectronDqmHarvesterBase.cc:32
dqm::implementation::IBooker
Definition: DQMStore.h:43
ElectronDqmHarvesterBase::~ElectronDqmHarvesterBase
~ElectronDqmHarvesterBase() override
Definition: ElectronDqmHarvesterBase.cc:28
ElectronDqmHarvesterBase::bookPrefix_
std::string bookPrefix_
Definition: ElectronDqmHarvesterBase.h:188
ParameterSet.h
ElectronDqmHarvesterBase::bookP1
MonitorElement * bookP1(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="E1 P")
Definition: ElectronDqmHarvesterBase.cc:298
ElectronDqmHarvesterBase::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: ElectronDqmHarvesterBase.cc:108