CMS 3D CMS Logo

DTtTrigDBValidation.h
Go to the documentation of this file.
1 #ifndef DTtTrigDBValidation_H
2 #define DTtTrigDBValidation_H
3 
12 
15 
16 #include <fstream>
17 #include <string>
18 #include <vector>
19 
20 // class DTTtrig;
21 class TFile;
22 
24 public:
27 
29  ~DTtTrigDBValidation() override;
30 
32  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
33  void analyze(const edm::Event &, const edm::EventSetup &) override;
34 
35 private:
36  // Switch for verbosity
38  // The DB label
41 
44 
45  // The DTGeometry
47 
48  // Map of the tTrig and sigma by super-layer
49  std::map<DTSuperLayerId, std::pair<float, float>> tTrigRefMap_;
50  std::map<DTSuperLayerId, std::pair<float, float>> tTrigMap_;
51 
52  // Map of the tTrig difference histos by (wheel,sector)
53  std::map<std::pair<int, int>, MonitorElement *> tTrigDiffHistos_;
54  std::map<int, MonitorElement *> tTrigDiffWheel_;
55 
56  void bookHistos(DQMStore::IBooker &, int, int);
57  void bookHistos(DQMStore::IBooker &, int wheel);
58  // Compute the station from the bin number of mean and sigma histos
59  int stationFromBin(int bin) const;
60  // Compute the sl from the bin number of mean and sigma histos
61  int slFromBin(int bin) const;
62 };
63 #endif
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Operations.
void analyze(const edm::Event &, const edm::EventSetup &) override
int slFromBin(int bin) const
std::map< std::pair< int, int >, MonitorElement * > tTrigDiffHistos_
std::map< DTSuperLayerId, std::pair< float, float > > tTrigRefMap_
edm::ESHandle< DTGeometry > dtGeom_
int stationFromBin(int bin) const
DTtTrigDBValidation(const edm::ParameterSet &pset)
Constructor.
~DTtTrigDBValidation() override
Destructor.
std::map< int, MonitorElement * > tTrigDiffWheel_
void bookHistos(DQMStore::IBooker &, int, int)
std::map< DTSuperLayerId, std::pair< float, float > > tTrigMap_
Definition: Run.h:45