CMS 3D CMS Logo

DTVDriftSegmentCalibration.h
Go to the documentation of this file.
1 #ifndef CalibMuon_DTCalibration_DTVDriftSegmentCalibration_h
2 #define CalibMuon_DTCalibration_DTVDriftSegmentCalibration_h
3 
16 
17 #include <map>
18 
19 class DTChamberId;
20 class TFile;
21 class TH1F;
22 class TH2F;
23 
24 class DTVDriftSegmentCalibration : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
25 public:
26  // Constructor
28  // Destructor
29  ~DTVDriftSegmentCalibration() override;
30 
31  void beginJob() override;
32  void beginRun(const edm::Run& run, const edm::EventSetup& setup) override;
33  void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) override;
34  void endRun(const edm::Run& run, const edm::EventSetup& setup) override{};
35  void endJob() override;
36 
37 private:
38  typedef std::map<DTChamberId, std::vector<TH1F*> > ChamberHistosMapTH1F;
39  typedef std::map<DTChamberId, std::vector<TH2F*> > ChamberHistosMapTH2F;
40  void bookHistos(DTChamberId);
41 
43 
45  //bool writeVDriftDB_;
47 
48  TFile* rootFile_;
51 
53 };
54 #endif
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
std::map< DTChamberId, std::vector< TH1F * > > ChamberHistosMapTH1F
void endRun(const edm::Run &run, const edm::EventSetup &setup) override
std::map< DTChamberId, std::vector< TH2F * > > ChamberHistosMapTH2F
ChamberHistosMapTH1F theVDriftHistoMapTH1F_
ChamberHistosMapTH2F theVDriftHistoMapTH2F_
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
void beginRun(const edm::Run &run, const edm::EventSetup &setup) override
Definition: event.py:1
Definition: Run.h:45
DTVDriftSegmentCalibration(const edm::ParameterSet &pset)