CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTEfficiencyTest.h
Go to the documentation of this file.
1 #ifndef DTEfficiencyTest_H
2 #define DTEfficiencyTest_H
3 
4 
22 
26 
27 
28 #include <memory>
29 #include <iostream>
30 #include <fstream>
31 #include <string>
32 #include <vector>
33 #include <map>
34 
35 class DTGeometry;
36 class DTChamberId;
37 class DTSuperLayerId;
38 class DTLayerId;
39 
41 
42 public:
43 
46 
48  virtual ~DTEfficiencyTest();
49 
50 protected:
51 
53  void beginJob();
54 
56  void beginRun(const edm::Run& r, const edm::EventSetup& c);
57 
59  void analyze(const edm::Event& e, const edm::EventSetup& c);
60 
62  void endJob();
63 
65  void bookHistos(const DTLayerId & ch, int firstWire, int lastWire);
66 
68  void bookHistos(int wh);
69 
71  std::string getMEName(std::string histoTag, const DTLayerId & lID);
72 
73 
74  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
75 
77  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
78 
79 
80 
81 private:
82 
83  int nevents;
84  unsigned int nLumiSegs;
86  int run;
88 
90 
93 
94  std::map< DTLayerId , MonitorElement* > EfficiencyHistos;
95  std::map< DTLayerId , MonitorElement* > UnassEfficiencyHistos;
96 
97  // wheel summary histograms
98  std::map< int, MonitorElement* > wheelHistos;
99  std::map< int, MonitorElement* > wheelUnassHistos;
100 
101 };
102 
103 #endif
virtual ~DTEfficiencyTest()
Destructor.
std::map< int, MonitorElement * > wheelHistos
edm::ParameterSet parameters
void beginRun(const edm::Run &r, const edm::EventSetup &c)
Analyze.
void endJob()
Endjob.
void bookHistos(const DTLayerId &ch, int firstWire, int lastWire)
book the new ME
std::map< int, MonitorElement * > wheelUnassHistos
DTEfficiencyTest(const edm::ParameterSet &ps)
Constructor.
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void beginJob()
BeginJob.
unsigned int nLumiSegs
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
DQM Client Diagnostic.
edm::ESHandle< DTGeometry > muonGeom
std::map< DTLayerId, MonitorElement * > EfficiencyHistos
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
Definition: Run.h:41
std::map< DTLayerId, MonitorElement * > UnassEfficiencyHistos
std::string getMEName(std::string histoTag, const DTLayerId &lID)
Get the ME name.