Charge and momentum interpretation for neutral particles.
More...
#include <Acts/EventData/Charge.hpp>
|
| constexpr | Neutral ()=default |
| constexpr | Neutral (float absQ) noexcept |
| | Construct and verify the input charge magnitude (in debug builds).
|
| constexpr float | absQ () const noexcept |
| | Get the absolute charge magnitude.
|
| constexpr float | extractCharge (double) 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 neutral particles.
◆ Neutral() [1/2]
| Acts::Neutral::Neutral |
( |
| ) |
|
|
constexprdefault |
◆ Neutral() [2/2]
| Acts::Neutral::Neutral |
( |
float | absQ | ) |
|
|
explicitconstexprnoexcept |
Construct and verify the input charge magnitude (in debug builds).
This constructor is only provided to allow consistent construction.
- Parameters
-
| absQ | Absolute charge magnitude (must be zero for neutral particles) |
◆ absQ()
| float Acts::Neutral::absQ |
( |
| ) |
const |
|
constexprnoexcept |
Get the absolute charge magnitude.
- Returns
- Always returns 0 for neutral particles
◆ extractCharge()
| float Acts::Neutral::extractCharge |
( |
double | | ) |
const |
|
constexprnoexcept |
Extract the signed charge from q/p.
- Returns
- Always returns 0 for neutral particles
◆ extractMomentum()
| double Acts::Neutral::extractMomentum |
( |
double | qOverP | ) |
const |
|
constexprnoexcept |
Extract momentum magnitude from q/p.
- Parameters
-
| qOverP | Charge over momentum (must be positive for neutral particles) |
- Returns
- Momentum magnitude calculated as 1/qOverP
◆ qOverP()
| double Acts::Neutral::qOverP |
( |
double | momentum, |
|
|
float | signedQ ) const |
|
constexprnoexcept |
Compute q/p from momentum and signed charge.
- Parameters
-
| momentum | Particle momentum magnitude |
| signedQ | Signed charge (must be 0 for neutral particles) |
- Returns
- Charge over momentum (1/momentum for neutral particles)