Struct Acts::SinglyCharged

struct SinglyCharged

Charge and momentum interpretation for particles with +-e charge.

Public Functions

constexpr SinglyCharged() = default
inline constexpr SinglyCharged(float absQ) noexcept

Construct and verify the input charge magnitude (in debug builds).

This constructor is only provided to allow consistent construction.

inline constexpr float absQ() const noexcept
template<typename T>
inline constexpr auto extractCharge(T qOverP) const noexcept
template<typename T>
inline constexpr auto extractMomentum(T qOverP) const noexcept
template<typename P, typename Q>
inline constexpr auto qOverP(P momentum, Q signedQ) const noexcept

Friends

inline friend constexpr bool operator==(SinglyCharged, SinglyCharged) noexcept

Compare for equality.

This is always true as SinglyCharged has no internal state. Must be available to provide a consistent interface.