CMS 3D CMS Logo

ElectronDqmAnalyzerBase.h
Go to the documentation of this file.
1 
2 #ifndef ElectronDqmAnalyzerBase_h
3 #define ElectronDqmAnalyzerBase_h
4 
7 #include <Rtypes.h>
8 #include <string>
9 #include <vector>
10 
11 //DQM
15 
16 namespace edab {
17  struct Empty {};
18 } // namespace edab
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 
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 
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 
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 
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 
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 
97  const std::string &name,
99  const std::string &title = "");
100 
102  const std::string &name,
103  const std::string &original,
104  const std::string &title = "");
105 
106 private:
109  short bookIndex_;
110  bool bookEfficiencyFlag_ = false;
111  bool bookStatOverflowFlag_ = false;
113  std::vector<std::string> histoNames_;
119 
120  // utility methods
122 };
123 
124 #endif
edab::Empty
Definition: ElectronDqmAnalyzerBase.h:17
ElectronDqmAnalyzerBase::setBookEfficiencyFlag
void setBookEfficiencyFlag(const bool &)
Definition: ElectronDqmAnalyzerBase.cc:34
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
ElectronDqmAnalyzerBase::outputInternalPath_
std::string outputInternalPath_
Definition: ElectronDqmAnalyzerBase.h:118
ElectronDqmAnalyzerBase::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: ElectronDqmAnalyzerBase.cc:140
ElectronDqmAnalyzerBase::histoNamesReady
bool histoNamesReady
Definition: ElectronDqmAnalyzerBase.h:112
ElectronDqmAnalyzerBase::ElectronDqmAnalyzerBase
ElectronDqmAnalyzerBase(const edm::ParameterSet &conf)
Definition: ElectronDqmAnalyzerBase.cc:18
edm::Run
Definition: Run.h:45
ElectronDqmAnalyzerBase
Definition: ElectronDqmAnalyzerBase.h:19
ElectronDqmAnalyzerBase::outputFile_
std::string outputFile_
Definition: ElectronDqmAnalyzerBase.h:116
ElectronDqmAnalyzerBase::histoNames_
std::vector< std::string > histoNames_
Definition: ElectronDqmAnalyzerBase.h:113
ElectronDqmAnalyzerBase::inputFile_
std::string inputFile_
Definition: ElectronDqmAnalyzerBase.h:115
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
EDAnalyzer.h
ElectronDqmAnalyzerBase::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: ElectronDqmAnalyzerBase.cc:83
fileinputsource_cfi.option
option
Definition: fileinputsource_cfi.py:87
edab
Definition: ElectronDqmAnalyzerBase.h:16
ElectronDqmAnalyzerBase::verbosity_
int verbosity_
Definition: ElectronDqmAnalyzerBase.h:107
ElectronDqmAnalyzerBase::finalStep_
std::string finalStep_
Definition: ElectronDqmAnalyzerBase.h:114
Service.h
ElectronDqmAnalyzerBase::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: ElectronDqmAnalyzerBase.cc:53
ElectronDqmAnalyzerBase::~ElectronDqmAnalyzerBase
~ElectronDqmAnalyzerBase() override
Definition: ElectronDqmAnalyzerBase.cc:28
ElectronDqmAnalyzerBase::setBookIndex
void setBookIndex(short)
Definition: ElectronDqmAnalyzerBase.cc:32
ElectronDqmAnalyzerBase::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: ElectronDqmAnalyzerBase.cc:111
ElectronDqmAnalyzerBase::inputInternalPath_
std::string inputInternalPath_
Definition: ElectronDqmAnalyzerBase.h:117
DQMEDAnalyzer.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
ElectronDqmAnalyzerBase::bookEfficiencyFlag_
bool bookEfficiencyFlag_
Definition: ElectronDqmAnalyzerBase.h:110
edm::ParameterSet
Definition: ParameterSet.h:47
ElectronDqmAnalyzerBase::bookPrefix_
std::string bookPrefix_
Definition: ElectronDqmAnalyzerBase.h:108
definitions.original
original
Definition: definitions.py:57
ElectronDqmAnalyzerBase::newName
std::string newName(const std::string &name)
Definition: ElectronDqmAnalyzerBase.cc:40
ElectronDqmAnalyzerBase::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: ElectronDqmAnalyzerBase.cc:57
edm::EventSetup
Definition: EventSetup.h:57
ElectronDqmAnalyzerBase::setBookStatOverflowFlag
void setBookStatOverflowFlag(const bool &)
Definition: ElectronDqmAnalyzerBase.cc:36
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
ElectronDqmAnalyzerBase::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: ElectronDqmAnalyzerBase.cc:171
ElectronDqmAnalyzerBase::bookStatOverflowFlag_
bool bookStatOverflowFlag_
Definition: ElectronDqmAnalyzerBase.h:111
ElectronDqmAnalyzerBase::verbosity
int verbosity()
Definition: ElectronDqmAnalyzerBase.h:31
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
ElectronDqmAnalyzerBase::cloneH1
MonitorElement * cloneH1(DQMStore::IBooker &iBooker, const std::string &name, MonitorElement *original, const std::string &title="")
dqm::implementation::IBooker
Definition: DQMStore.h:43
ParameterSet.h
ElectronDqmAnalyzerBase::setBookPrefix
void setBookPrefix(const std::string &)
Definition: ElectronDqmAnalyzerBase.cc:30
edm::Event
Definition: Event.h:73
ElectronDqmAnalyzerBase::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: ElectronDqmAnalyzerBase.h:28
ElectronDqmAnalyzerBase::bookIndex_
short bookIndex_
Definition: ElectronDqmAnalyzerBase.h:109
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37