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

#include <NonrelativisticBW.hh>

+ Inheritance diagram for Genfun::NonrelativisticBWDistribution:

Public Member Functions

 NonrelativisticBWDistribution ()
 
 NonrelativisticBWDistribution (const NonrelativisticBWDistribution &right)
 
virtual ~NonrelativisticBWDistribution ()
 
virtual double operator() (double argument) const override
 
virtual double operator() (const Argument &a) const override
 
Parametermass ()
 
Parameterwidth ()
 
- 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 NonrelativisticBW.hh.

Constructor & Destructor Documentation

◆ NonrelativisticBWDistribution() [1/2]

Genfun::NonrelativisticBWDistribution::NonrelativisticBWDistribution ( )

Definition at line 19 of file NonrelativisticBW.cc.

19 :
20 _mass("mass", 50, 10, 90),
21 _width ("width", 5, 0, 100)
22{}

◆ NonrelativisticBWDistribution() [2/2]

Genfun::NonrelativisticBWDistribution::NonrelativisticBWDistribution ( const NonrelativisticBWDistribution right)

Definition at line 24 of file NonrelativisticBW.cc.

24 :
26 _mass(right._mass),
27 _width (right._width)
28{
29}

◆ ~NonrelativisticBWDistribution()

Genfun::NonrelativisticBWDistribution::~NonrelativisticBWDistribution ( )
virtual

Definition at line 31 of file NonrelativisticBW.cc.

31 {
32}

Member Function Documentation

◆ mass()

Parameter & Genfun::NonrelativisticBWDistribution::mass ( )

Definition at line 42 of file NonrelativisticBW.cc.

42 {
43 return _mass;
44}

◆ operator()() [1/2]

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

Implements Genfun::AbsFunction.

Definition at line 37 of file NonrelativisticBW.hh.

37{return operator() (a[0]);}
virtual double operator()(double argument) const override

◆ operator()() [2/2]

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

Implements Genfun::AbsFunction.

Definition at line 34 of file NonrelativisticBW.cc.

34 {
35 double M=_mass.getValue();
36 double G=_width.getValue()/2.0;
37 double f = (1.0/M_PI)*G/((x-M)*(x-M) +G*G);
38 return f;
39
40}
virtual double getValue() const
Definition: Parameter.cc:29
void f(void g())
Definition: excDblThrow.cc:38

Referenced by operator()().

◆ width()

Parameter & Genfun::NonrelativisticBWDistribution::width ( )

Definition at line 47 of file NonrelativisticBW.cc.

47 {
48 return _width;
49}

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