CMS 3D CMS Logo

DTResolutionAnalysisTest.h
Go to the documentation of this file.
1 #ifndef DTResolutionAnalysisTest_H
2 #define DTResolutionAnalysisTest_H
3 
18 
21 
23 
24 #include <string>
25 #include <map>
26 
27 class DTGeometry;
28 class DTSuperLayerId;
29 
31 public:
34 
36  ~DTResolutionAnalysisTest() override;
37 
39  void beginRun(const edm::Run& r, const edm::EventSetup& c) override;
40 
42  void bookHistos(DQMStore::IBooker&, int wh);
43  void bookHistos(DQMStore::IBooker&, int wh, int sect);
44 
47 
48 protected:
50 
51 private:
52  void resetMEs();
53 
54  int nevents;
55  unsigned int nLumiSegs;
57  int run;
59 
60  // permitted test ranges
65 
67 
69 
70  // Histograms for tests
71  std::map<std::pair<int, int>, MonitorElement*> MeanHistos;
72  std::map<std::pair<int, int>, MonitorElement*> SigmaHistos;
73  // wheel summary histograms
74  std::map<int, MonitorElement*> wheelMeanHistos;
75  std::map<int, MonitorElement*> wheelSigmaHistos;
76 
77  std::map<int, MonitorElement*> meanDistr;
78  std::map<int, MonitorElement*> sigmaDistr;
79 
80  // Compute the station from the bin number of mean and sigma histos
81  int stationFromBin(int bin) const;
82  // Compute the sl from the bin number of mean and sigma histos
83  int slFromBin(int bin) const;
84 
85  double meanInRange(double mean) const;
86  double sigmaInRange(double sigma) const;
87 
89 
90  // top folder for the histograms in DQMStore
92 };
93 
94 #endif
std::map< int, MonitorElement * > meanDistr
void bookHistos(DQMStore::IBooker &)
std::map< int, MonitorElement * > wheelMeanHistos
double meanInRange(double mean) const
DTResolutionAnalysisTest(const edm::ParameterSet &ps)
Constructor.
std::string getMEName(const DTSuperLayerId &slID)
Get the ME name.
~DTResolutionAnalysisTest() override
Destructor.
std::map< std::pair< int, int >, MonitorElement * > SigmaHistos
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
BeginRun.
edm::ESHandle< DTGeometry > muonGeom
std::map< std::pair< int, int >, MonitorElement * > MeanHistos
std::map< int, MonitorElement * > wheelSigmaHistos
std::map< int, MonitorElement * > sigmaDistr
double sigmaInRange(double sigma) const
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: Run.h:45