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

#include <RelativisticBW.hh>

+ Inheritance diagram for Genfun::RelativisticBWDistribution:

Public Member Functions

 RelativisticBWDistribution ()
 
 RelativisticBWDistribution (const RelativisticBWDistribution &right)
 
virtual ~RelativisticBWDistribution ()
 
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 RelativisticBW.hh.

Constructor & Destructor Documentation

◆ RelativisticBWDistribution() [1/2]

Genfun::RelativisticBWDistribution::RelativisticBWDistribution ( )

Definition at line 19 of file RelativisticBW.cc.

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

◆ RelativisticBWDistribution() [2/2]

Genfun::RelativisticBWDistribution::RelativisticBWDistribution ( const RelativisticBWDistribution right)

Definition at line 24 of file RelativisticBW.cc.

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

◆ ~RelativisticBWDistribution()

Genfun::RelativisticBWDistribution::~RelativisticBWDistribution ( )
virtual

Definition at line 31 of file RelativisticBW.cc.

31 {
32}

Member Function Documentation

◆ mass()

Parameter & Genfun::RelativisticBWDistribution::mass ( )

Definition at line 44 of file RelativisticBW.cc.

44 {
45 return _mass;
46}

◆ operator()() [1/2]

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

Implements Genfun::AbsFunction.

Definition at line 37 of file RelativisticBW.hh.

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

◆ operator()() [2/2]

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

Implements Genfun::AbsFunction.

Definition at line 34 of file RelativisticBW.cc.

34 {
35 double M=_mass.getValue();
36 double G=_width.getValue();
37 double g=sqrt(M*M*(M*M+G*G));
38 double k = 2.0*sqrt(2.0)*M*G*g/M_PI/sqrt(M*M+g);
39 double f = k/((x-M)*(x-M)*(x+M)*(x+M)+M*M*G*G);
40 return f;
41
42}
virtual double getValue() const
Definition: Parameter.cc:29
void f(void g())
Definition: excDblThrow.cc:38
int g(shared_ptr< X >)

Referenced by operator()().

◆ width()

Parameter & Genfun::RelativisticBWDistribution::width ( )

Definition at line 49 of file RelativisticBW.cc.

49 {
50 return _width;
51}

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