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  virtual ~DTt0DBValidation();
38 
40  //Read the DTGeometry and the t0 DB
41  void beginRun(const edm::Run& run, const edm::EventSetup& setup);
42  void endRun(edm::Run const&, edm::EventSetup const&);
43  void endJob();
44  void analyze(const edm::Event& event, const edm::EventSetup& setup) {}
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
const DTT0 * tZeroRefMap_
virtual ~DTt0DBValidation()
Destructor.
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
std::string metname_
std::string labelDB_
std::map< int, MonitorElement * > wheelSummary_
void beginRun(const edm::Run &run, const edm::EventSetup &setup)
Operations.
std::string labelDBRef_
Definition: DTT0.h:53
std::map< DTWireId, std::vector< float > > t0RefMap_
DTt0DBValidation(const edm::ParameterSet &pset)
Constructor.
std::string outputFileName_
edm::ESHandle< DTGeometry > dtGeom_
std::string t0TestName_
std::map< DTLayerId, MonitorElement * > t0DiffHistos_
void analyze(const edm::Event &event, const edm::EventSetup &setup)
const DTT0 * tZeroMap_
std::map< DTWireId, std::vector< float > > t0Map_
void bookHistos(DTLayerId lId, int firstWire, int lastWire)
void endRun(edm::Run const &, edm::EventSetup const &)
Definition: event.py:1
Definition: Run.h:42