RooParticle
Particle scattering simulator with ROOT
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
yukawaForce Class Reference

Yukawa (meson exchange) potential, central, independent of charge and mass. More...

#include <force.hpp>

Inheritance diagram for yukawaForce:
force

Public Member Functions

 yukawaForce (Double_t g_=0.1, Double_t a_=1.4138)
 Make the force.
 
TVector3 Evaluate (particle *p1_, particle *p2_)
 Yukawa force on p1_ by p2_ (amu c^2/fm).
 
Double_t Potential (particle *p1_, particle *p2_)
 Yukawa potential energy of the pair (amu c^2).
 
void SetCoupling (Double_t g_)
 Set the coupling g in amu c^2 fm.
 
Double_t GetCoupling ()
 The coupling g in amu c^2 fm.
 
void SetRange (Double_t a_)
 Set the range a in fm.
 
Double_t GetRange ()
 The range a in fm.
 
- Public Member Functions inherited from force
virtual ~force ()
 Virtual : a force deleted through force* must run the subclass destructor.
 

Protected Attributes

Double_t g = 0.1
 coupling in amu c^2 fm
 
Double_t a = 1.4138
 range in fm
 

Additional Inherited Members

- Protected Member Functions inherited from force
 force ()
 Only subclasses can be made.
 

Detailed Description

Yukawa (meson exchange) potential, central, independent of charge and mass.

\[ U = -\frac{g\, e^{-r/a}}{r} \]

The default g = 0.1 amu c^2 fm (= 93.1 MeV fm) is only an illustrative strength, not a fitted value: set it for the system. Like Coulomb, the force diverges at r -> 0 (inf or NaN for coinciding particles). The force on p1 is along \(\vec x_2 - \vec x_1\) for g > 0. It acts on every pair of particles of the event (one particle = one body, not a sum over nucleons), so with many bodies each one feels all the others.

Definition at line 139 of file force.hpp.

Constructor & Destructor Documentation

◆ yukawaForce()

yukawaForce::yukawaForce ( Double_t  g_ = 0.1,
Double_t  a_ = 1.4138 
)
inline

Make the force.

Parameters
g_coupling in amu c^2 fm (default 0.1, illustrative)
a_range in fm (default 1.4138)

Definition at line 144 of file force.hpp.

Member Function Documentation

◆ Evaluate()

TVector3 yukawaForce::Evaluate ( particle *  p1_,
particle *  p2_ 
)
virtual

Yukawa force on p1_ by p2_ (amu c^2/fm).

Reimplemented from force.

Definition at line 60 of file force.cpp.

◆ GetCoupling()

Double_t yukawaForce::GetCoupling ( )
inline

The coupling g in amu c^2 fm.

Definition at line 153 of file force.hpp.

◆ GetRange()

Double_t yukawaForce::GetRange ( )
inline

The range a in fm.

Definition at line 157 of file force.hpp.

◆ Potential()

Double_t yukawaForce::Potential ( particle *  p1_,
particle *  p2_ 
)
virtual

Yukawa potential energy of the pair (amu c^2).

Reimplemented from force.

Definition at line 69 of file force.cpp.

◆ SetCoupling()

void yukawaForce::SetCoupling ( Double_t  g_)
inline

Set the coupling g in amu c^2 fm.

Definition at line 151 of file force.hpp.

◆ SetRange()

void yukawaForce::SetRange ( Double_t  a_)
inline

Set the range a in fm.

Definition at line 155 of file force.hpp.

Member Data Documentation

◆ a

Double_t yukawaForce::a = 1.4138
protected

range in fm

Definition at line 160 of file force.hpp.

◆ g

Double_t yukawaForce::g = 0.1
protected

coupling in amu c^2 fm

Definition at line 159 of file force.hpp.


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