|
ACTS
Experiment-independent tracking
|
Charge and momentum interpretation for arbitrarily charged particles. More...
#include <Acts/EventData/ChargeHypothesis.hpp>
Public Member Functions | |
| constexpr | ChargeHypothesis (float absoluteCharge) noexcept |
| Construct with the magnitude of the input charge. | |
| constexpr float | absoluteCharge () 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 bool | operator== (const ChargeHypothesis &rhs) const noexcept=default |
| Compare for equality. | |
| 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.
| absoluteCharge | The absolute value of the charge magnitude |
|
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 |
|
constexprdefaultnoexcept |
Compare for equality.
| rhs | The ChargeHypothesis to compare to |
|
constexprnoexcept |
Compute q/p from momentum and signed charge.
| momentum | Particle momentum magnitude |
| signedQ | Signed charge (must match stored charge magnitude) |