CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
GenericFunctions
GenericFunctions
GenericFunctions/Landau.hh
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id: Landau.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3
//---------------------Landau-----------------------------------------------//
4
// //
5
// Class Landau //
6
// Joe Boudreau, November 1999 //
7
// //
8
//--------------------------------------------------------------------------//
9
#ifndef Landau_h
10
#define Landau_h 1
11
#include "
CLHEP/GenericFunctions/AbsFunction.hh
"
12
#include "
CLHEP/GenericFunctions/Parameter.hh
"
13
14
namespace
Genfun
{
15
20
class
Landau :
public
AbsFunction {
21
22
FUNCTION_OBJECT_DEF
(
Landau
)
23
24
public
:
25
26
// Constructor
27
Landau
();
28
29
// Copy constructor
30
Landau
(
const
Landau
&right);
31
32
// Destructor
33
virtual
~Landau
();
34
35
// Retreive function value
36
virtual
double
operator ()
(
double
argument)
const
;
37
virtual
double
operator ()
(
const
Argument
&
a
)
const
{
return
operator()
(
a
[0]);}
38
39
// Get the mean of the Landau
40
Parameter
&
peak
();
41
const
Parameter
&
peak
()
const
;
42
43
// Get the sigma of the Landau
44
Parameter
&
width
();
45
const
Parameter
&
width
()
const
;
46
47
48
private
:
49
50
// It is illegal to assign an adjustable constant
51
const
Landau
& operator=(
const
Landau
&right);
52
53
// Here is the decay constant
54
Parameter
_peak;
55
56
// Here is the sigma
57
Parameter
_width;
58
59
// The old cernlib routine does the work:
60
double
_denlan(
double
x
)
const
;
61
62
};
63
}
// namespace Genfun
64
65
#endif
Genfun::Landau
Definition:
CLHEP/GenericFunctions/Landau.hh:20
a
@ a
Definition:
testCategories.cc:125
Parameter.hh
Genfun::Landau::Landau
Landau()
Definition:
Landau.cc:15
AbsFunction.hh
Genfun::Landau::width
Parameter & width()
Definition:
Landau.cc:41
Genfun::Landau::~Landau
virtual ~Landau()
Definition:
Landau.cc:20
Genfun::Argument
Definition:
CLHEP/GenericFunctions/Argument.hh:17
Genfun::Landau::operator()
virtual double operator()(double argument) const
Definition:
Landau.cc:30
Genfun::Parameter
Definition:
CLHEP/GenericFunctions/Parameter.hh:35
x
any side effects of that construction would occur twice The semantics of throw x
Definition:
whyZMthrowRethrows.txt:37
Genfun::Landau::peak
Parameter & peak()
Definition:
Landau.cc:37
FUNCTION_OBJECT_DEF
#define FUNCTION_OBJECT_DEF(classname)
Definition:
CLHEP/GenericFunctions/AbsFunction.hh:144
Genfun
Definition:
CLHEP/GenericFunctions/Abs.hh:14
Generated by
1.8.17