CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
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
11#include "CLHEP/GenericFunctions/AbsFunction.hh"
12#include "CLHEP/GenericFunctions/Parameter.hh"
13namespace Genfun {
14
15 /**
16 * @author
17 * @ingroup genfun
18 */
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 override;
36 virtual double operator ()(const Argument & a) const override {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
#define FUNCTION_OBJECT_DEF(classname)
Definition: AbsFunction.hh:143
virtual double operator()(double argument) const override
Definition: Abs.hh:14