Class part_tl (o2scl)¶
-
template<class fp_t = double>
class part_tl¶ Particle base class.
Subclassed by o2scl::boson_tl< double >, o2scl::fermion_tl< double >, o2scl::fermion_tl< cpp_dec_float_25 >, o2scl::fermion_tl< long double >, o2scl::fermion_tl< boost::multiprecision::number< boost::multiprecision::cpp_dec_float< 25 > > >, o2scl::boson_tl< fp_t >, o2scl::fermion_tl< fp_t >, o2scl::part_deriv_tl< fp_t >, o2scl::part_pdg_tl< fp_t >
Public Functions
-
inline part_tl &operator=(const part_tl &p)¶
Copy construction with operator=()
-
inline virtual ~part_tl()¶
-
inline virtual void anti(part_tl &ax)¶
Make
ap
an anti-particle with the same mass and degeneracy.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 \]
-
inline virtual const char *type()¶
Return string denoting type (“part_tl”)
-
inline part_tl &operator=(const part_tl &p)¶