CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

GenericFunctions/CumulativeChiSquare.hh
Go to the documentation of this file.
1 // -*- C++ -*-
2 // $Id: CumulativeChiSquare.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3 //---------------------CumulativeChiSquare----------------------------------//
4 // //
5 // Class CumulativeChiSquare, also known as the probability chi squared //
6 // Joe Boudreau, October 2000 //
7 // //
8 //--------------------------------------------------------------------------//
9 #ifndef CumulativeChiSquare_h
10 #define CumulativeChiSquare_h 1
13 namespace Genfun {
14 
19  class CumulativeChiSquare : public AbsFunction {
20 
22 
23  public:
24 
25  // Constructor
26  CumulativeChiSquare(unsigned int nDof);
27 
28  // Copy constructor
30 
31  // Destructor
32  virtual ~CumulativeChiSquare();
33 
34  // Retreive function value
35  virtual double operator ()(double argument) const;
36  virtual double operator ()(const Argument & a) const {return operator() (a[0]);}
37 
38  // Get the integer variable l
39  unsigned int nDof() const;
40 
41  private:
42 
43  // It is illegal to assign an adjustable constant
44  const CumulativeChiSquare & operator=(const CumulativeChiSquare &right);
45 
46  // Here is the decay constant
47  unsigned int _nDof;
48 
49  // Here is the "work function"
50  const AbsFunction *_function;
51 
52  // This function is needed in all constructors:
53  void create();
54 
55  };
56 } // namespace Genfun
57 
58 #endif