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 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 public:
21 
22 public:
24  explicit TopKinFitter(const int maxNrIter = 200,
25  const double maxDeltaS = 5e-5,
26  const double maxF = 1e-4,
27  const double mW = 80.4,
28  const double mTop = 173.);
30  ~TopKinFitter();
31 
33  double fitS() const { return fitter_->getS(); };
35  int fitNrIter() const { return fitter_->getNbIter(); };
37  double fitProb() const { return TMath::Prob(fitter_->getS(), fitter_->getNDF()); };
39  void setVerbosity(const int verbosityLevel) { fitter_->setVerbosity(verbosityLevel); };
40 
41 protected:
43  std::string param(const Param& param) const;
44 
45 protected:
51  double maxDeltaS_;
53  double maxF_;
55  double mW_;
57  double mTop_;
58 };
59 
60 #endif
Int_t getNbIter()
Definition: TKinFitter.h:50
Param
supported parameterizations
Definition: TopKinFitter.h:20
~TopKinFitter()
default destructor
Definition: TopKinFitter.cc:15
void setVerbosity(const int verbosityLevel)
allows to change the verbosity of the TKinFitter
Definition: TopKinFitter.h:39
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:49
double fitProb() const
return fit probability
Definition: TopKinFitter.h:37
Double_t getS()
Definition: TKinFitter.cc:1066
double mW_
W mass value used for constraints.
Definition: TopKinFitter.h:55
Int_t getNDF()
Definition: TKinFitter.h:45
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
tuple verbosityLevel
L1 selection andOrL1 = cms.bool( True ), l1Algorithms = cms.vstring("L1_ZeroBias_FirstCollidingBunch"...
double fitS() const
return chi2 of fit (not normalized to degrees of freedom)
Definition: TopKinFitter.h:33
TKinFitter * fitter_
kinematic fitter
Definition: TopKinFitter.h:47
int fitNrIter() const
return number of used iterations
Definition: TopKinFitter.h:35
double mTop_
top mass value used for constraints
Definition: TopKinFitter.h:57
double maxF_
maximal allowed distance from constraints
Definition: TopKinFitter.h:53