1 #ifndef CondEx_Efficiency_H 2 #define CondEx_Efficiency_H 30 virtual float value(
float pt,
float eta)
const=0;
42 cutLow(cm), cutHigh(ch),
45 virtual float value(
float pt,
float)
const {
46 if ( pt<low)
return cutLow;
47 if ( pt>high)
return cutHigh;
48 return cutLow + (pt-low)/(high-low)*(cutHigh-cutLow);
62 cutLow(cmin), cutHigh(cmax),
67 if ( eta<low)
return cutLow;
68 if ( eta>high)
return cutHigh;
69 return cutLow + (eta-low)/(high-low)*(cutHigh-cutLow);
virtual float value(float pt, float eta) const =0
ParametricEfficiencyInEta(float cmin, float cmax, float el, float eh)
ParametricEfficiencyInPt()
virtual float value(float, float eta) const
Abs< T >::type abs(const T &t)
float operator()(float pt, float eta) const
#define COND_SERIALIZABLE
ParametricEfficiencyInEta()
virtual float value(float pt, float) const
virtual void initialize()
ParametricEfficiencyInPt(float cm, float ch, float el, float eh)