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 
32 class DTt0DBValidation : public edm::one::EDAnalyzer<edm::one::SharedResources, edm::one::WatchRuns> {
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
void endRun(edm::Run const &, edm::EventSetup const &) override
std::map< DTLayerId, MonitorElement * > t0DiffHistos_
edm::ESGetToken< DTT0, DTT0Rcd > labelDB_
dqm::legacy::DQMStore DQMStore
std::map< int, MonitorElement * > wheelSummary_
const DTT0 * tZeroRefMap_
std::string metname_
Definition: DTT0.h:48
std::map< DTWireId, std::vector< float > > t0RefMap_
DTt0DBValidation(const edm::ParameterSet &pset)
Constructor.
std::string outputFileName_
void endJob() override
dqm::legacy::MonitorElement MonitorElement
std::string t0TestName_
~DTt0DBValidation() override
Destructor.
const DTT0 * tZeroMap_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
const DTGeometry * dtGeom
void beginRun(const edm::Run &run, const edm::EventSetup &setup) override
Operations.
edm::ESGetToken< DTT0, DTT0Rcd > labelDBRef_
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
std::map< DTWireId, std::vector< float > > t0Map_
void bookHistos(DTLayerId lId, int firstWire, int lastWire)
Definition: event.py:1
Definition: Run.h:45