Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:34:56

0001 #ifndef CalibMuon_DTCalibration_DTT0Correction_h
0002 #define CalibMuon_DTCalibration_DTT0Correction_h
0003 
0004 /** \class DTT0Correction
0005  *  Class that reads and corrects t0 DB
0006  */
0007 
0008 #include "FWCore/Framework/interface/Frameworkfwd.h"
0009 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0010 #include "FWCore/Framework/interface/ESHandle.h"
0011 #include "Geometry/Records/interface/MuonGeometryRecord.h"
0012 #include "CondFormats/DTObjects/interface/DTT0.h"
0013 #include "CondFormats/DataRecord/interface/DTT0Rcd.h"
0014 
0015 #include <string>
0016 
0017 class DTT0;
0018 class DTGeometry;
0019 namespace dtCalibration {
0020   class DTT0BaseCorrection;
0021 }
0022 
0023 class DTT0Correction : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
0024 public:
0025   /// Constructor
0026   DTT0Correction(const edm::ParameterSet& pset);
0027 
0028   /// Destructor
0029   ~DTT0Correction() override;
0030 
0031   // Operations
0032 
0033   void beginJob() override {}
0034   void beginRun(const edm::Run& run, const edm::EventSetup& setup) override;
0035   void analyze(const edm::Event& event, const edm::EventSetup& setup) override {}
0036   void endRun(const edm::Run& run, const edm::EventSetup& setup) override {}
0037   void endJob() override;
0038 
0039 protected:
0040 private:
0041   std::unique_ptr<dtCalibration::DTT0BaseCorrection> correctionAlgo_;
0042 
0043   edm::ESHandle<DTGeometry> muonGeom_;
0044   const edm::ESGetToken<DTGeometry, MuonGeometryRecord> dtGeomToken_;
0045 
0046   const DTT0* t0Map_;
0047   edm::ESGetToken<DTT0, DTT0Rcd> t0Token_;
0048 };
0049 #endif