Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:39

0001 #ifndef CalibMuon_DTTTrigBaseCorrection_H
0002 #define CalibMuon_DTTTrigBaseCorrection_H
0003 
0004 /** \class DTTTrigBaseCorrection
0005  *  Base class to define the tTrig corrections for entering in DB
0006  *
0007  *  \author A. Vilela Pereira
0008  */
0009 
0010 namespace edm {
0011   class EventSetup;
0012   class ParameterSet;
0013 }  // namespace edm
0014 
0015 class DTSuperLayerId;
0016 
0017 namespace dtCalibration {
0018 
0019   struct DTTTrigData {
0020   public:
0021     // Constructor
0022     DTTTrigData(double ttrig_mean, double ttrig_sigma, double kFact)
0023         : mean(ttrig_mean), sigma(ttrig_sigma), kFactor(kFact) {}
0024 
0025     double mean;
0026     double sigma;
0027     double kFactor;
0028   };
0029 
0030   class DTTTrigBaseCorrection {
0031   public:
0032     // Constructor
0033     DTTTrigBaseCorrection();
0034     // Destructor
0035     virtual ~DTTTrigBaseCorrection();
0036 
0037     virtual void setES(const edm::EventSetup& setup) = 0;
0038     virtual DTTTrigData correction(const DTSuperLayerId&) = 0;
0039   };
0040 
0041 }  // namespace dtCalibration
0042 #endif