CMS 3D CMS Logo

DTTTrigOffsetCalibration.h
Go to the documentation of this file.
1 #ifndef DTTTrigOffsetCalibration_H
2 #define DTTTrigOffsetCalibration_H
3 
17 
18 #include <map>
19 
20 namespace edm {
21  class ParameterSet;
22  class Event;
23  class EventSetup;
24 } // namespace edm
25 
26 class DTChamberId;
27 class DTTtrig;
28 class TFile;
29 class TH1F;
30 
31 class DTTTrigOffsetCalibration : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
32 public:
33  // Constructor
35  // Destructor
36  ~DTTTrigOffsetCalibration() override;
37 
38  void beginRun(const edm::Run& run, const edm::EventSetup& setup) override;
39  void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) override;
40  void endRun(const edm::Run& run, const edm::EventSetup& setup) override {}
41  void endJob() override;
42 
43 private:
44  typedef std::map<DTChamberId, std::vector<TH1F*> > ChamberHistosMap;
45  void bookHistos(DTChamberId);
46 
48 
50  const bool doTTrigCorrection_;
52 
53  TFile* rootFile_;
56 
59 };
60 #endif
void beginRun(const edm::Run &run, const edm::EventSetup &setup) override
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
const edm::EDGetTokenT< DTRecSegment4DCollection > theRecHits4DToken_
void endRun(const edm::Run &run, const edm::EventSetup &setup) override
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
HLT enums.
const edm::ESGetToken< DTTtrig, DTTtrigRcd > ttrigToken_
std::map< DTChamberId, std::vector< TH1F * > > ChamberHistosMap
DTTTrigOffsetCalibration(const edm::ParameterSet &pset)
Definition: event.py:1
Definition: Run.h:45