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 
80 
81  // histograms: < detRawID, Histogram >
82  std::map<std::pair<int, int>, MonitorElement*> MeanHistos;
83  std::map<std::pair<int, int>, MonitorElement*> SigmaHistos;
84  std::map<std::pair<int, int>, MonitorElement*> SlopeHistos;
85  std::map<std::string, MonitorElement*> MeanHistosSetRange;
86  std::map<std::string, MonitorElement*> SigmaHistosSetRange;
87  std::map<std::string, MonitorElement*> SlopeHistosSetRange;
88  std::map<std::string, MonitorElement*> MeanHistosSetRange2D;
89  std::map<std::string, MonitorElement*> SigmaHistosSetRange2D;
90  std::map<std::string, MonitorElement*> SlopeHistosSetRange2D;
91 
92  // wheel summary histograms
93  std::map<int, MonitorElement*> wheelMeanHistos;
94  std::map<int, MonitorElement*> wheelSigmaHistos;
95  std::map<int, MonitorElement*> wheelSlopeHistos;
96 
97  // cms summary histograms
98  std::map<std::pair<int, int>, int> cmsMeanHistos;
99  std::map<std::pair<int, int>, bool> MeanFilled;
100  std::map<std::pair<int, int>, int> cmsSigmaHistos;
101  std::map<std::pair<int, int>, bool> SigmaFilled;
102  std::map<std::pair<int, int>, int> cmsSlopeHistos;
103  std::map<std::pair<int, int>, bool> SlopeFilled;
104 
105  // Compute the station from the bin number of mean and sigma histos
106  int stationFromBin(int bin) const;
107  // Compute the sl from the bin number of mean and sigma histos
108  int slFromBin(int bin) const;
109 };
110 
111 #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::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
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
int slFromBin(int bin) const
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Endjob.
int stationFromBin(int bin) const
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
const DTGeometry * muonGeom
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
std::map< std::pair< int, int >, bool > SlopeFilled