CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

condex::ParametricEfficiencyInPt Class Reference

#include <Efficiency.h>

Inheritance diagram for condex::ParametricEfficiencyInPt:
condex::Efficiency

List of all members.

Public Member Functions

 ParametricEfficiencyInPt ()
 ParametricEfficiencyInPt (float cm, float ch, float el, float eh)

Private Member Functions

virtual float value (float pt, float) const

Private Attributes

float cutHigh
float cutLow
float high
float low

Detailed Description

Definition at line 29 of file Efficiency.h.


Constructor & Destructor Documentation

condex::ParametricEfficiencyInPt::ParametricEfficiencyInPt ( ) [inline]

Definition at line 31 of file Efficiency.h.

: cutLow(0), cutHigh(0), low(0), high(0){}
condex::ParametricEfficiencyInPt::ParametricEfficiencyInPt ( float  cm,
float  ch,
float  el,
float  eh 
) [inline]

Definition at line 32 of file Efficiency.h.

                                                :
      cutLow(cm), cutHigh(ch),
      low(el), high(eh){}

Member Function Documentation

virtual float condex::ParametricEfficiencyInPt::value ( float  pt,
float   
) const [inline, private, virtual]

Implements condex::Efficiency.

Definition at line 37 of file Efficiency.h.

References cutHigh, cutLow, high, and low.

                                               {
      if ( pt<low) return cutLow;
      if ( pt>high) return cutHigh;
      return cutLow + (pt-low)/(high-low)*(cutHigh-cutLow);
    }

Member Data Documentation

Definition at line 42 of file Efficiency.h.

Referenced by value().

Definition at line 42 of file Efficiency.h.

Referenced by value().

Definition at line 43 of file Efficiency.h.

Referenced by value().

Definition at line 43 of file Efficiency.h.

Referenced by value().