CMS 3D CMS Logo

DTtTrigDBValidation.h
Go to the documentation of this file.
1 #ifndef DTtTrigDBValidation_H
2 #define DTtTrigDBValidation_H
3 
12 
18 #include <fstream>
19 #include <string>
20 #include <vector>
21 
22 // class DTTtrig;
23 class TFile;
24 
26 public:
29 
31  ~DTtTrigDBValidation() override;
32 
34  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
35  void analyze(const edm::Event &, const edm::EventSetup &) override;
36 
37 private:
38  // Switch for verbosity
40  // The DB label
45 
48 
49  // The DTGeometry
52 
53  // Map of the tTrig and sigma by super-layer
54  std::map<DTSuperLayerId, std::pair<float, float>> tTrigRefMap_;
55  std::map<DTSuperLayerId, std::pair<float, float>> tTrigMap_;
56 
57  // Map of the tTrig difference histos by (wheel,sector)
58  std::map<std::pair<int, int>, MonitorElement *> tTrigDiffHistos_;
59  std::map<int, MonitorElement *> tTrigDiffWheel_;
60 
61  void bookHistos(DQMStore::IBooker &, int, int);
62  void bookHistos(DQMStore::IBooker &, int wheel);
63  // Compute the station from the bin number of mean and sigma histos
64  int stationFromBin(int bin) const;
65  // Compute the sl from the bin number of mean and sigma histos
66  int slFromBin(int bin) const;
67 };
68 #endif
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Operations.
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
std::map< std::pair< int, int >, MonitorElement * > tTrigDiffHistos_
edm::ESGetToken< DTTtrig, DTTtrigRcd > labelDB_
std::map< DTSuperLayerId, std::pair< float, float > > tTrigRefMap_
int slFromBin(int bin) const
edm::ESGetToken< DTTtrig, DTTtrigRcd > labelDBRef_
const DTTtrig * DTTtrigRefMap
DTtTrigDBValidation(const edm::ParameterSet &pset)
Constructor.
~DTtTrigDBValidation() override
Destructor.
const DTTtrig * DTTtrigMap
std::map< int, MonitorElement * > tTrigDiffWheel_
void bookHistos(DQMStore::IBooker &, int, int)
std::map< DTSuperLayerId, std::pair< float, float > > tTrigMap_
int stationFromBin(int bin) const
const DTGeometry * dtGeom
Definition: Run.h:45