CMS 3D CMS Logo

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

#include <MuScleFitCorrector_Functions.h>

Inheritance diagram for resolutionFunction45< T >:
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 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, double *thisStep, double *thisMini, double *thisMaxi, TString *thisParName)
 This method sets the parameters. More...
 
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)
 
- Protected Attributes inherited from resolutionFunctionBase< T >
int parNum_
 

Detailed Description

template<class T>
class resolutionFunction45< T >

Definition at line 136 of file MuScleFitCorrector_Functions.h.

Constructor & Destructor Documentation

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

Definition at line 138 of file MuScleFitCorrector_Functions.h.

References resolutionFunctionBase< T >::parNum_.

138 { this->parNum_ = 13; }

Member Function Documentation

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

Definition at line 140 of file MuScleFitCorrector_Functions.h.

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

140  {
141  return parval[0];
142  }
template<class T >
double resolutionFunction45< T >::getMS ( const double &  pt,
const double &  eta,
const T parval 
)
inline

Definition at line 144 of file MuScleFitCorrector_Functions.h.

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

144  {
145  if( eta < -2.0 ) return( parval[1] );
146  if( eta < -1.8 ) return( parval[2] );
147  if( eta < -1.6 ) return( parval[3] );
148  if( eta < -1.2 ) return( parval[4] );
149  if( eta < -0.8 ) return( parval[5] );
150  if( eta < 0. ) return( parval[6] );
151  if( eta < 0.8 ) return( parval[7] );
152  if( eta < 1.2 ) return( parval[8] );
153  if( eta < 1.6 ) return( parval[9] );
154  if( eta < 1.8 ) return( parval[10] );
155  if( eta < 2.0 ) return( parval[11] );
156  return( parval[12] );
157  }
template<class T >
virtual double resolutionFunction45< T >::sigmaPt ( const double &  pt,
const double &  eta,
const T parval 
)
inlinevirtual

Implements resolutionFunctionBase< T >.

Definition at line 159 of file MuScleFitCorrector_Functions.h.

References resolutionFunction45< T >::getGEO(), and resolutionFunction45< T >::getMS().

160  {
161  return pt*getGEO(pt,eta,parval) + getMS(pt,eta,parval);
162  }
double getMS(const double &pt, const double &eta, const T &parval)
double getGEO(const double &pt, const double &eta, const T &parval)