CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
condex::ParametricEfficiencyInEta Class Reference

#include <Efficiency.h>

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

Public Member Functions

 ParametricEfficiencyInEta ()
 
 ParametricEfficiencyInEta (float cmin, float cmax, float el, float eh)
 
- Public Member Functions inherited from condex::Efficiency
 Efficiency ()
 
virtual void initialize ()
 
float operator() (float pt, float eta) const
 
virtual ~Efficiency ()
 

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 51 of file Efficiency.h.

Constructor & Destructor Documentation

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

Definition at line 54 of file Efficiency.h.

Member Function Documentation

virtual float condex::ParametricEfficiencyInEta::value ( float  ,
float  eta 
) const
inlineprivatevirtual

Implements condex::Efficiency.

Definition at line 59 of file Efficiency.h.

References funct::abs(), cutHigh, cutLow, high, and low.

Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Mixins.UsingBlock::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), and Vispa.Views.PropertyView.FileProperty::labelDoubleClicked().

59  {
60  eta = std::abs(eta);
61  if ( eta<low) return cutLow;
62  if ( eta>high) return cutHigh;
63  return cutLow + (eta-low)/(high-low)*(cutHigh-cutLow);
64  }
T eta() const
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

Member Data Documentation

float condex::ParametricEfficiencyInEta::cutHigh
private

Definition at line 65 of file Efficiency.h.

Referenced by value().

float condex::ParametricEfficiencyInEta::cutLow
private

Definition at line 65 of file Efficiency.h.

Referenced by value().

float condex::ParametricEfficiencyInEta::high
private

Definition at line 66 of file Efficiency.h.

Referenced by value().

float condex::ParametricEfficiencyInEta::low
private

Definition at line 66 of file Efficiency.h.

Referenced by value().