ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches

Charge and momentum interpretation for neutral particles. More...

#include <Acts/EventData/Charge.hpp>

Public Member Functions

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.

Detailed Description

Charge and momentum interpretation for neutral particles.

Constructor & Destructor Documentation

◆ 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
absQAbsolute charge magnitude (must be zero for neutral particles)

Member Function Documentation

◆ 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
qOverPCharge 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
momentumParticle momentum magnitude
signedQSigned charge (must be 0 for neutral particles)
Returns
Charge over momentum (1/momentum for neutral particles)