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

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

◆ Param

supported parameterizations

Enumerator
kEMom 
kEtEtaPhi 
kEtThetaPhi 

Definition at line 20 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.

7  fitter_ = new TKinFitter("TopKinFitter", "TopKinFitter");
12 }

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

◆ ~TopKinFitter()

TopKinFitter::~TopKinFitter ( )

default destructor

Definition at line 15 of file TopKinFitter.cc.

15 { delete fitter_; }

References fitter_.

Member Function Documentation

◆ fitNrIter()

int TopKinFitter::fitNrIter ( ) const
inline

return number of used iterations

Definition at line 35 of file TopKinFitter.h.

35 { return fitter_->getNbIter(); };

References fitter_, and TKinFitter::getNbIter().

◆ fitProb()

double TopKinFitter::fitProb ( ) const
inline

return fit probability

Definition at line 37 of file TopKinFitter.h.

37 { return TMath::Prob(fitter_->getS(), fitter_->getNDF()); };

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

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

◆ fitS()

double TopKinFitter::fitS ( ) const
inline

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

Definition at line 33 of file TopKinFitter.h.

33 { return fitter_->getS(); };

References fitter_, and TKinFitter::getS().

◆ param()

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

convert Param to human readable form

Definition at line 18 of file TopKinFitter.cc.

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 }

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

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

◆ setVerbosity()

void TopKinFitter::setVerbosity ( const int  verbosityLevel)
inline

allows to change the verbosity of the TKinFitter

Definition at line 39 of file TopKinFitter.h.

References fitter_, TKinFitter::setVerbosity(), and HLTSiStripMonitoring_cff::verbosityLevel.

Member Data Documentation

◆ fitter_

TKinFitter* TopKinFitter::fitter_
protected

◆ maxDeltaS_

double TopKinFitter::maxDeltaS_
protected

maximal allowed chi2 (not normalized to degrees of freedom)

Definition at line 51 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 53 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 49 of file TopKinFitter.h.

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

◆ mTop_

double TopKinFitter::mTop_
protected

◆ mW_

double TopKinFitter::mW_
protected
TopKinFitter::kEtEtaPhi
Definition: TopKinFitter.h:20
TKinFitter::setMaxF
void setMaxF(Double_t maxF)
Definition: TKinFitter.h:54
TKinFitter::getNbIter
Int_t getNbIter()
Definition: TKinFitter.h:50
TopKinFitter::fitter_
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:47
TopKinFitter::maxNrIter_
int maxNrIter_
maximal allowed number of iterations to be used for the fit
Definition: TopKinFitter.h:49
StEvtSolProducer_cfi.maxNrIter
maxNrIter
Definition: StEvtSolProducer_cfi.py:24
TopKinFitter::param
std::string param(const Param &param) const
convert Param to human readable form
Definition: TopKinFitter.cc:18
TKinFitter
Definition: TKinFitter.h:13
TopKinFitter::kEMom
Definition: TopKinFitter.h:20
HLTSiStripMonitoring_cff.verbosityLevel
verbosityLevel
L1 selection andOrL1 = cms.bool( True ), l1Algorithms = cms.vstring("L1_ZeroBias_FirstCollidingBunch"...
Definition: HLTSiStripMonitoring_cff.py:261
TopKinFitter::mW_
double mW_
W mass value used for constraints.
Definition: TopKinFitter.h:55
TtSemiLepHitFitProducer_Electrons_cfi.mTop
mTop
Definition: TtSemiLepHitFitProducer_Electrons_cfi.py:36
TKinFitter::getS
Double_t getS()
Definition: TKinFitter.cc:1066
TopKinFitter::maxDeltaS_
double maxDeltaS_
maximal allowed chi2 (not normalized to degrees of freedom)
Definition: TopKinFitter.h:51
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TKinFitter::setVerbosity
void setVerbosity(Int_t verbosity=1)
Definition: TKinFitter.cc:304
TtSemiLepHitFitProducer_Electrons_cfi.mW
mW
Definition: TtSemiLepHitFitProducer_Electrons_cfi.py:35
TKinFitter::setMaxNbIter
void setMaxNbIter(Int_t maxNbIter)
Definition: TKinFitter.h:48
TKinFitter::getNDF
Int_t getNDF()
Definition: TKinFitter.h:45
TopKinFitter::kEtThetaPhi
Definition: TopKinFitter.h:20
StEvtSolProducer_cfi.maxDeltaS
maxDeltaS
Definition: StEvtSolProducer_cfi.py:25
TopKinFitter::mTop_
double mTop_
top mass value used for constraints
Definition: TopKinFitter.h:57
TopKinFitter::maxF_
double maxF_
maximal allowed distance from constraints
Definition: TopKinFitter.h:53
TKinFitter::setMaxDeltaS
void setMaxDeltaS(Double_t maxDeltaS)
Definition: TKinFitter.h:52
StEvtSolProducer_cfi.maxF
maxF
Definition: StEvtSolProducer_cfi.py:26