CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TopKinFitter.h
Go to the documentation of this file.
1 #ifndef TopQuarkAnalysis_TopKinFitter_TopKinFitter_h
2 #define TopQuarkAnalysis_TopKinFitter_TopKinFitter_h
3 
4 #include <memory>
5 
6 #include "TMath.h"
7 
9 
10 /*
11  \class TopKinFitter TopKinFitter.h "TopQuarkAnalysis/TopKinFitter/interface/TopKinFitter.h"
12 
13  \brief one line description to be added here...
14 
15  text to be added here...
16 
17 **/
18 
19 class TopKinFitter {
20 public:
23 
24 public:
26  explicit TopKinFitter(const int maxNrIter = 200,
27  const double maxDeltaS = 5e-5,
28  const double maxF = 1e-4,
29  const double mW = 80.4,
30  const double mTop = 173.);
32  ~TopKinFitter();
33 
35  double fitS() const { return fitter_->getS(); };
37  int fitNrIter() const { return fitter_->getNbIter(); };
39  double fitProb() const { return TMath::Prob(fitter_->getS(), fitter_->getNDF()); };
41  void setVerbosity(const int verbosityLevel) { fitter_->setVerbosity(verbosityLevel); };
42 
43 protected:
45  std::string param(const Param& param) const;
46 
47 protected:
49  std::unique_ptr<TKinFitter> fitter_;
53  double maxDeltaS_;
55  double maxF_;
57  double mW_;
59  double mTop_;
60 };
61 
62 #endif
Param
supported parameterizations
Definition: TopKinFitter.h:22
~TopKinFitter()
default destructor
std::unique_ptr< TKinFitter > fitter_
kinematic fitter
Definition: TopKinFitter.h:49
void setVerbosity(const int verbosityLevel)
allows to change the verbosity of the TKinFitter
Definition: TopKinFitter.h:41
std::string param(const Param &param) const
convert Param to human readable form
Definition: TopKinFitter.cc:18
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 fitProb() const
return fit probability
Definition: TopKinFitter.h:39
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
tuple verbosityLevel
L1 selection andOrL1 = cms.bool( True ), l1Algorithms = cms.vstring(&quot;L1_ZeroBias_FirstCollidingBunch&quot;...
double fitS() const
return chi2 of fit (not normalized to degrees of freedom)
Definition: TopKinFitter.h:35
int fitNrIter() const
return number of used iterations
Definition: TopKinFitter.h:37
double mTop_
top mass value used for constraints
Definition: TopKinFitter.h:59
double maxF_
maximal allowed distance from constraints
Definition: TopKinFitter.h:55