BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/ProbTools/include/ProbTools/ChisqConsistency.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: ChisqConsistency.h,v 1.1.1.1 2005/04/21 01:17:17 zhangy Exp $
4//
5// Description:
6//
7// Environment:
8// Software developed for the BaBar Detector at the SLAC B-Factory.
9//
10// Author List:
11// Bob Jacobsen, Ed Iskander
12//
13// Copyright Information:
14// Copyright (C) 1996
15//
16//------------------------------------------------------------------------
17
18#ifndef CHISQCONSISTENCY_HH
19#define CHISQCONSISTENCY_HH
20// #include "BaBar/BaBar.hh"
21
22//-----------------
23// BaBar Headers --
24//-----------------
25#include "ProbTools/Consistency.h"
26
27class ChisqConsistency : public Consistency {
28public:
29 // default constructor; sets internal state to noMeasure
31 // real constructor
32 ChisqConsistency( double chisq, double nDof );
33 // construct directly from consistency value (chisq will be
34 // computed from that). Note this only works for _integral_ DOFs.
35 // I have to reverse the argument order to keep the implicit casting
36 // from confusing this with the above
37 ChisqConsistency( unsigned nDof, double consistency );
38 // copy and equivalence
41
42 virtual ~ChisqConsistency() {}
43 // accessors
44 const double& chisqValue() const { return _chisq; }
45 const double& nDOF() const { return _nDof; }
46
47protected:
48 double _chisq;
49 double _nDof;
50};
51
52#endif
ChisqConsistency(unsigned nDof, double consistency)
ChisqConsistency(const ChisqConsistency &)
ChisqConsistency & operator=(const ChisqConsistency &)
ChisqConsistency(double chisq, double nDof)