CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTtTrigDBValidation.h
Go to the documentation of this file.
1 #ifndef DTtTrigDBValidation_H
2 #define DTtTrigDBValidation_H
3 
13 
16 
17 #include <string>
18 #include <fstream>
19 #include <vector>
20 
21 //class DTTtrig;
22 class TFile;
23 
25 
26 public:
29 
31  virtual ~DTtTrigDBValidation();
32 
34  void beginRun(edm::Run const&, edm::EventSetup const&);
35  void endRun(edm::Run const&, edm::EventSetup const&);
36  void analyze(edm::Event const&, edm::EventSetup const&) {}
37  void endJob();
38 
39 private:
40 
41  // Switch for verbosity
43  // The DB label
46 
49 
50  // The file which will contain the difference plots
53 
55  // The DTGeometry
57 
58  // Map of the tTrig and sigma by super-layer
59  std::map<DTSuperLayerId, std::pair<float,float> > tTrigRefMap_;
60  std::map<DTSuperLayerId, std::pair<float,float> > tTrigMap_;
61 
62  // Map of the tTrig difference histos by (wheel,sector)
63  std::map<std::pair<int,int>, MonitorElement* > tTrigDiffHistos_;
64  std::map<int, MonitorElement* > tTrigDiffWheel_;
65 
66  void bookHistos(int,int);
67  void bookHistos(int wheel);
68  // Compute the station from the bin number of mean and sigma histos
69  int stationFromBin(int bin) const;
70  // Compute the sl from the bin number of mean and sigma histos
71  int slFromBin(int bin) const;
72 };
73 #endif
void endRun(edm::Run const &, edm::EventSetup const &)
std::map< int, MonitorElement * > tTrigDiffWheel_
int slFromBin(int bin) const
std::map< std::pair< int, int >, MonitorElement * > tTrigDiffHistos_
edm::ESHandle< DTGeometry > dtGeom_
int stationFromBin(int bin) const
virtual ~DTtTrigDBValidation()
Destructor.
std::map< DTSuperLayerId, std::pair< float, float > > tTrigRefMap_
DTtTrigDBValidation(const edm::ParameterSet &pset)
Constructor.
std::map< DTSuperLayerId, std::pair< float, float > > tTrigMap_
void beginRun(edm::Run const &, edm::EventSetup const &)
Operations.
void analyze(edm::Event const &, edm::EventSetup const &)
Definition: Run.h:36