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 
17 
18 #include <map>
19 
20 class DTChamberId;
21 class TFile;
22 class TH1F;
23 class TH2F;
24 
25 class DTVDriftSegmentCalibration : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
26 public:
27  // Constructor
29  // Destructor
30  ~DTVDriftSegmentCalibration() override;
31 
32  void beginJob() override;
33  void beginRun(const edm::Run& run, const edm::EventSetup& setup) override;
34  void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) override;
35  void endRun(const edm::Run& run, const edm::EventSetup& setup) override{};
36  void endJob() override;
37 
38 private:
39  typedef std::map<DTChamberId, std::vector<TH1F*> > ChamberHistosMapTH1F;
40  typedef std::map<DTChamberId, std::vector<TH2F*> > ChamberHistosMapTH2F;
41  void bookHistos(DTChamberId);
42 
44 
46  //bool writeVDriftDB_;
48 
49  TFile* rootFile_;
52 
54 };
55 #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
const edm::EDGetTokenT< DTRecSegment4DCollection > theRecHits4DToken_
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)