test
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 
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 ~DTChamberEfficiencyTest();
49 
50 protected:
51 
53  void beginJob();
54 
56  void beginRun(const edm::Run& run, const edm::EventSetup& setup);
57 
59  void analyze(const edm::Event& e, const edm::EventSetup& c);
60 
62  void endJob();
63 
65  void bookHistos(const DTChamberId & ch);
66 
68  void bookHistos();
69 
71  std::string getMEName(std::string histoTag, const DTChamberId & chID);
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 
82 private:
83 
84  int nevents;
85  unsigned int nLumiSegs;
87  int run;
88 
90 
93 
94  std::map< std::string , MonitorElement* > xEfficiencyHistos;
95  std::map< std::string , MonitorElement* > yEfficiencyHistos;
96  std::map< std::string , MonitorElement* > xVSyEffHistos;
97  std::map< int, MonitorElement* > summaryHistos;
98 
99 };
100 
101 #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
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
DTChamberEfficiencyTest(const edm::ParameterSet &ps)
Constructor.
Definition: Run.h:41