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 
24 
28 
29 
30 #include <memory>
31 #include <iostream>
32 #include <fstream>
33 #include <string>
34 #include <vector>
35 #include <map>
36 
37 class DTGeometry;
38 class DTChamberId;
39 class DTSuperLayerId;
40 class DTLayerId;
41 
43 
44 public:
45 
48 
50  virtual ~DTEfficiencyTest();
51 
52 protected:
53 
55  void beginJob();
56 
58  void beginRun(const edm::Run& r, const edm::EventSetup& c);
59 
61  void analyze(const edm::Event& e, const edm::EventSetup& c);
62 
64  void endJob();
65 
67  void bookHistos(const DTLayerId & ch, int firstWire, int lastWire);
68 
70  void bookHistos(int wh);
71 
73  std::string getMEName(std::string histoTag, const DTLayerId & lID);
74 
75 
76  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
77 
79  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
80 
81 
82 
83 private:
84 
85  int nevents;
86  unsigned int nLumiSegs;
88  int run;
90 
92 
95 
96  std::map< DTLayerId , MonitorElement* > EfficiencyHistos;
97  std::map< DTLayerId , MonitorElement* > UnassEfficiencyHistos;
98 
99  // wheel summary histograms
100  std::map< int, MonitorElement* > wheelHistos;
101  std::map< int, MonitorElement* > wheelUnassHistos;
102 
103 };
104 
105 #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:31
std::map< DTLayerId, MonitorElement * > UnassEfficiencyHistos
std::string getMEName(std::string histoTag, const DTLayerId &lID)
Get the ME name.