CMS 3D CMS Logo

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

std::unique_ptr< 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 19 of file TopKinFitter.h.

Member Enumeration Documentation

◆ Param

supported parameterizations

Enumerator
kEMom 
kEtEtaPhi 
kEtThetaPhi 

Definition at line 22 of file TopKinFitter.h.

Constructor & Destructor Documentation

◆ TopKinFitter()

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_, and maxNrIter_.

7  fitter_ = std::make_unique<TKinFitter>("TopKinFitter", "TopKinFitter");
8  fitter_->setMaxNbIter(maxNrIter_);
9  fitter_->setMaxDeltaS(maxDeltaS_);
10  fitter_->setMaxF(maxF_);
11  fitter_->setVerbosity(0);
12 }
std::unique_ptr< TKinFitter > fitter_
kinematic fitter
Definition: TopKinFitter.h:49
int maxNrIter_
maximal allowed number of iterations to be used for the fit
Definition: TopKinFitter.h:51
double mW_
W mass value used for constraints.
Definition: TopKinFitter.h:57
double maxDeltaS_
maximal allowed chi2 (not normalized to degrees of freedom)
Definition: TopKinFitter.h:53
double mTop_
top mass value used for constraints
Definition: TopKinFitter.h:59
double maxF_
maximal allowed distance from constraints
Definition: TopKinFitter.h:55

◆ ~TopKinFitter()

TopKinFitter::~TopKinFitter ( )
default

default destructor

Member Function Documentation

◆ fitNrIter()

int TopKinFitter::fitNrIter ( ) const
inline

return number of used iterations

Definition at line 37 of file TopKinFitter.h.

References fitter_.

37 { return fitter_->getNbIter(); };
std::unique_ptr< TKinFitter > fitter_
kinematic fitter
Definition: TopKinFitter.h:49

◆ fitProb()

double TopKinFitter::fitProb ( ) const
inline

return fit probability

Definition at line 39 of file TopKinFitter.h.

References fitter_.

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

39 { return TMath::Prob(fitter_->getS(), fitter_->getNDF()); };
std::unique_ptr< TKinFitter > fitter_
kinematic fitter
Definition: TopKinFitter.h:49

◆ fitS()

double TopKinFitter::fitS ( ) const
inline

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

Definition at line 35 of file TopKinFitter.h.

References fitter_.

35 { return fitter_->getS(); };
std::unique_ptr< TKinFitter > fitter_
kinematic fitter
Definition: TopKinFitter.h:49

◆ param()

std::string TopKinFitter::param ( const Param param) const
protected

convert Param to human readable form

Definition at line 18 of file TopKinFitter.cc.

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

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

18  {
19  std::string parName;
20  switch (param) {
21  case kEMom:
22  parName = "EMom";
23  break;
24  case kEtEtaPhi:
25  parName = "EtEtaPhi";
26  break;
27  case kEtThetaPhi:
28  parName = "EtThetaPhi";
29  break;
30  }
31  return parName;
32 }
std::string param(const Param &param) const
convert Param to human readable form
Definition: TopKinFitter.cc:18

◆ setVerbosity()

void TopKinFitter::setVerbosity ( const int  verbosityLevel)
inline

allows to change the verbosity of the TKinFitter

Definition at line 41 of file TopKinFitter.h.

References fitter_, and HLTSiStripMonitoring_cff::verbosityLevel.

41 { fitter_->setVerbosity(verbosityLevel); };
std::unique_ptr< TKinFitter > fitter_
kinematic fitter
Definition: TopKinFitter.h:49
verbosityLevel
L1 selection andOrL1 = cms.bool( True ), l1Algorithms = cms.vstring("L1_ZeroBias_FirstCollidingBunch"...

Member Data Documentation

◆ fitter_

std::unique_ptr<TKinFitter> TopKinFitter::fitter_
protected

◆ maxDeltaS_

double TopKinFitter::maxDeltaS_
protected

maximal allowed chi2 (not normalized to degrees of freedom)

Definition at line 53 of file TopKinFitter.h.

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

◆ maxF_

double TopKinFitter::maxF_
protected

maximal allowed distance from constraints

Definition at line 55 of file TopKinFitter.h.

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

◆ maxNrIter_

int TopKinFitter::maxNrIter_
protected

maximal allowed number of iterations to be used for the fit

Definition at line 51 of file TopKinFitter.h.

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

◆ mTop_

double TopKinFitter::mTop_
protected

◆ mW_

double TopKinFitter::mW_
protected