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
DTGeometry
Definition: DTGeometry.h:28
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
DTTtrig
Definition: DTTtrig.h:68
DTTtrigRcd.h
ESHandle.h
edm::Run
Definition: Run.h:45
DTtTrigDBValidation::stationFromBin
int stationFromBin(int bin) const
Definition: DTtTrigDBValidation.cc:187
DTtTrigDBValidation::~DTtTrigDBValidation
~DTtTrigDBValidation() override
Destructor.
Definition: DTtTrigDBValidation.cc:36
DQMStore.h
DTtTrigDBValidation::DTTtrigRefMap
const DTTtrig * DTTtrigRefMap
Definition: DTtTrigDBValidation.h:43
MakerMacros.h
DTtTrigDBValidation::dtGeom
const DTGeometry * dtGeom
Definition: DTtTrigDBValidation.h:51
Service.h
DQMEDAnalyzer.h
DTGeometry.h
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
edm::ParameterSet
Definition: ParameterSet.h:47
DTtTrigDBValidation::DTTtrigMap
const DTTtrig * DTTtrigMap
Definition: DTtTrigDBValidation.h:44
DTtTrigDBValidation
Definition: DTtTrigDBValidation.h:25
DTtTrigDBValidation::tTrigRefMap_
std::map< DTSuperLayerId, std::pair< float, float > > tTrigRefMap_
Definition: DTtTrigDBValidation.h:54
DTtTrigDBValidation::slFromBin
int slFromBin(int bin) const
Definition: DTtTrigDBValidation.cc:189
DTtTrigDBValidation::tTrigDiffHistos_
std::map< std::pair< int, int >, MonitorElement * > tTrigDiffHistos_
Definition: DTtTrigDBValidation.h:58
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
DTtTrigDBValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Operations.
Definition: DTtTrigDBValidation.cc:38
DTtTrigDBValidation::tTrigMap_
std::map< DTSuperLayerId, std::pair< float, float > > tTrigMap_
Definition: DTtTrigDBValidation.h:55
edm::EventSetup
Definition: EventSetup.h:58
DTTtrig.h
DTtTrigDBValidation::higherLimit_
int higherLimit_
Definition: DTtTrigDBValidation.h:47
DTtTrigDBValidation::lowerLimit_
int lowerLimit_
Definition: DTtTrigDBValidation.h:46
edm::ESGetToken< DTTtrig, DTTtrigRcd >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
DTtTrigDBValidation::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: DTtTrigDBValidation.cc:197
DTtTrigDBValidation::metname_
std::string metname_
Definition: DTtTrigDBValidation.h:39
Frameworkfwd.h
DTtTrigDBValidation::labelDB_
edm::ESGetToken< DTTtrig, DTTtrigRcd > labelDB_
Definition: DTtTrigDBValidation.h:42
DTtTrigDBValidation::bookHistos
void bookHistos(DQMStore::IBooker &, int, int)
Definition: DTtTrigDBValidation.cc:133
DTtTrigDBValidation::muonGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTtTrigDBValidation.h:50
MuonServiceProxy.h
DTtTrigDBValidation::tTrigDiffWheel_
std::map< int, MonitorElement * > tTrigDiffWheel_
Definition: DTtTrigDBValidation.h:59
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTtTrigDBValidation::labelDBRef_
edm::ESGetToken< DTTtrig, DTTtrigRcd > labelDBRef_
Definition: DTtTrigDBValidation.h:41
ParameterSet.h
DTSuperLayerId.h
MuonGeometryRecord.h
DTtTrigDBValidation::DTtTrigDBValidation
DTtTrigDBValidation(const edm::ParameterSet &pset)
Constructor.
Definition: DTtTrigDBValidation.cc:26
edm::Event
Definition: Event.h:73
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27