CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTChamberEfficiencyTest.h
Go to the documentation of this file.
1 #ifndef DTChamberEfficiencyTest_H
2 #define DTChamberEfficiencyTest_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 ~DTChamberEfficiencyTest();
51 
52 protected:
53 
55  void beginJob();
56 
58  void beginRun(const edm::Run& run, const edm::EventSetup& setup);
59 
61  void analyze(const edm::Event& e, const edm::EventSetup& c);
62 
64  void endJob();
65 
67  void bookHistos(const DTChamberId & ch);
68 
70  void bookHistos();
71 
73  std::string getMEName(std::string histoTag, const DTChamberId & chID);
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 
84 private:
85 
86  int nevents;
87  unsigned int nLumiSegs;
89  int run;
90 
92 
95 
96  std::map< std::string , MonitorElement* > xEfficiencyHistos;
97  std::map< std::string , MonitorElement* > yEfficiencyHistos;
98  std::map< std::string , MonitorElement* > xVSyEffHistos;
99  std::map< int, MonitorElement* > summaryHistos;
100 
101 };
102 
103 #endif
void bookHistos()
book the report summary
std::map< std::string, MonitorElement * > yEfficiencyHistos
std::map< std::string, MonitorElement * > xEfficiencyHistos
void beginRun(const edm::Run &run, const edm::EventSetup &setup)
BeginRun.
virtual ~DTChamberEfficiencyTest()
Destructor.
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
std::map< int, MonitorElement * > summaryHistos
std::string getMEName(std::string histoTag, const DTChamberId &chID)
Get the ME name.
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
DQM Client Diagnostic.
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
std::map< std::string, MonitorElement * > xVSyEffHistos
edm::ESHandle< DTGeometry > muonGeom
DTChamberEfficiencyTest(const edm::ParameterSet &ps)
Constructor.
Definition: Run.h:31