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 
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  virtual ~DTResolutionAnalysisTest();
42 
44  void beginRun(const edm::Run& r, const edm::EventSetup& c);
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:
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.
virtual ~DTResolutionAnalysisTest()
Destructor.
edm::ESHandle< DTGeometry > muonGeom
std::map< std::pair< int, int >, MonitorElement * > MeanHistos
std::map< int, MonitorElement * > wheelMeanHistos
double sigmaInRange(double sigma) const
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &)
std::map< int, MonitorElement * > wheelSigmaHistos
std::map< int, MonitorElement * > meanDistr
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
Definition: Run.h:43