CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions
heppy::resolutionFunction45< T > Class Template Reference

#include <MuScleFitCorrector_Functions.h>

Inheritance diagram for heppy::resolutionFunction45< T >:
heppy::resolutionFunctionBase< T >

Public Member Functions

double getGEO (const double &pt, const double &eta, const T &parval)
 
double getMS (const double &pt, const double &eta, const T &parval)
 
 resolutionFunction45 ()
 
virtual double sigmaPt (const double &pt, const double &eta, const T &parval)
 
- Public Member Functions inherited from heppy::resolutionFunctionBase< T >
virtual int parNum () const
 
 resolutionFunctionBase ()
 
virtual ~resolutionFunctionBase ()=0
 

Additional Inherited Members

- Protected Attributes inherited from heppy::resolutionFunctionBase< T >
int parNum_
 

Detailed Description

template<class T>
class heppy::resolutionFunction45< T >

Definition at line 152 of file MuScleFitCorrector_Functions.h.

Constructor & Destructor Documentation

◆ resolutionFunction45()

template<class T >
heppy::resolutionFunction45< T >::resolutionFunction45 ( )
inline

Member Function Documentation

◆ getGEO()

template<class T >
double heppy::resolutionFunction45< T >::getGEO ( const double &  pt,
const double &  eta,
const T parval 
)
inline

Definition at line 156 of file MuScleFitCorrector_Functions.h.

Referenced by heppy::resolutionFunction45< T >::sigmaPt().

156 { return parval[0]; }

◆ getMS()

template<class T >
double heppy::resolutionFunction45< T >::getMS ( const double &  pt,
const double &  eta,
const T parval 
)
inline

Definition at line 158 of file MuScleFitCorrector_Functions.h.

References PVValHelper::eta.

Referenced by heppy::resolutionFunction45< T >::sigmaPt().

158  {
159  if (eta < -2.0)
160  return (parval[1]);
161  if (eta < -1.8)
162  return (parval[2]);
163  if (eta < -1.6)
164  return (parval[3]);
165  if (eta < -1.2)
166  return (parval[4]);
167  if (eta < -0.8)
168  return (parval[5]);
169  if (eta < 0.)
170  return (parval[6]);
171  if (eta < 0.8)
172  return (parval[7]);
173  if (eta < 1.2)
174  return (parval[8]);
175  if (eta < 1.6)
176  return (parval[9]);
177  if (eta < 1.8)
178  return (parval[10]);
179  if (eta < 2.0)
180  return (parval[11]);
181  return (parval[12]);
182  }

◆ sigmaPt()

template<class T >
virtual double heppy::resolutionFunction45< T >::sigmaPt ( const double &  pt,
const double &  eta,
const T parval 
)
inlinevirtual

Implements heppy::resolutionFunctionBase< T >.

Definition at line 184 of file MuScleFitCorrector_Functions.h.

References PVValHelper::eta, heppy::resolutionFunction45< T >::getGEO(), heppy::resolutionFunction45< T >::getMS(), and DiDispStaMuonMonitor_cfi::pt.

184  {
185  return pt * getGEO(pt, eta, parval) + getMS(pt, eta, parval);
186  }
double getMS(const double &pt, const double &eta, const T &parval)
double getGEO(const double &pt, const double &eta, const T &parval)