CMS 3D CMS Logo

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