CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

condex::ParametricEfficiencyInEta Class Reference

#include <Efficiency.h>

Inheritance diagram for condex::ParametricEfficiencyInEta:
condex::Efficiency

List of all members.

Public Member Functions

 ParametricEfficiencyInEta ()
 ParametricEfficiencyInEta (float cmin, float cmax, float el, float eh)

Private Member Functions

virtual float value (float, float eta) const

Private Attributes

float cutHigh
float cutLow
float high
float low

Detailed Description

Definition at line 47 of file Efficiency.h.


Constructor & Destructor Documentation

condex::ParametricEfficiencyInEta::ParametricEfficiencyInEta ( ) [inline]

Definition at line 49 of file Efficiency.h.

: cutLow(0), cutHigh(0), low(0), high(0) {}
condex::ParametricEfficiencyInEta::ParametricEfficiencyInEta ( float  cmin,
float  cmax,
float  el,
float  eh 
) [inline]

Definition at line 50 of file Efficiency.h.

                                                :
      cutLow(cmin), cutHigh(cmax),
      low(el), high(eh){}

Member Function Documentation

virtual float condex::ParametricEfficiencyInEta::value ( float  ,
float  eta 
) const [inline, private, virtual]

Implements condex::Efficiency.

Definition at line 55 of file Efficiency.h.

References abs, cutHigh, cutLow, high, and low.

                                                {
      eta = std::abs(eta);
      if ( eta<low) return cutLow;
      if ( eta>high) return cutHigh;
      return cutLow + (eta-low)/(high-low)*(cutHigh-cutLow);
    }

Member Data Documentation

Definition at line 61 of file Efficiency.h.

Referenced by value().

Definition at line 61 of file Efficiency.h.

Referenced by value().

Definition at line 62 of file Efficiency.h.

Referenced by value().

Definition at line 62 of file Efficiency.h.

Referenced by value().