DTTTrigBaseCorrection

DTTTrigData

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
#ifndef CalibMuon_DTTTrigBaseCorrection_H
#define CalibMuon_DTTTrigBaseCorrection_H

/** \class DTTTrigBaseCorrection
 *  Base class to define the tTrig corrections for entering in DB
 *
 *  \author A. Vilela Pereira
 */

namespace edm {
  class EventSetup;
  class ParameterSet;
}  // namespace edm

class DTSuperLayerId;

namespace dtCalibration {

  struct DTTTrigData {
  public:
    // Constructor
    DTTTrigData(double ttrig_mean, double ttrig_sigma, double kFact)
        : mean(ttrig_mean), sigma(ttrig_sigma), kFactor(kFact) {}

    double mean;
    double sigma;
    double kFactor;
  };

  class DTTTrigBaseCorrection {
  public:
    // Constructor
    DTTTrigBaseCorrection();
    // Destructor
    virtual ~DTTTrigBaseCorrection();

    virtual void setES(const edm::EventSetup& setup) = 0;
    virtual DTTTrigData correction(const DTSuperLayerId&) = 0;
  };

}  // namespace dtCalibration
#endif