Class Acts::AnyCharge

class AnyCharge

Charge and momentum interpretation for arbitrarily charged particles.

Only a charge magnitude identical to zero is interpreted as representing a neutral particle. This avoids ambiguities that might arise from using an approximate comparison with an arbitrary epsilon.

Public Functions

AnyCharge() = delete

Delete default constructor to ensure charge is always explicitely given.

template<typename T>
inline constexpr AnyCharge(T absQ) noexcept

Construct with the magnitude of the input charge.

template<typename T>
inline constexpr T extractCharge(T qOverP) const noexcept
template<typename T>
inline constexpr T extractMomentum(T qOverP) const noexcept