|
ACTS
Experiment-independent tracking
|
Particle hypothesis used in reconstruction. More...
#include <Acts/EventData/GenericParticleHypothesis.hpp>
Public Types | |
| using | ChargeType = charge_t |
| Type alias for charge type used in particle hypothesis. | |
Public Member Functions | |
| template<typename other_charge_t> | |
| constexpr | GenericParticleHypothesis (const GenericParticleHypothesis< other_charge_t > &other) |
| Copy from another charge hypothesis. | |
| GenericParticleHypothesis (PdgParticle absPdg) | |
| Creates a particle hypothesis using the absolute PDG. | |
| constexpr | GenericParticleHypothesis (PdgParticle absPdg, float mass, ChargeType chargeType) |
| Creates a particle hypothesis using absolute PDG, mass and the charge type. | |
| constexpr float | absoluteCharge () const noexcept |
| Get the hypothesized absolute charge. | |
| constexpr PdgParticle | absolutePdg () const noexcept |
| Get the hypothesized absolute PDG. | |
| constexpr const ChargeType & | chargeType () const noexcept |
| Get the hypothesized charge type. | |
| template<typename T> | |
| constexpr auto | extractCharge (T qOverP) const noexcept |
| Extracts the signed charge from the q over p track parameter using the charge hypothesis. | |
| template<typename T> | |
| constexpr auto | extractMomentum (T qOverP) const noexcept |
| Extracts the particle momentum from the q over p track parameter using the charge hypothesis. | |
| constexpr float | mass () const noexcept |
| Get the hypothesized mass. | |
| template<typename P, typename Q> | |
| constexpr auto | qOverP (P momentum, Q signedQ) const noexcept |
| Calculate the q over p track parameter with the given absolute momentum and charge. | |
| std::ostream & | toStream (std::ostream &os) const |
| Output stream representation of the particle hypothesis. | |
Particle hypothesis used in reconstruction.
The reconstruction hypothesis consists of absolute PDG code, mass and absolute charge.
| using Acts::GenericParticleHypothesis< charge_t >::ChargeType = charge_t |
Type alias for charge type used in particle hypothesis.
|
constexpr |
Creates a particle hypothesis using absolute PDG, mass and the charge type.
| absPdg | the absolute PDG |
| mass | the particle mass |
| chargeType | the type of charge |
|
explicit |
Creates a particle hypothesis using the absolute PDG.
The mass and charge is looked up using findMass and findCharge. If the lookup fails an exception is thrown.
| absPdg | the absolute PDG |
|
explicitconstexpr |
Copy from another charge hypothesis.
| other | The other particle hypothesis to copy from |
|
constexprnoexcept |
Get the hypothesized absolute charge.
|
constexprnoexcept |
Get the hypothesized absolute PDG.
|
constexprnoexcept |
Get the hypothesized charge type.
|
constexprnoexcept |
Extracts the signed charge from the q over p track parameter using the charge hypothesis.
| qOverP | the q over p track parameter. |
|
constexprnoexcept |
Extracts the particle momentum from the q over p track parameter using the charge hypothesis.
| qOverP | the q over p track parameter. |
|
constexprnoexcept |
Get the hypothesized mass.
|
constexprnoexcept |
Calculate the q over p track parameter with the given absolute momentum and charge.
| momentum | the absolute momentum. |
| signedQ | the signed charge. |
| std::ostream & Acts::GenericParticleHypothesis< charge_t >::toStream | ( | std::ostream & | os | ) | const |
Output stream representation of the particle hypothesis.
| os | Output stream to write to |