CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTResolutionAnalysisTest.h
Go to the documentation of this file.
1 #ifndef DTResolutionAnalysisTest_H
2 #define DTResolutionAnalysisTest_H
3 
18 
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 
70 
71  // Histograms for tests
72  std::map<std::pair<int, int>, MonitorElement*> MeanHistos;
73  std::map<std::pair<int, int>, MonitorElement*> SigmaHistos;
74  // wheel summary histograms
75  std::map<int, MonitorElement*> wheelMeanHistos;
76  std::map<int, MonitorElement*> wheelSigmaHistos;
77 
78  std::map<int, MonitorElement*> meanDistr;
79  std::map<int, MonitorElement*> sigmaDistr;
80 
81  // wheel and ring mean histograms
82  std::map<int, std::map<int, std::map<std::string, MonitorElement*> > > wheelRingHistos;
83 
84  // Compute the station from the bin number of mean and sigma histos
85  int stationFromBin(int bin) const;
86  // Compute the sl from the bin number of mean and sigma histos
87  int slFromBin(int bin) const;
88 
89  double meanInRange(double mean) const;
90  double sigmaInRange(double sigma) const;
91 
93 
94  // top folder for the histograms in DQMStore
96 };
97 
98 #endif
std::map< int, MonitorElement * > meanDistr
const edm::EventSetup & c
void bookHistos(DQMStore::IBooker &)
std::map< int, MonitorElement * > wheelMeanHistos
double meanInRange(double mean) const
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 sigmaInRange(double sigma) const
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: Run.h:45
std::map< int, std::map< int, std::map< std::string, MonitorElement * > > > wheelRingHistos