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, 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 resolutionFunction46< T >

Definition at line 167 of file MuScleFitCorrector_Functions.h.

Constructor & Destructor Documentation

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

Definition at line 169 of file MuScleFitCorrector_Functions.h.

169 { this->parNum_ = 13; }

Member Function Documentation

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

Definition at line 171 of file MuScleFitCorrector_Functions.h.

172  {
173 
174  // std::cout << "for eta = " << eta << ", bin = " << bin << std::endl;
175 
176  if( eta < -2.0 ) return 1;
177  if( eta < -1.8 ) return 2;
178  if( eta < -1.6 ) return 3;
179  if( eta < -1.2 ) return 4;
180  if( eta < -0.8 ) return 5;
181  if( eta < 0. ) return 6;
182  if( eta < 0.8 ) return 7;
183  if( eta < 1.2 ) return 8;
184  if( eta < 1.6 ) return 9;
185  if( eta < 1.8 ) return 10;
186  if( eta < 2.0 ) return 11;
187  return 12;
188  }
template<class T >
virtual double resolutionFunction46< T >::sigmaPt ( const double &  pt,
const double &  eta,
const T parval 
)
inlinevirtual

Implements resolutionFunctionBase< T >.

Definition at line 190 of file MuScleFitCorrector_Functions.h.

References conversionPostprocessing_cfi::etaBin, funct::pow(), and mathSSE::sqrt().

191  {
192  return sqrt(pow(parval[0]*pt,2) + pow(parval[etaBin(eta)],2));
193  }
T sqrt(T t)
Definition: SSEVec.h:18
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40