CMS 3D CMS Logo

DTResolutionTest.h
Go to the documentation of this file.
1 #ifndef DTResolutionTest_H
2 #define DTResolutionTest_H
3 
23 
26 
28 
29 #include <memory>
30 #include <iostream>
31 #include <fstream>
32 #include <string>
33 #include <vector>
34 #include <map>
35 
36 class DTGeometry;
37 class DTChamberId;
38 class DTSuperLayerId;
39 
41 public:
44 
46  ~DTResolutionTest() override;
47 
48 protected:
51 
53  void bookHistos(DQMStore::IBooker&, const DTChamberId& ch);
54 
56  void bookHistos(DQMStore::IBooker&, int wh);
57 
61 
65  edm::LuminosityBlock const&,
66  edm::EventSetup const&) override;
67 
68 private:
69  int nevents;
70  unsigned int nLumiSegs;
72  int run;
74 
76 
79 
80  // histograms: < detRawID, Histogram >
81  std::map<std::pair<int, int>, MonitorElement*> MeanHistos;
82  std::map<std::pair<int, int>, MonitorElement*> SigmaHistos;
83  std::map<std::pair<int, int>, MonitorElement*> SlopeHistos;
84  std::map<std::string, MonitorElement*> MeanHistosSetRange;
85  std::map<std::string, MonitorElement*> SigmaHistosSetRange;
86  std::map<std::string, MonitorElement*> SlopeHistosSetRange;
87  std::map<std::string, MonitorElement*> MeanHistosSetRange2D;
88  std::map<std::string, MonitorElement*> SigmaHistosSetRange2D;
89  std::map<std::string, MonitorElement*> SlopeHistosSetRange2D;
90 
91  // wheel summary histograms
92  std::map<int, MonitorElement*> wheelMeanHistos;
93  std::map<int, MonitorElement*> wheelSigmaHistos;
94  std::map<int, MonitorElement*> wheelSlopeHistos;
95 
96  // cms summary histograms
97  std::map<std::pair<int, int>, int> cmsMeanHistos;
98  std::map<std::pair<int, int>, bool> MeanFilled;
99  std::map<std::pair<int, int>, int> cmsSigmaHistos;
100  std::map<std::pair<int, int>, bool> SigmaFilled;
101  std::map<std::pair<int, int>, int> cmsSlopeHistos;
102  std::map<std::pair<int, int>, bool> SlopeFilled;
103 
104  // Compute the station from the bin number of mean and sigma histos
105  int stationFromBin(int bin) const;
106  // Compute the sl from the bin number of mean and sigma histos
107  int slFromBin(int bin) const;
108 };
109 
110 #endif
DTResolutionTest(const edm::ParameterSet &ps)
Constructor.
~DTResolutionTest() override
Destructor.
std::map< std::pair< int, int >, int > cmsMeanHistos
std::map< std::string, MonitorElement * > MeanHistosSetRange
edm::ParameterSet parameters
edm::ESHandle< DTGeometry > muonGeom
std::map< std::pair< int, int >, MonitorElement * > MeanHistos
std::map< std::pair< int, int >, MonitorElement * > SlopeHistos
std::map< std::pair< int, int >, bool > MeanFilled
std::map< std::string, MonitorElement * > SigmaHistosSetRange2D
std::string getMEName(const DTSuperLayerId &slID)
Get the ME name.
std::map< std::pair< int, int >, int > cmsSigmaHistos
std::map< std::pair< int, int >, MonitorElement * > SigmaHistos
void bookHistos(DQMStore::IBooker &, const DTChamberId &ch)
book the new ME
std::map< std::string, MonitorElement * > MeanHistosSetRange2D
unsigned int nLumiSegs
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Endjob.
std::map< std::string, MonitorElement * > SlopeHistosSetRange2D
std::map< std::pair< int, int >, int > cmsSlopeHistos
std::map< std::string, MonitorElement * > SigmaHistosSetRange
std::string getMEName2D(const DTSuperLayerId &slID)
std::map< int, MonitorElement * > wheelMeanHistos
std::map< int, MonitorElement * > wheelSigmaHistos
std::map< std::pair< int, int >, bool > SigmaFilled
int slFromBin(int bin) const
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic.
std::map< std::string, MonitorElement * > SlopeHistosSetRange
std::map< int, MonitorElement * > wheelSlopeHistos
int stationFromBin(int bin) const
std::map< std::pair< int, int >, bool > SlopeFilled