CMS 3D CMS Logo

DTResolutionAnalysisTest.h
Go to the documentation of this file.
1 #ifndef DTResolutionAnalysisTest_H
2 #define DTResolutionAnalysisTest_H
3 
18 
22 
23 #include <string>
24 #include <map>
25 
26 class DTGeometry;
27 class DTSuperLayerId;
28 
30 public:
33 
35  ~DTResolutionAnalysisTest() override;
36 
38  void beginRun(const edm::Run& r, const edm::EventSetup& c) override;
39 
41  void bookHistos(DQMStore::IBooker&, int wh);
42  void bookHistos(DQMStore::IBooker&, int wh, int sect);
43 
46 
47 protected:
49 
50 private:
51  void resetMEs();
52 
53  int nevents;
54  unsigned int nLumiSegs;
56  int run;
58 
59  // permitted test ranges
64 
66 
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  // wheel and ring mean histograms
81  std::map<int, std::map<int, std::map<std::string, MonitorElement*> > > wheelRingHistos;
82 
83  // Compute the station from the bin number of mean and sigma histos
84  int stationFromBin(int bin) const;
85  // Compute the sl from the bin number of mean and sigma histos
86  int slFromBin(int bin) const;
87 
88  double meanInRange(double mean) const;
89  double sigmaInRange(double sigma) const;
90 
92 
93  // top folder for the histograms in DQMStore
95 };
96 
97 #endif
std::map< int, MonitorElement * > meanDistr
void bookHistos(DQMStore::IBooker &)
std::map< int, MonitorElement * > wheelMeanHistos
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
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.
std::map< std::pair< int, int >, MonitorElement * > MeanHistos
std::map< int, MonitorElement * > wheelSigmaHistos
std::map< int, MonitorElement * > sigmaDistr
double meanInRange(double mean) const
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
double sigmaInRange(double sigma) const
Definition: Run.h:45
std::map< int, std::map< int, std::map< std::string, MonitorElement * > > > wheelRingHistos