CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/DataFormats/RecoCandidate/interface/FitQuality.h

Go to the documentation of this file.
00001 #ifndef RecoCandidate_FitQuality_h
00002 #define RecoCandidate_FitQuality_h
00003 
00013 #include "Rtypes.h"
00014 
00015 namespace reco {
00016 
00017   class FitQuality {
00018   public:
00020     FitQuality() : chi2_(0), ndof_(0) { }
00022     FitQuality( double chi2, double ndof ) :
00023       chi2_( chi2 ), ndof_( ndof ) { }
00025     double chi2() const { return chi2_; }
00027     double ndof() const { return ndof_; }
00029     double normalizedChi2() const { return chi2_ / ndof_; }
00030 
00031   private:
00032     Double32_t chi2_;
00033     Double32_t ndof_;
00034   };
00035 
00036 }
00037 
00038 #endif