CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTResolutionTest.h
Go to the documentation of this file.
1 #ifndef DTResolutionTest_H
2 #define DTResolutionTest_H
3 
24 
27 
29 
30 #include <memory>
31 #include <iostream>
32 #include <fstream>
33 #include <string>
34 #include <vector>
35 #include <map>
36 
37 class DTGeometry;
38 class DTChamberId;
39 class DTSuperLayerId;
40 
42 public:
45 
47  ~DTResolutionTest() override;
48 
49 protected:
52 
54  void bookHistos(DQMStore::IBooker&, const DTChamberId& ch);
55 
57  void bookHistos(DQMStore::IBooker&, int wh);
58 
62 
66  edm::LuminosityBlock const&,
67  edm::EventSetup const&) override;
68 
69 private:
70  int nevents;
71  unsigned int nLumiSegs;
73  int run;
75 
77 
81 
82  // histograms: < detRawID, Histogram >
83  std::map<std::pair<int, int>, MonitorElement*> MeanHistos;
84  std::map<std::pair<int, int>, MonitorElement*> SigmaHistos;
85  std::map<std::pair<int, int>, MonitorElement*> SlopeHistos;
86  std::map<std::string, MonitorElement*> MeanHistosSetRange;
87  std::map<std::string, MonitorElement*> SigmaHistosSetRange;
88  std::map<std::string, MonitorElement*> SlopeHistosSetRange;
89  std::map<std::string, MonitorElement*> MeanHistosSetRange2D;
90  std::map<std::string, MonitorElement*> SigmaHistosSetRange2D;
91  std::map<std::string, MonitorElement*> SlopeHistosSetRange2D;
92 
93  // wheel summary histograms
94  std::map<int, MonitorElement*> wheelMeanHistos;
95  std::map<int, MonitorElement*> wheelSigmaHistos;
96  std::map<int, MonitorElement*> wheelSlopeHistos;
97 
98  // cms summary histograms
99  std::map<std::pair<int, int>, int> cmsMeanHistos;
100  std::map<std::pair<int, int>, bool> MeanFilled;
101  std::map<std::pair<int, int>, int> cmsSigmaHistos;
102  std::map<std::pair<int, int>, bool> SigmaFilled;
103  std::map<std::pair<int, int>, int> cmsSlopeHistos;
104  std::map<std::pair<int, int>, bool> SlopeFilled;
105 
106  // Compute the station from the bin number of mean and sigma histos
107  int stationFromBin(int bin) const;
108  // Compute the sl from the bin number of mean and sigma histos
109  int slFromBin(int bin) const;
110 };
111 
112 #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
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
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
int stationFromBin(int bin) const
std::map< std::pair< int, int >, bool > SlopeFilled