CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
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
Generated on Mon May 6 2013 04:04:10 for CLHEP by
1.8.1.2