CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

TopKinFitter Class Reference

#include <TopKinFitter.h>

Inheritance diagram for TopKinFitter:
StKinFitter TtFullHadKinFitter TtSemiLepKinFitter

List of all members.

Public Types

enum  Param { kEMom, kEtEtaPhi, kEtThetaPhi }
 

supported parameterizations

More...

Public Member Functions

int fitNrIter () const
 return number of used iterations
double fitProb () const
 return fit probability
double fitS () const
 return chi2 of fit (not normalized to degrees of freedom)
 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
 ~TopKinFitter ()
 default destructor

Protected Member Functions

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

Protected Attributes

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

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

                                                              : 
  maxNrIter_(maxNrIter), maxDeltaS_(maxDeltaS), maxF_(maxF), mW_(mW), mTop_(mTop)
{
  fitter_ = new TKinFitter("TopKinFitter", "TopKinFitter");
  fitter_->setMaxNbIter(maxNrIter_);
  fitter_->setMaxDeltaS(maxDeltaS_);
  fitter_->setMaxF(maxF_);
  fitter_->setVerbosity(0);
}
TopKinFitter::~TopKinFitter ( )

default destructor

Definition at line 16 of file TopKinFitter.cc.

References fitter_.

{
  delete fitter_;
}

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

{ return fitter_->getNbIter(); };
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 TtFullHadKinFitter::addKinFitInfo(), TtSemiLepKinFitter::addKinFitInfo(), and StKinFitter::addKinFitInfo().

{ return TMath::Prob(fitter_->getS(), fitter_->getNDF()); };
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().

{ return fitter_->getS(); };
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, and kEtThetaPhi.

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

{
  std::string parName;
  switch(param){
  case kEMom       : parName="EMom";       break;
  case kEtEtaPhi   : parName="EtEtaPhi";   break;
  case kEtThetaPhi : parName="EtThetaPhi"; break;    
  }
  return parName;
}

Member Data Documentation

double TopKinFitter::maxDeltaS_ [protected]

maximal allowed chi2 (not normalized to degrees of freedom)

Definition at line 48 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 50 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 46 of file TopKinFitter.h.

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

double TopKinFitter::mTop_ [protected]
double TopKinFitter::mW_ [protected]