CMS 3D CMS Logo

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

#include <MuScleFitCorrector_Functions.h>

Inheritance diagram for resolutionFunction46< T >:
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 resolutionFunctionBase< T >
virtual double covPt1Pt2 (const double &pt1, const double &eta1, const double &pt2, const double &eta2, const T &parval)
 
virtual int parNum () const
 
virtual int parNum () const
 
 resolutionFunctionBase ()
 
 resolutionFunctionBase ()
 
virtual void setParameters (double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const T &parResol, const std::vector< int > &parResolOrder, const int muonType)
 This method is used to differentiate parameters among the different functions. More...
 
virtual void setParameters (double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const T &parResol, const std::vector< int > &parResolOrder, const std::vector< double > &parStep, const std::vector< double > &parMin, const std::vector< double > &parMax, const int muonType)
 
virtual double sigmaCotgTh (const double &pt, const double &eta, const T &parval)=0
 
virtual double sigmaPhi (const double &pt, const double &eta, const T &parval)=0
 
virtual double sigmaPtError (const double &pt, const double &eta, const T &parval, const T &parError)
 
virtual ~resolutionFunctionBase ()=0
 
virtual ~resolutionFunctionBase ()=0
 

Additional Inherited Members

- Protected Member Functions inherited from resolutionFunctionBase< T >
virtual void setPar (double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const T &parResol, const std::vector< int > &parResolOrder, const std::vector< ParameterSet > &parSet)
 
virtual void setPar (double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const T &parResol, const std::vector< int > &parResolOrder, double *thisStep, double *thisMini, double *thisMaxi, TString *thisParName)
 This method sets the parameters. More...
 
- Protected Attributes inherited from resolutionFunctionBase< T >
int parNum_
 

Detailed Description

template<class T>
class resolutionFunction46< T >

Definition at line 188 of file MuScleFitCorrector_Functions.h.

Constructor & Destructor Documentation

◆ resolutionFunction46()

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

Definition at line 190 of file MuScleFitCorrector_Functions.h.

190 { this->parNum_ = 13; }

References resolutionFunctionBase< T >::parNum_.

Member Function Documentation

◆ etaBin()

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

Definition at line 192 of file MuScleFitCorrector_Functions.h.

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

References PVValHelper::eta.

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

◆ sigmaPt()

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

Implements resolutionFunctionBase< T >.

Definition at line 220 of file MuScleFitCorrector_Functions.h.

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

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

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