Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CalibMuon_DTTTrigConstantShift_H
0002 #define CalibMuon_DTTTrigConstantShift_H
0003 
0004 /** \class DTTTrigConstantShift
0005  *  Concrete implementation of a DTTTrigBaseCorrection.
0006  *  Applies constant shift to tTrig values
0007  *
0008  *  $Revision: 1.1 $
0009  *  \author A. Vilela Pereira
0010  */
0011 
0012 #include "CalibMuon/DTCalibration/interface/DTTTrigBaseCorrection.h"
0013 #include "DataFormats/MuonDetId/interface/DTChamberId.h"
0014 #include "CondFormats/DataRecord/interface/DTTtrigRcd.h"
0015 #include "FWCore/Framework/interface/ConsumesCollector.h"
0016 
0017 #include <string>
0018 
0019 namespace edm {
0020   class ParameterSet;
0021 }
0022 
0023 class DTTtrig;
0024 
0025 namespace dtCalibration {
0026 
0027   class DTTTrigConstantShift : public DTTTrigBaseCorrection {
0028   public:
0029     // Constructor
0030     DTTTrigConstantShift(const edm::ParameterSet&, edm::ConsumesCollector);
0031 
0032     // Destructor
0033     ~DTTTrigConstantShift() override;
0034 
0035     void setES(const edm::EventSetup& setup) override;
0036     DTTTrigData correction(const DTSuperLayerId&) override;
0037 
0038   private:
0039     std::string calibChamber_;
0040     double value_;
0041 
0042     const DTTtrig* tTrigMap_;
0043     DTChamberId chosenChamberId_;
0044     edm::ESGetToken<DTTtrig, DTTtrigRcd> ttrigToken_;
0045   };
0046 
0047 }  // namespace dtCalibration
0048 #endif