Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:27

0001 #ifndef CalibMuon_DTT0FillDefaultFromDB_H
0002 #define CalibMuon_DTT0FillDefaultFromDB_H
0003 
0004 /** \class DTT0FillDefaultFromDB
0005  *  Concrete implementation of a DTT0BaseCorrection.
0006  *  Computes correction for t0
0007  *
0008  *  $Revision: 1.2 $
0009  *  \author A. Vilela Pereira
0010  */
0011 
0012 #include "CalibMuon/DTCalibration/interface/DTT0BaseCorrection.h"
0013 #include "DataFormats/MuonDetId/interface/DTChamberId.h"
0014 #include "CondFormats/DataRecord/interface/DTT0Rcd.h"
0015 #include "CondFormats/DTObjects/interface/DTT0.h"
0016 #include "FWCore/Framework/interface/ConsumesCollector.h"
0017 
0018 #include <string>
0019 
0020 namespace edm {
0021   class ParameterSet;
0022 }
0023 
0024 class DTT0;
0025 
0026 namespace dtCalibration {
0027 
0028   class DTT0FillDefaultFromDB : public DTT0BaseCorrection {
0029   public:
0030     // Constructor
0031     DTT0FillDefaultFromDB(const edm::ParameterSet &, edm::ConsumesCollector cc);
0032 
0033     // Destructor
0034     ~DTT0FillDefaultFromDB() override;
0035 
0036     void setES(const edm::EventSetup &setup) override;
0037     DTT0Data correction(const DTWireId &) override;
0038 
0039   private:
0040     const DTT0 *t0MapRef_;
0041     const DTT0 *t0Map_;
0042 
0043     edm::ESGetToken<DTT0, DTT0Rcd> t0Token_;
0044     edm::ESGetToken<DTT0, DTT0Rcd> t0RefToken_;
0045   };
0046 
0047 }  // namespace dtCalibration
0048 #endif