CMS 3D CMS Logo

FitQuality.h
Go to the documentation of this file.
1 #ifndef RecoCandidate_FitQuality_h
2 #define RecoCandidate_FitQuality_h
3 
12 #include "Rtypes.h"
13 
14 namespace reco {
15 
16  class FitQuality {
17  public:
19  FitQuality() : chi2_(0), ndof_(0) {}
21  FitQuality(double chi2, double ndof) : chi2_(chi2), ndof_(ndof) {}
23  double chi2() const { return chi2_; }
25  double ndof() const { return ndof_; }
27  double normalizedChi2() const { return chi2_ / ndof_; }
28 
29  private:
30  Double32_t chi2_;
31  Double32_t ndof_;
32  };
33 
34 } // namespace reco
35 
36 #endif
FitQuality(double chi2, double ndof)
constructor form values
Definition: FitQuality.h:21
double chi2() const
chi-squared
Definition: FitQuality.h:23
FitQuality()
default constructor
Definition: FitQuality.h:19
Double32_t ndof_
Definition: FitQuality.h:31
Double32_t chi2_
Definition: FitQuality.h:30
fixed size matrix
double normalizedChi2() const
normalized chi-squared
Definition: FitQuality.h:27
double ndof() const
number of degrees of freedom
Definition: FitQuality.h:25