CMS 3D CMS Logo

TopKinFitter.cc
Go to the documentation of this file.
2 
5  const int maxNrIter, const double maxDeltaS, const double maxF, const double mW, const double mTop)
6  : maxNrIter_(maxNrIter), maxDeltaS_(maxDeltaS), maxF_(maxF), mW_(mW), mTop_(mTop) {
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 }
13 
15 TopKinFitter::~TopKinFitter() = default;
16 
18 std::string TopKinFitter::param(const Param& param) const {
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
Param
supported parameterizations
Definition: TopKinFitter.h:22
~TopKinFitter()
default destructor
std::unique_ptr< TKinFitter > fitter_
kinematic fitter
Definition: TopKinFitter.h:49
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:51
double maxDeltaS_
maximal allowed chi2 (not normalized to degrees of freedom)
Definition: TopKinFitter.h:53
double maxF_
maximal allowed distance from constraints
Definition: TopKinFitter.h:55