CLHEP
2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
PtRelFcn.hh
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id:
3
//---------------------PtRelFcn---------------------------------------------//
4
// //
5
// Class PtRelFcn //
6
// //
7
// This class is a parameterization of ptrel distributions measured at //
8
// CDF. It has 6 parameters, and is normalized. Alternate descriptions, //
9
// in the past, have used 7 parameters but without normalization. //
10
// //
11
// Joe Boudreau, Azizur Rahaman, March 2003 //
12
// //
13
//--------------------------------------------------------------------------//
14
#ifndef PtRelFcn_h
15
#define PtRelFcn_h 1
16
#include "CLHEP/GenericFunctions/AbsFunction.hh"
17
#include "CLHEP/GenericFunctions/Parameter.hh"
18
#include "CLHEP/GenericFunctions/LogGamma.hh"
19
#include "CLHEP/GenericFunctions/Erf.hh"
20
21
namespace
Genfun
{
22
23
/**
24
* @author
25
* @ingroup genfun
26
*/
27
class
PtRelFcn
:
public
AbsFunction
{
28
29
FUNCTION_OBJECT_DEF
(
PtRelFcn
)
30
31
public
:
32
33
// Constructor
34
PtRelFcn
();
35
36
// Copy constructor
37
PtRelFcn
(
const
PtRelFcn
&right);
38
39
// Destructor
40
virtual
~PtRelFcn
();
41
42
// Retreive function value
43
virtual
double
operator ()
(
double
argument)
const override
;
44
virtual
double
operator ()
(
const
Argument
& a)
const override
{
return
operator()
(a[0]);}
45
46
// Parameter P0:
47
Parameter
&
P0
();
48
const
Parameter
&
P0
()
const
;
49
50
// Parameter P1:
51
Parameter
&
P1
();
52
const
Parameter
&
P1
()
const
;
53
54
// Parameter P2:
55
Parameter
&
P2
();
56
const
Parameter
&
P2
()
const
;
57
58
// Parameter P3:
59
Parameter
&
P3
();
60
const
Parameter
&
P3
()
const
;
61
62
// Parameter P4:
63
Parameter
&
P4
();
64
const
Parameter
&
P4
()
const
;
65
66
// Parameter P5:
67
Parameter
&
P5
();
68
const
Parameter
&
P5
()
const
;
69
70
private
:
71
72
// It is illegal to assign an adjustable constant
73
const
PtRelFcn
& operator=(
const
PtRelFcn
&right);
74
75
// Here are the parameters:
76
Parameter
_p0,_p1,_p2,_p3,_p4,_p5;
77
LogGamma
_logGamma;
78
Erf
_erf;
79
};
80
}
// namespace Genfun
81
82
#endif
FUNCTION_OBJECT_DEF
#define FUNCTION_OBJECT_DEF(classname)
Definition:
AbsFunction.hh:143
Genfun::AbsFunction
Definition:
AbsFunction.hh:48
Genfun::Argument
Definition:
Argument.hh:17
Genfun::Erf
Definition:
Erf.hh:20
Genfun::LogGamma
Definition:
LogGamma.hh:19
Genfun::Parameter
Definition:
Parameter.hh:35
Genfun::PtRelFcn
Definition:
PtRelFcn.hh:27
Genfun::PtRelFcn::P2
Parameter & P2()
Definition:
PtRelFcn.cc:88
Genfun::PtRelFcn::P4
Parameter & P4()
Definition:
PtRelFcn.cc:104
Genfun::PtRelFcn::P5
Parameter & P5()
Definition:
PtRelFcn.cc:112
Genfun::PtRelFcn::~PtRelFcn
virtual ~PtRelFcn()
Definition:
PtRelFcn.cc:29
Genfun::PtRelFcn::PtRelFcn
PtRelFcn()
Definition:
PtRelFcn.cc:20
Genfun::PtRelFcn::P0
Parameter & P0()
Definition:
PtRelFcn.cc:72
Genfun::PtRelFcn::operator()
virtual double operator()(double argument) const override
Definition:
PtRelFcn.cc:43
Genfun::PtRelFcn::P1
Parameter & P1()
Definition:
PtRelFcn.cc:80
Genfun::PtRelFcn::P3
Parameter & P3()
Definition:
PtRelFcn.cc:96
Genfun
Definition:
Abs.hh:14
CLHEP-CLHEP_2_4_6_4
GenericFunctions
GenericFunctions
PtRelFcn.hh
Generated by
1.9.6