CMS 3D CMS Logo

DTt0DBValidation.h
Go to the documentation of this file.
1 #ifndef DTt0DBValidation_H
2 #define DTt0DBValidation_H
3 
18 
22 
23 #include <fstream>
24 #include <string>
25 #include <vector>
26 
27 class DTT0;
28 class TFile;
29 
31 public:
36 
38  ~DTt0DBValidation() override;
39 
41  // Read the DTGeometry and the t0 DB
42  void beginRun(const edm::Run &run, const edm::EventSetup &setup) override;
43  void endRun(edm::Run const &, edm::EventSetup const &) override;
44  void endJob() override;
45  void analyze(const edm::Event &event, const edm::EventSetup &setup) override {}
46 
47 private:
48  void bookHistos(DTLayerId lId, int firstWire, int lastWire);
49  void bookHistos(int wheel);
50 
52  // Switch for verbosity
54  // The DB label
57 
58  // The file which will contain the difference plot
61 
63 
64  // The DTGeometry
66 
67  // The t0 map
68  const DTT0 *tZeroMap_;
70 
71  // Map of the t0 and sigma per wire
72  std::map<DTWireId, std::vector<float>> t0RefMap_;
73  std::map<DTWireId, std::vector<float>> t0Map_;
74 
75  // Map of the t0 difference histos per layer
76  std::map<DTLayerId, MonitorElement *> t0DiffHistos_;
77 
78  // Summary histos
79  std::map<int, MonitorElement *> wheelSummary_;
80 };
81 #endif
DTt0DBValidation::dtGeom_
edm::ESHandle< DTGeometry > dtGeom_
Definition: DTt0DBValidation.h:65
DTt0DBValidation
Definition: DTt0DBValidation.h:30
DTt0DBValidation::DTt0DBValidation
DTt0DBValidation(const edm::ParameterSet &pset)
Constructor.
Definition: DTt0DBValidation.cc:37
ESHandle.h
DTt0DBValidation::t0TestName_
std::string t0TestName_
Definition: DTt0DBValidation.h:62
edm::Run
Definition: Run.h:45
DTLayerId.h
DTt0DBValidation::~DTt0DBValidation
~DTt0DBValidation() override
Destructor.
Definition: DTt0DBValidation.cc:60
DTt0DBValidation::outputFileName_
std::string outputFileName_
Definition: DTt0DBValidation.h:60
DQMStore.h
DTt0DBValidation::t0RefMap_
std::map< DTWireId, std::vector< float > > t0RefMap_
Definition: DTt0DBValidation.h:72
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
EDAnalyzer.h
DTt0DBValidation::bookHistos
void bookHistos(DTLayerId lId, int firstWire, int lastWire)
Definition: DTt0DBValidation.cc:192
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
DTt0DBValidation::wheelSummary_
std::map< int, MonitorElement * > wheelSummary_
Definition: DTt0DBValidation.h:79
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
DTt0DBValidation::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: DTt0DBValidation.h:33
MakerMacros.h
dqm::legacy::DQMStore
Definition: DQMStore.h:727
Service.h
edm::ESHandle< DTGeometry >
DTLayerId
Definition: DTLayerId.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTGeometry.h
edm::ParameterSet
Definition: ParameterSet.h:47
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
DTt0DBValidation::t0Map_
std::map< DTWireId, std::vector< float > > t0Map_
Definition: DTt0DBValidation.h:73
edm::EventSetup
Definition: EventSetup.h:57
DTt0DBValidation::metname_
std::string metname_
Definition: DTt0DBValidation.h:53
DTt0DBValidation::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: DTt0DBValidation.h:32
DTt0DBValidation::labelDBRef_
std::string labelDBRef_
Definition: DTt0DBValidation.h:55
writedatasetfile.run
run
Definition: writedatasetfile.py:27
DTWireId.h
Frameworkfwd.h
DTt0DBValidation::endRun
void endRun(edm::Run const &, edm::EventSetup const &) override
Definition: DTt0DBValidation.cc:156
DTt0DBValidation::tZeroMap_
const DTT0 * tZeroMap_
Definition: DTt0DBValidation.h:68
DTt0DBValidation::t0DiffHistos_
std::map< DTLayerId, MonitorElement * > t0DiffHistos_
Definition: DTt0DBValidation.h:76
MuonServiceProxy.h
DTt0DBValidation::tZeroRefMap_
const DTT0 * tZeroRefMap_
Definition: DTt0DBValidation.h:69
DTT0
Definition: DTT0.h:48
DTt0DBValidation::labelDB_
std::string labelDB_
Definition: DTt0DBValidation.h:56
DTt0DBValidation::endJob
void endJob() override
Definition: DTt0DBValidation.cc:185
DTt0DBValidation::outputMEsInRootFile_
bool outputMEsInRootFile_
Definition: DTt0DBValidation.h:59
ParameterSet.h
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
DTt0DBValidation::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &setup) override
Operations.
Definition: DTt0DBValidation.cc:62
DTt0DBValidation::dbe_
DQMStore * dbe_
Definition: DTt0DBValidation.h:51
DTt0DBValidation::analyze
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
Definition: DTt0DBValidation.h:45
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27