CLHEP 2.0.4.7 Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

CumulativeChiSquare.hh

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 // $Id: CumulativeChiSquare.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
00003 //---------------------CumulativeChiSquare----------------------------------//
00004 //                                                                          //
00005 // Class CumulativeChiSquare, also known as the probability chi squared     //
00006 // Joe Boudreau, October 2000                                               //
00007 //                                                                          //
00008 //--------------------------------------------------------------------------//
00009 #ifndef CumulativeChiSquare_h
00010 #define CumulativeChiSquare_h 1
00011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
00012 #include "CLHEP/GenericFunctions/Parameter.hh"
00013 namespace Genfun {
00014 
00019   class CumulativeChiSquare : public AbsFunction  {
00020 
00021     FUNCTION_OBJECT_DEF(CumulativeChiSquare)
00022 
00023       public:
00024 
00025     // Constructor
00026     CumulativeChiSquare(unsigned int nDof);
00027 
00028     // Copy constructor
00029     CumulativeChiSquare(const CumulativeChiSquare &right);
00030   
00031     // Destructor
00032     virtual ~CumulativeChiSquare();
00033   
00034     // Retreive function value
00035     virtual double operator ()(double argument) const;
00036     virtual double operator ()(const Argument & a) const {return operator() (a[0]);}
00037   
00038     // Get the integer variable l
00039     unsigned int nDof() const;
00040 
00041   private:
00042 
00043     // It is illegal to assign an adjustable constant
00044     const CumulativeChiSquare & operator=(const CumulativeChiSquare &right);
00045 
00046     // Here is the decay constant
00047     unsigned int _nDof;
00048   
00049     // Here is the "work function"
00050     const AbsFunction *_function;
00051 
00052     // This function is needed in all constructors:
00053     void create(); 
00054 
00055   };
00056 } // namespace Genfun
00057 
00058 #endif

Generated on Thu Jul 1 22:02:30 2010 for CLHEP by  doxygen 1.4.7