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 
22 
26 
27 
28 #include <memory>
29 #include <iostream>
30 #include <fstream>
31 #include <string>
32 #include <vector>
33 #include <map>
34 
35 class DTGeometry;
36 class DTChamberId;
37 class DTSuperLayerId;
38 
40 
41 public:
42 
45 
47  virtual ~DTResolutionTest();
48 
49 protected:
50 
52  void beginRun(const edm::Run& r, const edm::EventSetup& c);
53 
55  void analyze(const edm::Event& e, const edm::EventSetup& c);
56 
58  void endJob();
59 
61  void bookHistos(const DTChamberId & ch);
62 
64  void bookHistos(int wh);
65 
67  std::string getMEName(const DTSuperLayerId & slID);
69 
70  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
71 
73  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
74 
75 
76 
77 private:
78 
79  int nevents;
80  unsigned int nLumiSegs;
82  int run;
84 
86 
89 
90  // histograms: < detRawID, Histogram >
91  std::map< std::pair<int,int> , MonitorElement* > MeanHistos;
92  std::map< std::pair<int,int> , MonitorElement* > SigmaHistos;
93  std::map< std::pair<int,int> , MonitorElement* > SlopeHistos;
94  std::map< std::string , MonitorElement* > MeanHistosSetRange;
95  std::map< std::string , MonitorElement* > SigmaHistosSetRange;
96  std::map< std::string , MonitorElement* > SlopeHistosSetRange;
97  std::map< std::string , MonitorElement* > MeanHistosSetRange2D;
98  std::map< std::string , MonitorElement* > SigmaHistosSetRange2D;
99  std::map< std::string , MonitorElement* > SlopeHistosSetRange2D;
100 
101  // wheel summary histograms
102  std::map< int, MonitorElement* > wheelMeanHistos;
103  std::map< int, MonitorElement* > wheelSigmaHistos;
104  std::map< int, MonitorElement* > wheelSlopeHistos;
105 
106  // cms summary histograms
107  std::map <std::pair<int,int>, int> cmsMeanHistos;
108  std::map <std::pair<int,int>, bool> MeanFilled;
109  std::map <std::pair<int,int>, int> cmsSigmaHistos;
110  std::map <std::pair<int,int>, bool> SigmaFilled;
111  std::map <std::pair<int,int>, int> cmsSlopeHistos;
112  std::map <std::pair<int,int>, bool> SlopeFilled;
113 
114  // Compute the station from the bin number of mean and sigma histos
115  int stationFromBin(int bin) const;
116  // Compute the sl from the bin number of mean and sigma histos
117  int slFromBin(int bin) const;
118 
119 
120 };
121 
122 #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:41
std::map< std::string, MonitorElement * > MeanHistosSetRange