CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TopKinFitter.h
Go to the documentation of this file.
1 #ifndef TopKinFitter_h
2 #define TopKinFitter_h
3 
4 #include "TMath.h"
5 
7 
8 /*
9  \class TopKinFitter TopKinFitter.h "TopQuarkAnalysis/TopKinFitter/interface/TopKinFitter.h"
10 
11  \brief one line description to be added here...
12 
13  text to be added here...
14 
15 **/
16 
17 class TopKinFitter {
18 
19  public:
20 
23 
24  public:
26  explicit TopKinFitter(const int maxNrIter=200, const double maxDeltaS=5e-5, const double maxF=1e-4,
27  const double mW=80.4, const double mTop=173.);
29  ~TopKinFitter();
30 
32  double fitS() const { return fitter_->getS(); };
34  int fitNrIter() const { return fitter_->getNbIter(); };
36  double fitProb() const { return TMath::Prob(fitter_->getS(), fitter_->getNDF()); };
38  void setVerbosity(const int verbosityLevel) { fitter_->setVerbosity(verbosityLevel); };
39 
40  protected:
42  std::string param(const Param& param) const;
43 
44  protected:
50  double maxDeltaS_;
52  double maxF_;
54  double mW_;
56  double mTop_;
57 };
58 
59 #endif
Int_t getNbIter()
Definition: TKinFitter.h:40
~TopKinFitter()
default destructor
Definition: TopKinFitter.cc:16
void setVerbosity(const int verbosityLevel)
allows to change the verbosity of the TKinFitter
Definition: TopKinFitter.h:38
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:48
double fitProb() const
return fit probability
Definition: TopKinFitter.h:36
Double_t getS()
Definition: TKinFitter.cc:1108
double mW_
W mass value used for constraints.
Definition: TopKinFitter.h:54
Int_t getNDF()
Definition: TKinFitter.h:35
double maxDeltaS_
maximal allowed chi2 (not normalized to degrees of freedom)
Definition: TopKinFitter.h:50
void setVerbosity(Int_t verbosity=1)
Definition: TKinFitter.cc:294
double fitS() const
return chi2 of fit (not normalized to degrees of freedom)
Definition: TopKinFitter.h:32
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:46
int fitNrIter() const
return number of used iterations
Definition: TopKinFitter.h:34
double mTop_
top mass value used for constraints
Definition: TopKinFitter.h:56
double maxF_
maximal allowed distance from constraints
Definition: TopKinFitter.h:52