CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTResolutionAnalysisTest.h
Go to the documentation of this file.
1 #ifndef DTResolutionAnalysisTest_H
2 #define DTResolutionAnalysisTest_H
3 
4 
18 
21 
22 #include <string>
23 #include <map>
24 
25 class DTGeometry;
26 class DTSuperLayerId;
27 class DQMStore;
28 class MonitorElement;
29 
30 
32 
33 public:
34 
37 
39  virtual ~DTResolutionAnalysisTest();
40 
42  void beginJob();
43 
45  void beginRun(const edm::Run& r, const edm::EventSetup& c);
46 
48  void analyze(const edm::Event& e, const edm::EventSetup& c);
49 
51  void bookHistos();
52  void bookHistos(int wh);
53  void bookHistos(int wh, int sect);
54 
56  std::string getMEName(const DTSuperLayerId & slID);
57 
58  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
59 
61  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
62  void endRun(edm::Run const& run, edm::EventSetup const& c);
63 
64 
65 
66 private:
67  void resetMEs();
68 
69  int nevents;
70  unsigned int nLumiSegs;
72  int run;
74 
76 
77  // permitted test ranges
82 
84 
86 
87  // Histograms for tests
88  std::map< std::pair<int,int> , MonitorElement* > MeanHistos;
89  std::map< std::pair<int,int> , MonitorElement* > SigmaHistos;
90  // wheel summary histograms
91  std::map< int, MonitorElement* > wheelMeanHistos;
92  std::map< int, MonitorElement* > wheelSigmaHistos;
93 
94  std::map< int, MonitorElement* > meanDistr;
95  std::map< int, MonitorElement* > sigmaDistr;
96 
97 
98  // Compute the station from the bin number of mean and sigma histos
99  int stationFromBin(int bin) const;
100  // Compute the sl from the bin number of mean and sigma histos
101  int slFromBin(int bin) const;
102 
103  double meanInRange(double mean) const;
104  double sigmaInRange(double sigma) const;
105 
107 
108  // top folder for the histograms in DQMStore
109  std::string topHistoFolder;
110 
111 };
112 
113 #endif
std::map< std::pair< int, int >, MonitorElement * > SigmaHistos
double meanInRange(double mean) const
std::map< int, MonitorElement * > sigmaDistr
DTResolutionAnalysisTest(const edm::ParameterSet &ps)
Constructor.
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
DQM Client Diagnostic.
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
std::string getMEName(const DTSuperLayerId &slID)
Get the ME name.
virtual ~DTResolutionAnalysisTest()
Destructor.
edm::ESHandle< DTGeometry > muonGeom
std::map< std::pair< int, int >, MonitorElement * > MeanHistos
void bookHistos()
book the summary histograms
std::map< int, MonitorElement * > wheelMeanHistos
double sigmaInRange(double sigma) const
std::map< int, MonitorElement * > wheelSigmaHistos
std::map< int, MonitorElement * > meanDistr
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
Definition: Run.h:33
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void endRun(edm::Run const &run, edm::EventSetup const &c)