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 ) :
22  chi2_( chi2 ), ndof_( ndof ) { }
24  double chi2() const { return chi2_; }
26  double ndof() const { return ndof_; }
28  double normalizedChi2() const { return chi2_ / ndof_; }
29 
30  private:
31  Double32_t chi2_;
32  Double32_t ndof_;
33  };
34 
35 }
36 
37 #endif
FitQuality(double chi2, double ndof)
constructor form values
Definition: FitQuality.h:21
FitQuality()
default constructor
Definition: FitQuality.h:19
Double32_t ndof_
Definition: FitQuality.h:32
double normalizedChi2() const
normalized chi-squared
Definition: FitQuality.h:28
double chi2() const
chi-squared
Definition: FitQuality.h:24
Double32_t chi2_
Definition: FitQuality.h:31
fixed size matrix
double ndof() const
number of degrees of freedom
Definition: FitQuality.h:26