#include <CondFormats/Calibration/interface/Efficiency.h>
Public Member Functions | |
ParametricEfficiencyInEta (float cmin, float cmax, float el, float eh) | |
ParametricEfficiencyInEta () | |
Private Member Functions | |
virtual float | value (float, float eta) const |
Private Attributes | |
float | cutHigh |
float | cutLow |
float | high |
float | low |
Definition at line 47 of file Efficiency.h.
condex::ParametricEfficiencyInEta::ParametricEfficiencyInEta | ( | ) | [inline] |
condex::ParametricEfficiencyInEta::ParametricEfficiencyInEta | ( | float | cmin, | |
float | cmax, | |||
float | el, | |||
float | eh | |||
) | [inline] |
virtual float condex::ParametricEfficiencyInEta::value | ( | float | , | |
float | eta | |||
) | const [inline, private, virtual] |
Implements condex::Efficiency.
Definition at line 55 of file Efficiency.h.
References funct::abs(), cutHigh, cutLow, high, and low.
00055 { 00056 eta = std::abs(eta); 00057 if ( eta<low) return cutLow; 00058 if ( eta>high) return cutHigh; 00059 return cutLow + (eta-low)/(high-low)*(cutHigh-cutLow); 00060 }
float condex::ParametricEfficiencyInEta::cutHigh [private] |
float condex::ParametricEfficiencyInEta::cutLow [private] |
float condex::ParametricEfficiencyInEta::high [private] |
float condex::ParametricEfficiencyInEta::low [private] |