Charge and momentum interpretation for particles with +-e charge.
More...
#include <Acts/EventData/Charge.hpp>
|
| constexpr | SinglyCharged ()=default |
| constexpr | SinglyCharged (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 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 particles with +-e charge.
◆ SinglyCharged() [1/2]
| Acts::SinglyCharged::SinglyCharged |
( |
| ) |
|
|
constexprdefault |
◆ SinglyCharged() [2/2]
| Acts::SinglyCharged::SinglyCharged |
( |
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 e for singly charged particles) |
◆ absQ()
| float Acts::SinglyCharged::absQ |
( |
| ) |
const |
|
constexprnoexcept |
Get the absolute charge magnitude.
- Returns
- Elementary charge magnitude e
◆ extractCharge()
| float Acts::SinglyCharged::extractCharge |
( |
double | qOverP | ) |
const |
|
constexprnoexcept |
Extract the signed charge from q/p.
- Parameters
-
| qOverP | Charge over momentum |
- Returns
- Signed elementary charge (+e or -e)
◆ extractMomentum()
| double Acts::SinglyCharged::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::SinglyCharged::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 ±e) |
- Returns
- Charge over momentum