CMS 3D CMS Logo

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)
 
float value (float, float eta) const override
 

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

Constructor & Destructor Documentation

◆ ParametricEfficiencyInEta() [1/2]

condex::ParametricEfficiencyInEta::ParametricEfficiencyInEta ( )
inline

◆ ParametricEfficiencyInEta() [2/2]

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

Member Function Documentation

◆ serialize()

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

◆ value()

float condex::ParametricEfficiencyInEta::value ( float  ,
float  eta 
) const
inlineoverrideprivatevirtual

Implements condex::Efficiency.

Definition at line 57 of file Efficiency.h.

References funct::abs(), cutHigh, cutLow, PVValHelper::eta, 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__(), average.Average::average(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), Mixins.UsingBlock::insertInto(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::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(), and Types.vstring::insertInto().

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 68 of file Efficiency.h.

◆ cond::serialization::access

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

Definition at line 68 of file Efficiency.h.

Member Data Documentation

◆ cutHigh

float condex::ParametricEfficiencyInEta::cutHigh
private

Definition at line 65 of file Efficiency.h.

Referenced by value().

◆ cutLow

float condex::ParametricEfficiencyInEta::cutLow
private

Definition at line 65 of file Efficiency.h.

Referenced by value().

◆ high

float condex::ParametricEfficiencyInEta::high
private

Definition at line 66 of file Efficiency.h.

Referenced by value().

◆ low

float condex::ParametricEfficiencyInEta::low
private

Definition at line 66 of file Efficiency.h.

Referenced by value().