CMS 3D CMS Logo

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

#include <Functions.h>

Inheritance diagram for scaleFunctionType17< T >:
scaleFunctionBase< T >

Public Member Functions

virtual void resetParameters (std::vector< double > *scaleVec) const
 This method is used to reset the scale parameters to neutral values (useful for iterations > 0) More...
 
virtual double scale (const double &pt, const double &eta, const double &phi, const int chg, const T &parScale) const
 
 scaleFunctionType17 ()
 
virtual void setParameters (double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const T &parScale, const std::vector< int > &parScaleOrder, const int muonType)
 This method is used to differentiate parameters among the different functions. More...
 
- Public Member Functions inherited from scaleFunctionBase< T >
virtual int parNum () const
 
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 ~scaleFunctionBase ()=0
 

Additional Inherited Members

- Protected Member Functions inherited from scaleFunctionBase< T >
virtual void setPar (double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const T &parScale, const std::vector< int > &parScaleOrder, 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 scaleFunctionBase< T >
int parNum_
 

Detailed Description

template<class T>
class scaleFunctionType17< T >

Definition at line 778 of file Functions.h.

Constructor & Destructor Documentation

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

Definition at line 780 of file Functions.h.

References scaleFunctionBase< T >::parNum_.

780 { this->parNum_ = 4; }

Member Function Documentation

template<class T >
virtual void scaleFunctionType17< T >::resetParameters ( std::vector< double > *  scaleVec) const
inlinevirtual

This method is used to reset the scale parameters to neutral values (useful for iterations > 0)

Reimplemented from scaleFunctionBase< T >.

Definition at line 786 of file Functions.h.

References i, and scaleFunctionBase< T >::parNum_.

786  {
787  scaleVec->push_back(1);
788  for( int i=1; i<this->parNum_; ++i ) {
789  scaleVec->push_back(0);
790  }
791  }
int i
Definition: DBlmapReader.cc:9
template<class T >
virtual double scaleFunctionType17< T >::scale ( const double &  pt,
const double &  eta,
const double &  phi,
const int  chg,
const T parScale 
) const
inlinevirtual

Implements scaleFunctionBase< T >.

Definition at line 781 of file Functions.h.

781  {
782  return (parScale[0]*std::fabs(eta)+ parScale[1]*eta*eta + pt/(parScale[2]*pt + parScale[3]))*pt;
783  }
T eta() const
template<class T >
virtual void scaleFunctionType17< T >::setParameters ( double *  Start,
double *  Step,
double *  Mini,
double *  Maxi,
int *  ind,
TString *  parname,
const T parScale,
const std::vector< int > &  parScaleOrder,
const int  muonType 
)
inlinevirtual

This method is used to differentiate parameters among the different functions.

Implements scaleFunctionBase< T >.

Definition at line 792 of file Functions.h.

References scaleFunctionBase< T >::setPar().

792  {
793  double thisStep[] = {0.00000001, 0.000000001, 0.00000001, 0.00000001};
794  TString thisParName[] = {"linearEta", "parabEta", "coeffPt", "coeffOverPt"};
795  if( muonType == 1 ) {
796  double thisMini[] = {30.,
797  0.9, 0.9,
798  -0.3};
799  double thisMaxi[] = {50.,
800  1.1, 1.1,
801  0.3};
802  this->setPar( Start, Step, Mini, Maxi, ind, parname, parScale, parScaleOrder, thisStep, thisMini, thisMaxi, thisParName );
803  } else {
804  double thisMini[] = {-0.000001, -0.000001, 0.8, -0.001};
805  double thisMaxi[] = { 0.01, 0.005, 1.2, 0.001};
806  this->setPar( Start, Step, Mini, Maxi, ind, parname, parScale, parScaleOrder, thisStep, thisMini, thisMaxi, thisParName );
807  }
808  }
virtual void setPar(double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const T &parScale, const std::vector< int > &parScaleOrder, double *thisStep, double *thisMini, double *thisMaxi, TString *thisParName)
This method sets the parameters.
Definition: Functions.h:70