CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
TopKinFitter Class Reference

#include <TopKinFitter.h>

Inheritance diagram for TopKinFitter:
StKinFitter TtFullHadKinFitter TtSemiLepKinFitter

Public Types

enum  Param { kEMom, kEtEtaPhi, kEtThetaPhi }
 supported parameterizations More...
 

Public Member Functions

int fitNrIter () const
 return number of used iterations More...
 
double fitProb () const
 return fit probability More...
 
double fitS () const
 return chi2 of fit (not normalized to degrees of freedom) More...
 
void setVerbosity (const int verbosityLevel)
 allows to change the verbosity of the TKinFitter More...
 
 TopKinFitter (const int maxNrIter=200, const double maxDeltaS=5e-5, const double maxF=1e-4, const double mW=80.4, const double mTop=173.)
 default constructor More...
 
 ~TopKinFitter ()
 default destructor More...
 

Protected Member Functions

std::string param (const Param &param) const
 convert Param to human readable form More...
 

Protected Attributes

TKinFitterfitter_
 kinematic fitter More...
 
double maxDeltaS_
 maximal allowed chi2 (not normalized to degrees of freedom) More...
 
double maxF_
 maximal allowed distance from constraints More...
 
int maxNrIter_
 maximal allowed number of iterations to be used for the fit More...
 
double mTop_
 top mass value used for constraints More...
 
double mW_
 W mass value used for constraints. More...
 

Detailed Description

Definition at line 17 of file TopKinFitter.h.

Member Enumeration Documentation

supported parameterizations

Enumerator
kEMom 
kEtEtaPhi 
kEtThetaPhi 

Definition at line 22 of file TopKinFitter.h.

Constructor & Destructor Documentation

TopKinFitter::TopKinFitter ( const int  maxNrIter = 200,
const double  maxDeltaS = 5e-5,
const double  maxF = 1e-4,
const double  mW = 80.4,
const double  mTop = 173. 
)
explicit

default constructor

default configuration is: max iterations = 200, max deltaS = 5e-5, maxF = 1e-4

Definition at line 4 of file TopKinFitter.cc.

References fitter_, maxDeltaS_, maxF_, maxNrIter_, TKinFitter::setMaxDeltaS(), TKinFitter::setMaxF(), TKinFitter::setMaxNbIter(), and TKinFitter::setVerbosity().

5  :
6  maxNrIter_(maxNrIter), maxDeltaS_(maxDeltaS), maxF_(maxF), mW_(mW), mTop_(mTop)
7 {
8  fitter_ = new TKinFitter("TopKinFitter", "TopKinFitter");
13 }
void setMaxF(Double_t maxF)
Definition: TKinFitter.h:44
void setMaxDeltaS(Double_t maxDeltaS)
Definition: TKinFitter.h:42
int maxNrIter_
maximal allowed number of iterations to be used for the fit
Definition: TopKinFitter.h:48
double mW_
W mass value used for constraints.
Definition: TopKinFitter.h:54
double maxDeltaS_
maximal allowed chi2 (not normalized to degrees of freedom)
Definition: TopKinFitter.h:50
void setVerbosity(Int_t verbosity=1)
Definition: TKinFitter.cc:294
void setMaxNbIter(Int_t maxNbIter)
Definition: TKinFitter.h:38
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:46
double mTop_
top mass value used for constraints
Definition: TopKinFitter.h:56
double maxF_
maximal allowed distance from constraints
Definition: TopKinFitter.h:52
TopKinFitter::~TopKinFitter ( )

default destructor

Definition at line 16 of file TopKinFitter.cc.

References fitter_.

17 {
18  delete fitter_;
19 }
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:46

Member Function Documentation

int TopKinFitter::fitNrIter ( ) const
inline

return number of used iterations

Definition at line 34 of file TopKinFitter.h.

References fitter_, and TKinFitter::getNbIter().

34 { return fitter_->getNbIter(); };
Int_t getNbIter()
Definition: TKinFitter.h:40
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:46
double TopKinFitter::fitProb ( ) const
inline

return fit probability

Definition at line 36 of file TopKinFitter.h.

References fitter_, TKinFitter::getNDF(), and TKinFitter::getS().

Referenced by StKinFitter::addKinFitInfo(), TtFullHadKinFitter::addKinFitInfo(), and TtSemiLepKinFitter::addKinFitInfo().

36 { return TMath::Prob(fitter_->getS(), fitter_->getNDF()); };
Double_t getS()
Definition: TKinFitter.cc:1108
Int_t getNDF()
Definition: TKinFitter.h:35
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:46
double TopKinFitter::fitS ( ) const
inline

return chi2 of fit (not normalized to degrees of freedom)

Definition at line 32 of file TopKinFitter.h.

References fitter_, and TKinFitter::getS().

32 { return fitter_->getS(); };
Double_t getS()
Definition: TKinFitter.cc:1108
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:46
std::string TopKinFitter::param ( const Param param) const
protected

convert Param to human readable form

Definition at line 23 of file TopKinFitter.cc.

References kEMom, kEtEtaPhi, kEtThetaPhi, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by TtFullHadKinFitter::printSetup(), TtSemiLepKinFitter::printSetup(), and StKinFitter::setupFitter().

24 {
25  std::string parName;
26  switch(param){
27  case kEMom : parName="EMom"; break;
28  case kEtEtaPhi : parName="EtEtaPhi"; break;
29  case kEtThetaPhi : parName="EtThetaPhi"; break;
30  }
31  return parName;
32 }
void TopKinFitter::setVerbosity ( const int  verbosityLevel)
inline

allows to change the verbosity of the TKinFitter

Definition at line 38 of file TopKinFitter.h.

References fitter_, and TKinFitter::setVerbosity().

38 { fitter_->setVerbosity(verbosityLevel); };
void setVerbosity(Int_t verbosity=1)
Definition: TKinFitter.cc:294
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:46

Member Data Documentation

TKinFitter* TopKinFitter::fitter_
protected
double TopKinFitter::maxDeltaS_
protected

maximal allowed chi2 (not normalized to degrees of freedom)

Definition at line 50 of file TopKinFitter.h.

Referenced by TtFullHadKinFitter::printSetup(), TtSemiLepKinFitter::printSetup(), StKinFitter::setupFitter(), and TopKinFitter().

double TopKinFitter::maxF_
protected

maximal allowed distance from constraints

Definition at line 52 of file TopKinFitter.h.

Referenced by TtFullHadKinFitter::printSetup(), TtSemiLepKinFitter::printSetup(), StKinFitter::setupFitter(), and TopKinFitter().

int TopKinFitter::maxNrIter_
protected

maximal allowed number of iterations to be used for the fit

Definition at line 48 of file TopKinFitter.h.

Referenced by TtFullHadKinFitter::printSetup(), TtSemiLepKinFitter::printSetup(), StKinFitter::setupFitter(), and TopKinFitter().

double TopKinFitter::mTop_
protected
double TopKinFitter::mW_
protected