CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FitQuality.h
Go to the documentation of this file.
1 #ifndef RecoCandidate_FitQuality_h
2 #define RecoCandidate_FitQuality_h
3 
13 #include "Rtypes.h"
14 
15 namespace reco {
16 
17  class FitQuality {
18  public:
20  FitQuality() : chi2_(0), ndof_(0) { }
22  FitQuality( double chi2, double ndof ) :
23  chi2_( chi2 ), ndof_( ndof ) { }
25  double chi2() const { return chi2_; }
27  double ndof() const { return ndof_; }
29  double normalizedChi2() const { return chi2_ / ndof_; }
30 
31  private:
32  Double32_t chi2_;
33  Double32_t ndof_;
34  };
35 
36 }
37 
38 #endif
FitQuality(double chi2, double ndof)
constructor form values
Definition: FitQuality.h:22
FitQuality()
default constructor
Definition: FitQuality.h:20
Double32_t ndof_
Definition: FitQuality.h:33
double normalizedChi2() const
normalized chi-squared
Definition: FitQuality.h:29
double chi2() const
chi-squared
Definition: FitQuality.h:25
Double32_t chi2_
Definition: FitQuality.h:32
double ndof() const
number of degrees of freedom
Definition: FitQuality.h:27