Public Member Functions | Public Attributes | List of all members
o2scl::part Class Reference

Particle base class. More...

#include <part.h>

Inheritance diagram for o2scl::part:
o2scl::boson o2scl::fermion o2scl::nucleus o2scl::part_deriv o2scl::quark o2scl::fermion_deriv

Public Member Functions

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

Public Attributes

double g
 Degeneracy (e.g. spin and color if applicable)
double m
double n
 Number density.
double ed
 Energy density.
double pr
double mu
 Chemical potential.
double en
 Entropy density.
double ms
 Effective mass (Dirac unless otherwise specified)
double 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)

Detailed Description

Definition at line 92 of file part.h.

Member Function Documentation

◆ anti()

virtual void o2scl::part::anti ( part ap)

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 \]

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).