ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::SinglyCharged Struct Reference

Charge and momentum interpretation for particles with +-e charge. More...

#include <Acts/EventData/Charge.hpp>

Public Member Functions

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.

Detailed Description

Charge and momentum interpretation for particles with +-e charge.

Constructor & Destructor Documentation

◆ 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
absQAbsolute charge magnitude (must be e for singly charged particles)

Member Function Documentation

◆ 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
qOverPCharge 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
qOverPCharge 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
momentumParticle momentum magnitude
signedQSigned charge (must be ±e)
Returns
Charge over momentum