CMS 3D CMS Logo

List of all members | Public Member Functions
heppy::resolutionFunction46< T > Class Template Reference

#include <MuScleFitCorrector_Functions.h>

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

Public Member Functions

int etaBin (const double &eta)
 
 resolutionFunction46 ()
 
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::resolutionFunction46< T >

Definition at line 190 of file MuScleFitCorrector_Functions.h.

Constructor & Destructor Documentation

◆ resolutionFunction46()

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

Definition at line 192 of file MuScleFitCorrector_Functions.h.

192 { this->parNum_ = 13; }

References heppy::resolutionFunctionBase< T >::parNum_.

Member Function Documentation

◆ etaBin()

template<class T >
int heppy::resolutionFunction46< T >::etaBin ( const double &  eta)
inline

Definition at line 194 of file MuScleFitCorrector_Functions.h.

194  {
195  // std::cout << "for eta = " << eta << ", bin = " << bin << std::endl;
196 
197  if (eta < -2.0)
198  return 1;
199  if (eta < -1.8)
200  return 2;
201  if (eta < -1.6)
202  return 3;
203  if (eta < -1.2)
204  return 4;
205  if (eta < -0.8)
206  return 5;
207  if (eta < 0.)
208  return 6;
209  if (eta < 0.8)
210  return 7;
211  if (eta < 1.2)
212  return 8;
213  if (eta < 1.6)
214  return 9;
215  if (eta < 1.8)
216  return 10;
217  if (eta < 2.0)
218  return 11;
219  return 12;
220  }

References PVValHelper::eta.

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

◆ sigmaPt()

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

Implements heppy::resolutionFunctionBase< T >.

Definition at line 222 of file MuScleFitCorrector_Functions.h.

222  {
223  return sqrt(pow(parval[0] * pt, 2) + pow(parval[etaBin(eta)], 2));
224  }

References PVValHelper::eta, heppy::resolutionFunction46< T >::etaBin(), funct::pow(), DiDispStaMuonMonitor_cfi::pt, and mathSSE::sqrt().

DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
heppy::resolutionFunction46::etaBin
int etaBin(const double &eta)
Definition: MuScleFitCorrector_Functions.h:194
heppy::resolutionFunctionBase::parNum_
int parNum_
Definition: MuScleFitCorrector_Functions.h:145
PVValHelper::eta
Definition: PVValidationHelpers.h:69
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29