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 
24 
28 
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 
43 public:
44 
47 
49  virtual ~DTResolutionTest();
50 
51 protected:
52 
54  void beginRun(const edm::Run& r, const edm::EventSetup& c);
55 
57  void analyze(const edm::Event& e, const edm::EventSetup& c);
58 
60  void endJob();
61 
63  void bookHistos(const DTChamberId & ch);
64 
66  void bookHistos(int wh);
67 
69  std::string getMEName(const DTSuperLayerId & slID);
70  std::string getMEName2D(const DTSuperLayerId & slID);
71 
72  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
73 
75  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
76 
77 
78 
79 private:
80 
81  int nevents;
82  unsigned int nLumiSegs;
84  int run;
86 
88 
91 
92  // histograms: < detRawID, Histogram >
93  std::map< std::pair<int,int> , MonitorElement* > MeanHistos;
94  std::map< std::pair<int,int> , MonitorElement* > SigmaHistos;
95  std::map< std::pair<int,int> , MonitorElement* > SlopeHistos;
96  std::map< std::string , MonitorElement* > MeanHistosSetRange;
97  std::map< std::string , MonitorElement* > SigmaHistosSetRange;
98  std::map< std::string , MonitorElement* > SlopeHistosSetRange;
99  std::map< std::string , MonitorElement* > MeanHistosSetRange2D;
100  std::map< std::string , MonitorElement* > SigmaHistosSetRange2D;
101  std::map< std::string , MonitorElement* > SlopeHistosSetRange2D;
102 
103  // wheel summary histograms
104  std::map< int, MonitorElement* > wheelMeanHistos;
105  std::map< int, MonitorElement* > wheelSigmaHistos;
106  std::map< int, MonitorElement* > wheelSlopeHistos;
107 
108  // cms summary histograms
109  std::map <std::pair<int,int>, int> cmsMeanHistos;
110  std::map <std::pair<int,int>, bool> MeanFilled;
111  std::map <std::pair<int,int>, int> cmsSigmaHistos;
112  std::map <std::pair<int,int>, bool> SigmaFilled;
113  std::map <std::pair<int,int>, int> cmsSlopeHistos;
114  std::map <std::pair<int,int>, bool> SlopeFilled;
115 
116  // Compute the station from the bin number of mean and sigma histos
117  int stationFromBin(int bin) const;
118  // Compute the sl from the bin number of mean and sigma histos
119  int slFromBin(int bin) const;
120 
121 
122 };
123 
124 #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
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
DQM Client Diagnostic.
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
std::string getMEName(const DTSuperLayerId &slID)
Get the ME name.
std::map< std::pair< int, int >, int > cmsSigmaHistos
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
unsigned int nLumiSegs
std::map< std::string, MonitorElement * > SlopeHistosSetRange
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.
void bookHistos(const DTChamberId &ch)
book the new ME
std::map< std::string, MonitorElement * > MeanHistosSetRange2D
void endJob()
Endjob.
std::map< std::pair< int, int >, int > cmsMeanHistos
std::string getMEName2D(const DTSuperLayerId &slID)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
std::map< std::pair< int, int >, bool > SlopeFilled
std::map< std::pair< int, int >, MonitorElement * > MeanHistos
int slFromBin(int bin) const
int stationFromBin(int bin) const
Definition: Run.h:33
std::map< std::string, MonitorElement * > MeanHistosSetRange