|
ACTS
Experiment-independent tracking
|
Charge and momentum interpretation for arbitrarily charged particles. More...
#include <Acts/EventData/Charge.hpp>
Public Member Functions | |
| constexpr | AnyCharge (float absQ) noexcept |
| Construct with the magnitude of the input charge. | |
| constexpr | AnyCharge (Neutral) noexcept |
| Construct from a Neutral particle. | |
| constexpr | AnyCharge (SinglyCharged) noexcept |
| Construct from a SinglyCharged particle. | |
| constexpr float | absQ () const noexcept |
| Get the absolute charge magnitude. | |
| constexpr float | extractCharge (double qOverP) const noexcept |
| Extract the signed charge from q/p. | |
| constexpr double | extractMomentum (double qOverP) const noexcept |
| Extract momentum magnitude from q/p. | |
| constexpr double | qOverP (double momentum, float signedQ) const noexcept |
| Compute q/p from momentum and signed charge. | |
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.
|
explicitconstexprnoexcept |
Construct with the magnitude of the input charge.
| absQ | The absolute value of the charge magnitude |
|
explicitconstexprnoexcept |
Construct from a SinglyCharged particle.
|
explicitconstexprnoexcept |
Construct from a Neutral particle.
|
constexprnoexcept |
Get the absolute charge magnitude.
|
constexprnoexcept |
Extract the signed charge from q/p.
| qOverP | Charge over momentum |
|
constexprnoexcept |
Extract momentum magnitude from q/p.
| qOverP | Charge over momentum |
|
constexprnoexcept |
Compute q/p from momentum and signed charge.
| momentum | Particle momentum magnitude |
| signedQ | Signed charge (must match stored charge magnitude) |