CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Genfun::Landau Class Reference

#include <Landau.hh>

+ Inheritance diagram for Genfun::Landau:

Public Member Functions

 Landau ()
 
 Landau (const Landau &right)
 
virtual ~Landau ()
 
virtual double operator() (double argument) const override
 
virtual double operator() (const Argument &a) const override
 
Parameterpeak ()
 
const Parameterpeak () const
 
Parameterwidth ()
 
const Parameterwidth () const
 
- Public Member Functions inherited from Genfun::AbsFunction
 AbsFunction ()
 
 AbsFunction (const AbsFunction &right)
 
virtual ~AbsFunction ()
 
virtual unsigned int dimensionality () const
 
virtual double operator() (double argument) const =0
 
virtual double operator() (const Argument &argument) const =0
 
virtual AbsFunctionclone () const =0
 
virtual FunctionComposition operator() (const AbsFunction &f) const
 
virtual ParameterComposition operator() (const AbsParameter &p) const
 
Derivative derivative (const Variable &v) const
 
Derivative prime () const
 
virtual bool hasAnalyticDerivative () const
 
virtual Derivative partial (unsigned int) const
 

Detailed Description

Author

Definition at line 20 of file Landau.hh.

Constructor & Destructor Documentation

◆ Landau() [1/2]

Genfun::Landau::Landau ( )

Definition at line 16 of file Landau.cc.

16 :
17 _peak("Peak", 5.0 ,0, 10),
18 _width("Width",1.0,0, 10)
19{}

◆ Landau() [2/2]

Genfun::Landau::Landau ( const Landau right)

Definition at line 24 of file Landau.cc.

24 :
25AbsFunction(right),
26_peak(right._peak),
27_width(right._width)
28{
29}

◆ ~Landau()

Genfun::Landau::~Landau ( )
virtual

Definition at line 21 of file Landau.cc.

21 {
22}

Member Function Documentation

◆ operator()() [1/2]

virtual double Genfun::Landau::operator() ( const Argument a) const
inlineoverridevirtual

Implements Genfun::AbsFunction.

Definition at line 37 of file Landau.hh.

37{return operator() (a[0]);}
virtual double operator()(double argument) const override
Definition: Landau.cc:31

◆ operator()() [2/2]

double Genfun::Landau::operator() ( double  argument) const
overridevirtual

Implements Genfun::AbsFunction.

Definition at line 31 of file Landau.cc.

31 {
32 double s = _width.getValue();
33 double x0 = _peak.getValue();
34 double xs = x0 + 0.222782*s;
35 return _denlan((x-xs)/s)/s;
36}
virtual double getValue() const
Definition: Parameter.cc:29

Referenced by operator()().

◆ peak() [1/2]

Parameter & Genfun::Landau::peak ( )

Definition at line 38 of file Landau.cc.

38 {
39 return _peak;
40}

◆ peak() [2/2]

const Parameter & Genfun::Landau::peak ( ) const

Definition at line 46 of file Landau.cc.

46 {
47 return _peak;
48}

◆ width() [1/2]

Parameter & Genfun::Landau::width ( )

Definition at line 42 of file Landau.cc.

42 {
43 return _width;
44}

◆ width() [2/2]

const Parameter & Genfun::Landau::width ( ) const

Definition at line 50 of file Landau.cc.

50 {
51 return _width;
52}

The documentation for this class was generated from the following files: