Public Member Functions | Public Attributes | List of all members
o2scl::part_tl< fp_t > Class Template Reference

Particle base class. More...

#include <part.h>

Inheritance diagram for o2scl::part_tl< fp_t >:
o2scl::boson o2scl::nucleus

Detailed Description

template<class fp_t = double>
class o2scl::part_tl< fp_t >

Definition at line 103 of file part.h.

Public Member Functions

 part_tl (const part_tl &p)
 Copy constructor.
 
part_tloperator= (const part_tl &p)
 Copy construction with operator=()
 
 part_tl (fp_t mass=0.0, fp_t dof=0.0)
 Make a particle of mass mass and degeneracy dof.
 
virtual void init (fp_t mass, fp_t dof)
 Set the mass mass and degeneracy dof.
 
virtual void anti (part_tl &ax)
 Make ap an anti-particle with the same mass and degeneracy. More...
 
virtual const char * type ()
 Return string denoting type ("part_tl")
 

Public Attributes

fp_t g
 Degeneracy (e.g. spin and color if applicable)
 
fp_t m
 Mass.
 
fp_t n
 Number density.
 
fp_t ed
 Energy density.
 
fp_t pr
 Pressure.
 
fp_t mu
 Chemical potential.
 
fp_t en
 Entropy density.
 
fp_t ms
 Effective mass (Dirac unless otherwise specified)
 
fp_t nu
 Effective chemical potential.
 
bool inc_rest_mass
 If true, include the mass in the energy density and chemical potential (default true)
 
bool non_interacting
 True if the particle is non-interacting (default true)
 

Member Function Documentation

◆ anti()

template<class fp_t = double>
virtual void o2scl::part_tl< fp_t >::anti ( part_tl< fp_t > &  ax)
inlinevirtual

This sets the m, g, ms, inc_rest_mass and non_interacting fields of ap equal to that of the current object. If inc_rest_mass is true, then it sets

\[ \mu_{\mathrm{anti}} = - \mu \qquad\mathrm{and}\qquad \nu_{\mathrm{anti}} = - \nu \]

and if inc_rest_mass is false, it sets

\[ \mu_{\mathrm{anti}} = - \mu - 2 m \qquad\mathrm{and}\qquad \nu_{\mathrm{anti}} = - \nu - 2 m \]

Definition at line 205 of file part.h.


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

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).