CMS 3D CMS Logo

DTt0DBValidation.h
Go to the documentation of this file.
1 #ifndef DTt0DBValidation_H
2 #define DTt0DBValidation_H
3 
19 
23 
24 #include <string>
25 #include <fstream>
26 #include <vector>
27 
28 class DTT0;
29 class TFile;
30 
32 public:
35 
37  ~DTt0DBValidation() override;
38 
40  //Read the DTGeometry and the t0 DB
41  void beginRun(const edm::Run& run, const edm::EventSetup& setup) override;
42  void endRun(edm::Run const&, edm::EventSetup const&) override;
43  void endJob() override;
44  void analyze(const edm::Event& event, const edm::EventSetup& setup) override {}
45 
46 private:
47  void bookHistos(DTLayerId lId, int firstWire, int lastWire);
48  void bookHistos(int wheel);
49 
51  // Switch for verbosity
53  // The DB label
56 
57  // The file which will contain the difference plot
60 
62 
63  // The DTGeometry
65 
66  // The t0 map
67  const DTT0 *tZeroMap_;
69 
70  // Map of the t0 and sigma per wire
71  std::map<DTWireId, std::vector<float> > t0RefMap_;
72  std::map<DTWireId, std::vector<float> > t0Map_;
73 
74  // Map of the t0 difference histos per layer
75  std::map<DTLayerId, MonitorElement* > t0DiffHistos_;
76 
77  // Summary histos
78  std::map<int, MonitorElement* > wheelSummary_;
79 };
80 #endif
void endRun(edm::Run const &, edm::EventSetup const &) override
const DTT0 * tZeroRefMap_
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
std::string metname_
std::string labelDB_
std::map< int, MonitorElement * > wheelSummary_
std::string labelDBRef_
Definition: DTT0.h:53
std::map< DTWireId, std::vector< float > > t0RefMap_
DTt0DBValidation(const edm::ParameterSet &pset)
Constructor.
std::string outputFileName_
void endJob() override
edm::ESHandle< DTGeometry > dtGeom_
std::string t0TestName_
std::map< DTLayerId, MonitorElement * > t0DiffHistos_
~DTt0DBValidation() override
Destructor.
const DTT0 * tZeroMap_
void beginRun(const edm::Run &run, const edm::EventSetup &setup) override
Operations.
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:44