CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTTriggerEfficiencyTest.h
Go to the documentation of this file.
1 #ifndef DTTriggerEfficiencyTest_H
2 #define DTTriggerEfficiencyTest_H
3 
4 
15 
16 #include <string>
17 
18 class DTTrigGeomUtils;
19 
21 
22 public:
23 
26 
28  virtual ~DTTriggerEfficiencyTest();
29 
30 protected:
31 
33  void makeEfficiencyME(TH2F* numerator, TH2F* denominator, MonitorElement* result2DWh, MonitorElement* result1DWh, MonitorElement* result1D);
34 
36  void makeEfficiencyME(TH2F* numerator, TH2F* denominator, MonitorElement* result2DWh);
37 
39  void bookHistos(std::string hTag,std::string folder);
40 
42  void bookWheelHistos(int wheel,std::string hTag,std::string folder);
43 
45  void bookChambHistos(DTChamberId chambId, std::string htype , std::string folder = "");
46 
48  std::string getMEName(std::string histoTag, std::string folder, int wh);
49 
51  void beginJob();
52 
54  void beginRun(const edm::Run& r, const edm::EventSetup& c);
55 
57  void runClientDiagnostic();
58 
59 
60 
61  private:
62 
63  std::map<std::string, MonitorElement*> globalEffDistr;
64  std::map<int,std::map<std::string,MonitorElement*> > EffDistrPerWh;
65  std::map<uint32_t,std::map<std::string,MonitorElement*> > chambME;
68 
69 };
70 
71 #endif
void makeEfficiencyME(TH2F *numerator, TH2F *denominator, MonitorElement *result2DWh, MonitorElement *result1DWh, MonitorElement *result1D)
Compute 1D/2D efficiency plots.
void bookWheelHistos(int wheel, std::string hTag, std::string folder)
Book the new MEs (for each wheel)
list numerator
Definition: cuy.py:483
void bookChambHistos(DTChamberId chambId, std::string htype, std::string folder="")
Book the new MEs (for each chamber)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
std::map< int, std::map< std::string, MonitorElement * > > EffDistrPerWh
DTTriggerEfficiencyTest(const edm::ParameterSet &ps)
Constructor.
std::map< std::string, MonitorElement * > globalEffDistr
std::map< uint32_t, std::map< std::string, MonitorElement * > > chambME
void bookHistos(std::string hTag, std::string folder)
Book the new MEs (global)
virtual ~DTTriggerEfficiencyTest()
Destructor.
list denominator
Definition: cuy.py:484
std::string getMEName(std::string histoTag, std::string folder, int wh)
Get the ME name (by wheel)
void runClientDiagnostic()
DQM Client Diagnostic.
Definition: Run.h:41