CMS 3D CMS Logo

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