CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes

resolutionFunctionBase< T > Class Template Reference

#include <Functions.h>

Inheritance diagram for resolutionFunctionBase< T >:
resolutionFunctionType1< T > resolutionFunctionType10< T > resolutionFunctionType11< T > resolutionFunctionType12< T > resolutionFunctionType13< T > resolutionFunctionType14< T > resolutionFunctionType15< T > resolutionFunctionType17< T > resolutionFunctionType18< T > resolutionFunctionType19< T > resolutionFunctionType20< T > resolutionFunctionType30< T > resolutionFunctionType6< T > resolutionFunctionType7< T > resolutionFunctionType8< T > resolutionFunctionType9< T >

List of all members.

Public Member Functions

virtual double covPt1Pt2 (const double &pt1, const double &eta1, const double &pt2, const double &eta2, const T &parval)
virtual int parNum () const
 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)=0
 This method is used to differentiate parameters among the different functions.
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 sigmaPt (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

Protected Member Functions

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.
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

int parNum_

Detailed Description

template<class T>
class resolutionFunctionBase< T >

Resolution functions.
Need to use templates to make it work with both array and std::vector<double>.

Definition at line 1522 of file Functions.h.


Constructor & Destructor Documentation

template<class T>
resolutionFunctionBase< T >::resolutionFunctionBase ( ) [inline]

Definition at line 1535 of file Functions.h.

{}
template<class T >
resolutionFunctionBase< T >::~resolutionFunctionBase ( ) [inline, pure virtual]

Definition at line 1571 of file Functions.h.

{ }  // defined even though it's pure virtual; should be faster this way.

Member Function Documentation

template<class T>
virtual double resolutionFunctionBase< T >::covPt1Pt2 ( const double &  pt1,
const double &  eta1,
const double &  pt2,
const double &  eta2,
const T parval 
) [inline, virtual]

Reimplemented in resolutionFunctionType30< T >.

Definition at line 1531 of file Functions.h.

Referenced by MuScleFitUtils::massResolution().

  {
    return 0.;
  }
template<class T>
virtual int resolutionFunctionBase< T >::parNum ( ) const [inline, virtual]

Definition at line 1539 of file Functions.h.

Referenced by MuScleFitUtils::minimizeLikelihood().

{ return parNum_; }
template<class T>
virtual void resolutionFunctionBase< T >::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 
) [inline, protected, virtual]
template<class T>
virtual void resolutionFunctionBase< T >::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 
) [inline, protected, virtual]

Definition at line 1555 of file Functions.h.

                                                                                                                              {
    if( int(parSet.size()) != this->parNum_ ) {
      std::cout << "Error: wrong number of parameter initializations = " << parSet.size() << ". Number of parameters is " << this->parNum_ << std::endl;
      exit(1);
    }
    for( int iPar=0; iPar<this->parNum_; ++iPar ) {
      Start[iPar] = parResol[iPar];
      Step[iPar] = parSet[iPar].step;
      Mini[iPar] = parSet[iPar].mini;
      Maxi[iPar] = parSet[iPar].maxi;
      ind[iPar] = parResolOrder[iPar];
      parname[iPar] = parSet[iPar].name;
    }
  }
template<class T>
virtual void resolutionFunctionBase< T >::setParameters ( double *  Start,
double *  Step,
double *  Mini,
double *  Maxi,
int *  ind,
TString *  parname,
const T parResol,
const std::vector< int > &  parResolOrder,
const int  muonType 
) [pure virtual]
template<class T>
virtual double resolutionFunctionBase< T >::sigmaCotgTh ( const double &  pt,
const double &  eta,
const T parval 
) [pure virtual]
template<class T>
virtual double resolutionFunctionBase< T >::sigmaPhi ( const double &  pt,
const double &  eta,
const T parval 
) [pure virtual]
template<class T>
virtual double resolutionFunctionBase< T >::sigmaPt ( const double &  pt,
const double &  eta,
const T parval 
) [pure virtual]
template<class T>
virtual double resolutionFunctionBase< T >::sigmaPtError ( const double &  pt,
const double &  eta,
const T parval,
const T parError 
) [inline, virtual]

Reimplemented in resolutionFunctionType30< T >.

Definition at line 1525 of file Functions.h.

Referenced by ErrorsPropagationAnalyzer::fillHistograms().

  {
    return 0.;
  }

Member Data Documentation

template<class T>
int resolutionFunctionBase< T >::parNum_ [protected]