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

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
virtual float value (float, float eta) const
 

Private Attributes

float cutHigh
 
float cutLow
 
float high
 
float low
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 57 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 60 of file Efficiency.h.

Member Function Documentation

template<class Archive >
void condex::ParametricEfficiencyInEta::serialize ( Archive &  ar,
const unsigned int  version 
)
private
virtual float condex::ParametricEfficiencyInEta::value ( float  ,
float  eta 
) const
inlineprivatevirtual

Implements condex::Efficiency.

Definition at line 65 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().

65  {
66  eta = std::abs(eta);
67  if ( eta<low) return cutLow;
68  if ( eta>high) return cutHigh;
69  return cutLow + (eta-low)/(high-low)*(cutHigh-cutLow);
70  }
T eta() const
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 75 of file Efficiency.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 75 of file Efficiency.h.

Member Data Documentation

float condex::ParametricEfficiencyInEta::cutHigh
private

Definition at line 71 of file Efficiency.h.

Referenced by value().

float condex::ParametricEfficiencyInEta::cutLow
private

Definition at line 71 of file Efficiency.h.

Referenced by value().

float condex::ParametricEfficiencyInEta::high
private

Definition at line 72 of file Efficiency.h.

Referenced by value().

float condex::ParametricEfficiencyInEta::low
private

Definition at line 72 of file Efficiency.h.

Referenced by value().