CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTResolutionTest.h
Go to the documentation of this file.
1 #ifndef DTResolutionTest_H
2 #define DTResolutionTest_H
3 
4 
25 
29 
31 
32 
33 #include <memory>
34 #include <iostream>
35 #include <fstream>
36 #include <string>
37 #include <vector>
38 #include <map>
39 
40 class DTGeometry;
41 class DTChamberId;
42 class DTSuperLayerId;
43 
45 
46 public:
47 
50 
52  virtual ~DTResolutionTest();
53 
54 protected:
55 
57  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
58 
60  void bookHistos(DQMStore::IBooker &, const DTChamberId & ch);
61 
63  void bookHistos(DQMStore::IBooker &, int wh);
64 
66  std::string getMEName(const DTSuperLayerId & slID);
68 
71 
72 
73 private:
74 
75  int nevents;
76  unsigned int nLumiSegs;
78  int run;
80 
82 
85 
86  // histograms: < detRawID, Histogram >
87  std::map< std::pair<int,int> , MonitorElement* > MeanHistos;
88  std::map< std::pair<int,int> , MonitorElement* > SigmaHistos;
89  std::map< std::pair<int,int> , MonitorElement* > SlopeHistos;
90  std::map< std::string , MonitorElement* > MeanHistosSetRange;
91  std::map< std::string , MonitorElement* > SigmaHistosSetRange;
92  std::map< std::string , MonitorElement* > SlopeHistosSetRange;
93  std::map< std::string , MonitorElement* > MeanHistosSetRange2D;
94  std::map< std::string , MonitorElement* > SigmaHistosSetRange2D;
95  std::map< std::string , MonitorElement* > SlopeHistosSetRange2D;
96 
97  // wheel summary histograms
98  std::map< int, MonitorElement* > wheelMeanHistos;
99  std::map< int, MonitorElement* > wheelSigmaHistos;
100  std::map< int, MonitorElement* > wheelSlopeHistos;
101 
102  // cms summary histograms
103  std::map <std::pair<int,int>, int> cmsMeanHistos;
104  std::map <std::pair<int,int>, bool> MeanFilled;
105  std::map <std::pair<int,int>, int> cmsSigmaHistos;
106  std::map <std::pair<int,int>, bool> SigmaFilled;
107  std::map <std::pair<int,int>, int> cmsSlopeHistos;
108  std::map <std::pair<int,int>, bool> SlopeFilled;
109 
110  // Compute the station from the bin number of mean and sigma histos
111  int stationFromBin(int bin) const;
112  // Compute the sl from the bin number of mean and sigma histos
113  int slFromBin(int bin) const;
114 
115 
116 };
117 
118 #endif
std::map< std::pair< int, int >, int > cmsSlopeHistos
std::map< int, MonitorElement * > wheelSlopeHistos
DTResolutionTest(const edm::ParameterSet &ps)
Constructor.
edm::ParameterSet parameters
std::map< int, MonitorElement * > wheelMeanHistos
std::map< std::pair< int, int >, MonitorElement * > SlopeHistos
edm::ESHandle< DTGeometry > muonGeom
std::map< std::pair< int, int >, MonitorElement * > SigmaHistos
std::map< std::string, MonitorElement * > SlopeHistosSetRange2D
std::map< std::pair< int, int >, bool > SigmaFilled
std::string getMEName(const DTSuperLayerId &slID)
Get the ME name.
std::map< std::pair< int, int >, int > cmsSigmaHistos
void bookHistos(DQMStore::IBooker &, const DTChamberId &ch)
book the new ME
unsigned int nLumiSegs
std::map< std::string, MonitorElement * > SlopeHistosSetRange
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Endjob.
std::map< std::string, MonitorElement * > SigmaHistosSetRange
std::map< std::string, MonitorElement * > SigmaHistosSetRange2D
std::map< std::pair< int, int >, bool > MeanFilled
std::map< int, MonitorElement * > wheelSigmaHistos
virtual ~DTResolutionTest()
Destructor.
std::map< std::string, MonitorElement * > MeanHistosSetRange2D
std::map< std::pair< int, int >, int > cmsMeanHistos
std::string getMEName2D(const DTSuperLayerId &slID)
std::map< std::pair< int, int >, bool > SlopeFilled
std::map< std::pair< int, int >, MonitorElement * > MeanHistos
int slFromBin(int bin) const
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
DQM Client Diagnostic.
int stationFromBin(int bin) const
std::map< std::string, MonitorElement * > MeanHistosSetRange