CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 20 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().

6  : maxNrIter_(maxNrIter), maxDeltaS_(maxDeltaS), maxF_(maxF), mW_(mW), mTop_(mTop) {
7  fitter_ = new TKinFitter("TopKinFitter", "TopKinFitter");
12 }
void setMaxF(Double_t maxF)
Definition: TKinFitter.h:54
void setMaxDeltaS(Double_t maxDeltaS)
Definition: TKinFitter.h:52
int maxNrIter_
maximal allowed number of iterations to be used for the fit
Definition: TopKinFitter.h:49
double mW_
W mass value used for constraints.
Definition: TopKinFitter.h:55
double maxDeltaS_
maximal allowed chi2 (not normalized to degrees of freedom)
Definition: TopKinFitter.h:51
void setVerbosity(Int_t verbosity=1)
Definition: TKinFitter.cc:304
void setMaxNbIter(Int_t maxNbIter)
Definition: TKinFitter.h:48
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:47
double mTop_
top mass value used for constraints
Definition: TopKinFitter.h:57
double maxF_
maximal allowed distance from constraints
Definition: TopKinFitter.h:53
TopKinFitter::~TopKinFitter ( )

default destructor

Definition at line 15 of file TopKinFitter.cc.

References fitter_.

15 { delete fitter_; }
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:47

Member Function Documentation

int TopKinFitter::fitNrIter ( ) const
inline

return number of used iterations

Definition at line 35 of file TopKinFitter.h.

References fitter_, and TKinFitter::getNbIter().

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

return fit probability

Definition at line 37 of file TopKinFitter.h.

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

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

37 { return TMath::Prob(fitter_->getS(), fitter_->getNDF()); };
Double_t getS()
Definition: TKinFitter.cc:1066
Int_t getNDF()
Definition: TKinFitter.h:45
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:47
double TopKinFitter::fitS ( ) const
inline

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

Definition at line 33 of file TopKinFitter.h.

References fitter_, and TKinFitter::getS().

33 { return fitter_->getS(); };
Double_t getS()
Definition: TKinFitter.cc:1066
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:47
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
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_, and TKinFitter::setVerbosity().

void setVerbosity(Int_t verbosity=1)
Definition: TKinFitter.cc:304
tuple verbosityLevel
L1 selection andOrL1 = cms.bool( True ), l1Algorithms = cms.vstring(&quot;L1_ZeroBias_FirstCollidingBunch&quot;...
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:47

Member Data Documentation

TKinFitter* TopKinFitter::fitter_
protected
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().

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

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

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