CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TopKinFitter.cc
Go to the documentation of this file.
2 
4 TopKinFitter::TopKinFitter(const int maxNrIter, const double maxDeltaS, const double maxF,
5  const double mW, const double mTop):
6  maxNrIter_(maxNrIter), maxDeltaS_(maxDeltaS), maxF_(maxF), mW_(mW), mTop_(mTop)
7 {
8  fitter_ = new TKinFitter("TopKinFitter", "TopKinFitter");
13 }
14 
17 {
18  delete fitter_;
19 }
20 
22 std::string
23 TopKinFitter::param(const Param& param) const
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 setMaxF(Double_t maxF)
Definition: TKinFitter.h:43
Param
supported parameterizations
Definition: TopKinFitter.h:22
~TopKinFitter()
default destructor
Definition: TopKinFitter.cc:16
void setMaxDeltaS(Double_t maxDeltaS)
Definition: TKinFitter.h:41
std::string param(const Param &param) const
convert Param to human readable form
Definition: TopKinFitter.cc:23
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
Definition: TopKinFitter.cc:4
int maxNrIter_
maximal allowed number of iterations to be used for the fit
Definition: TopKinFitter.h:46
double maxDeltaS_
maximal allowed chi2 (not normalized to degrees of freedom)
Definition: TopKinFitter.h:48
void setVerbosity(Int_t verbosity=1)
Definition: TKinFitter.cc:294
void setMaxNbIter(Int_t maxNbIter)
Definition: TKinFitter.h:37
TKinFitter * fitter_
Definition: TopKinFitter.h:44
double maxF_
maximal allowed distance from constraints
Definition: TopKinFitter.h:50