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 float value(
float pt,
float)
const override {
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()
Abs< T >::type abs(const T &t)
float operator()(float pt, float eta) const
float value(float, float eta) const override
float value(float pt, float) const override
#define COND_SERIALIZABLE
ParametricEfficiencyInEta()
virtual void initialize()
ParametricEfficiencyInPt(float cm, float ch, float el, float eh)