CMS 3D CMS Logo

DTEfficiencyTest.h
Go to the documentation of this file.
1 #ifndef DTEfficiencyTest_H
2 #define DTEfficiencyTest_H
3 
23 
26 
28 
29 #include <memory>
30 #include <iostream>
31 #include <fstream>
32 #include <string>
33 #include <vector>
34 #include <map>
35 
36 class DTGeometry;
37 class DTChamberId;
38 class DTSuperLayerId;
39 class DTLayerId;
40 
42 public:
45 
47  ~DTEfficiencyTest() override;
48 
49 protected:
51  void beginRun(const edm::Run &r, const edm::EventSetup &c) override;
52 
53  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
54 
56 
57  void bookHistos(DQMStore::IBooker &, const DTLayerId &ch, int firstWire, int lastWire);
58 
60  void bookHistos(DQMStore::IBooker &, int wh);
61 
64 
66 
69  edm::LuminosityBlock const &,
70  edm::EventSetup const &) override;
71 
72 private:
73  int nevents;
74  unsigned int nLumiSegs;
76  int run;
78 
81 
82  std::map<DTLayerId, MonitorElement *> EfficiencyHistos;
83  std::map<DTLayerId, MonitorElement *> UnassEfficiencyHistos;
84 
85  // wheel summary histograms
86  std::map<int, MonitorElement *> wheelHistos;
87  std::map<int, MonitorElement *> wheelUnassHistos;
88 };
89 
90 #endif
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
beginrun
edm::ParameterSet parameters
~DTEfficiencyTest() override
Destructor.
void bookHistos(DQMStore::IBooker &, const DTLayerId &ch, int firstWire, int lastWire)
book the new ME
DTEfficiencyTest(const edm::ParameterSet &ps)
Constructor.
std::map< int, MonitorElement * > wheelHistos
std::map< DTLayerId, MonitorElement * > UnassEfficiencyHistos
std::map< int, MonitorElement * > wheelUnassHistos
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
unsigned int nLumiSegs
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic.
edm::ESHandle< DTGeometry > muonGeom
std::map< DTLayerId, MonitorElement * > EfficiencyHistos
Definition: Run.h:45
std::string getMEName(std::string histoTag, const DTLayerId &lID)
Get the ME name.