00001 //-------------------------------------------------------------------------- 00002 // File and Version Information: 00003 // $Id: ChisqConsistency.h,v 1.1.1.1 2005/04/21 01:17:17 zhangy Exp $ 00004 // 00005 // Description: 00006 // 00007 // Environment: 00008 // Software developed for the BaBar Detector at the SLAC B-Factory. 00009 // 00010 // Author List: 00011 // Bob Jacobsen, Ed Iskander 00012 // 00013 // Copyright Information: 00014 // Copyright (C) 1996 00015 // 00016 //------------------------------------------------------------------------ 00017 00018 #ifndef CHISQCONSISTENCY_HH 00019 #define CHISQCONSISTENCY_HH 00020 //#include "BaBar/BaBar.hh" 00021 00022 //----------------- 00023 // BaBar Headers -- 00024 //----------------- 00025 #include "ProbTools/Consistency.h" 00026 00027 class ChisqConsistency : public Consistency { 00028 public: 00029 00030 // default constructor; sets internal state to noMeasure 00031 ChisqConsistency(); 00032 // real constructor 00033 ChisqConsistency( double chisq, double nDof ); 00034 // construct directly from consistency value (chisq will be 00035 // computed from that). Note this only works for _integral_ DOFs. 00036 // I have to reverse the argument order to keep the implicit casting 00037 // from confusing this with the above 00038 ChisqConsistency( unsigned nDof, double consistency); 00039 // copy and equivalence 00040 ChisqConsistency(const ChisqConsistency&); 00041 ChisqConsistency& operator = (const ChisqConsistency&); 00042 00043 00044 virtual ~ChisqConsistency() {} 00045 // accessors 00046 const double& chisqValue() const { return _chisq; } 00047 const double& nDOF() const { return _nDof; } 00048 00049 protected: 00050 double _chisq; 00051 double _nDof; 00052 }; 00053 00054 #endif