CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/DQM/DTMonitorClient/src/DTTriggerEfficiencyTest.h

Go to the documentation of this file.
00001 #ifndef DTTriggerEfficiencyTest_H
00002 #define DTTriggerEfficiencyTest_H
00003 
00004 
00016 #include "DQM/DTMonitorClient/src/DTLocalTriggerBaseTest.h"
00017 
00018 #include <string>
00019 
00020 class DTTrigGeomUtils;
00021 
00022 class DTTriggerEfficiencyTest: public DTLocalTriggerBaseTest{
00023 
00024 public:
00025 
00027   DTTriggerEfficiencyTest(const edm::ParameterSet& ps);
00028   
00030   virtual ~DTTriggerEfficiencyTest();
00031 
00032 protected:
00033 
00035   void makeEfficiencyME(TH2F* numerator, TH2F* denominator, MonitorElement* result2DWh, MonitorElement* result1DWh, MonitorElement* result1D);
00036 
00038   void makeEfficiencyME(TH2F* numerator, TH2F* denominator, MonitorElement* result2DWh);
00039 
00041   void bookHistos(std::string hTag,std::string folder);
00042 
00044   void bookWheelHistos(int wheel,std::string hTag,std::string folder);
00045 
00047   void bookChambHistos(DTChamberId chambId, std::string htype , std::string folder = "");
00048 
00050   std::string getMEName(std::string histoTag, std::string folder, int wh);
00051 
00053   void beginJob();
00054 
00056   void beginRun(const edm::Run& r, const edm::EventSetup& c);
00057 
00059   void runClientDiagnostic();
00060 
00061 
00062 
00063  private:
00064 
00065   std::map<std::string, MonitorElement*> globalEffDistr;
00066   std::map<int,std::map<std::string,MonitorElement*> > EffDistrPerWh;
00067   std::map<uint32_t,std::map<std::string,MonitorElement*> > chambME;
00068   DTTrigGeomUtils* trigGeomUtils;
00069   bool detailedPlots;
00070 
00071 };
00072 
00073 #endif