Charge and momentum interpretation for arbitrarily charged but not neutral particles.
More...
#include <Acts/EventData/Charge.hpp>
|
| constexpr | NonNeutralCharge (float absQ) noexcept |
| | Construct with the magnitude of the input charge.
|
| constexpr | NonNeutralCharge (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 but not neutral particles.
◆ NonNeutralCharge() [1/2]
| Acts::NonNeutralCharge::NonNeutralCharge |
( |
float | absQ | ) |
|
|
explicitconstexprnoexcept |
Construct with the magnitude of the input charge.
- Parameters
-
| absQ | Absolute charge magnitude (must be positive for non-neutral particles) |
◆ NonNeutralCharge() [2/2]
|
|
explicitconstexprnoexcept |
Construct from a SinglyCharged particle.
◆ absQ()
| float Acts::NonNeutralCharge::absQ |
( |
| ) |
const |
|
constexprnoexcept |
Get the absolute charge magnitude.
- Returns
- Absolute charge magnitude
◆ extractCharge()
| float Acts::NonNeutralCharge::extractCharge |
( |
double | qOverP | ) |
const |
|
constexprnoexcept |
Extract the signed charge from q/p.
- Parameters
-
| qOverP | Charge over momentum |
- Returns
- Signed charge with correct magnitude
◆ extractMomentum()
| double Acts::NonNeutralCharge::extractMomentum |
( |
double | qOverP | ) |
const |
|
constexprnoexcept |
Extract momentum magnitude from q/p.
- Parameters
-
| qOverP | Charge over momentum |
- Returns
- Momentum magnitude calculated as charge/qOverP
◆ qOverP()
| double Acts::NonNeutralCharge::qOverP |
( |
double | momentum, |
|
|
float | signedQ ) const |
|
constexprnoexcept |
Compute q/p from momentum and signed charge.
- Parameters
-
| momentum | Particle momentum magnitude |
| signedQ | Signed charge (must match stored charge magnitude) |
- Returns
- Charge over momentum