CMS 3D CMS Logo

condex::ParametricEfficiencyInEta Class Reference

#include <CondFormats/Calibration/interface/Efficiency.h>

Inheritance diagram for condex::ParametricEfficiencyInEta:

condex::Efficiency

List of all members.

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


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.

00049 {}

condex::ParametricEfficiencyInEta::ParametricEfficiencyInEta ( float  cmin,
float  cmax,
float  el,
float  eh 
) [inline]

Definition at line 50 of file Efficiency.h.

00051                                                 :
00052       cutLow(cmin), cutHigh(cmax),
00053       low(el), high(eh){}
  private:


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 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     }


Member Data Documentation

float condex::ParametricEfficiencyInEta::cutHigh [private]

Definition at line 61 of file Efficiency.h.

Referenced by value().

float condex::ParametricEfficiencyInEta::cutLow [private]

Definition at line 61 of file Efficiency.h.

Referenced by value().

float condex::ParametricEfficiencyInEta::high [private]

Definition at line 62 of file Efficiency.h.

Referenced by value().

float condex::ParametricEfficiencyInEta::low [private]

Definition at line 62 of file Efficiency.h.

Referenced by value().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:36:51 2009 for CMSSW by  doxygen 1.5.4