|
ACTS
Experiment-independent tracking
|
Particle hypothesis used in reconstruction. More...
#include <Acts/EventData/ParticleHypothesis.hpp>
Public Member Functions | |
| constexpr | ParticleHypothesis (PdgParticle absPdg, float mass, ChargeHypothesis charge, std::optional< double > momentum=std::nullopt) |
| Creates a particle hypothesis using absolute PDG, mass and the charge type. | |
| constexpr | ParticleHypothesis (PdgParticle absPdg, float mass, float absCharge, std::optional< double > momentum=std::nullopt) |
| Creates a particle hypothesis using absolute PDG, mass and the charge type. | |
| ParticleHypothesis (PdgParticle absPdg, std::optional< double > momentum=std::nullopt) | |
| Creates a particle hypothesis using the absolute PDG. | |
| float | absoluteCharge () const noexcept |
| Get the hypothesized absolute charge. | |
| constexpr PdgParticle | absolutePdg () const noexcept |
| Get the hypothesized absolute PDG. | |
| constexpr const ChargeHypothesis & | charge () const noexcept |
| Get the hypothesized charge. | |
| constexpr float | extractCharge (double qOverP) const noexcept |
| Extracts the signed charge from the q over p track parameter using the charge hypothesis. | |
| constexpr double | extractMomentum (double qOverP) const noexcept |
| Extracts the particle momentum from the q over p track parameter using the charge hypothesis. | |
| bool | hasMomentumHypothesis () const noexcept |
| Check if the particle hypothesis has a hypothesized momentum. | |
| constexpr float | mass () const noexcept |
| Get the hypothesized mass. | |
| double | momentumHypothesis () const |
| Get the hypothesized momentum. | |
| constexpr double | qOverP (double momentum, float 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. | |
| ParticleHypothesis | withAlteredAbsoluteCharge (float absoluteCharge) const |
| Create a new particle hypothesis with the same absolute PDG and mass but a different charge. | |
| ParticleHypothesis | withAlteredMass (float mass) const |
| Create a new particle hypothesis with the same absolute PDG and charge but a different mass. | |
| ParticleHypothesis | withAlteredPdg (PdgParticle absPdg) const |
| Create a new particle hypothesis with the same mass and charge but a different absolute PDG. | |
| ParticleHypothesis | withMomentumHypothesis (double momentum) const |
| Create a new particle hypothesis with the same absolute PDG and mass but a different momentum hypothesis. | |
| ParticleHypothesis | withMomentumHypothesis (std::optional< double > momentum) const |
| Create a new particle hypothesis with the same absolute PDG and mass but a different momentum hypothesis. | |
| ParticleHypothesis | withoutMomentumHypothesis () const |
| Create a new particle hypothesis with the same absolute PDG and mass but no momentum hypothesis. | |
Static Public Member Functions | |
| static ParticleHypothesis | chargedGeantino () |
| Create a charged geantino particle hypothesis with unit charge. | |
| static ParticleHypothesis | chargedGeantino (float absoluteCharge) |
| Create a charged geantino particle hypothesis with custom charge. | |
| static ParticleHypothesis | electron () |
| Create an electron particle hypothesis. | |
| static ParticleHypothesis | geantino () |
| Create a neutral geantino particle hypothesis (massless neutral particle). | |
| static ParticleHypothesis | kaon () |
| Create a charged kaon particle hypothesis. | |
| static ParticleHypothesis | muon () |
| Create a muon particle hypothesis. | |
| static ParticleHypothesis | photon () |
| Create a photon particle hypothesis. | |
| static ParticleHypothesis | pion () |
| Create a charged pion particle hypothesis. | |
| static ParticleHypothesis | pion0 () |
| Create a neutral pion particle hypothesis. | |
| static ParticleHypothesis | pionLike (float absoluteCharge) |
| Create a pion-like particle hypothesis with custom charge. | |
| static ParticleHypothesis | proton () |
| Create a proton particle hypothesis. | |
Particle hypothesis used in reconstruction.
The reconstruction hypothesis consists of absolute PDG code, mass and absolute charge.
|
constexpr |
Creates a particle hypothesis using absolute PDG, mass and the charge type.
| absPdg | the absolute PDG |
| mass | the particle mass |
| absCharge | the absolute charge |
| momentum | the optional particle momentum |
|
constexpr |
Creates a particle hypothesis using absolute PDG, mass and the charge type.
| absPdg | the absolute PDG |
| mass | the particle mass |
| charge | the charge type |
| momentum | the optional particle momentum |
|
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 |
| momentum | the optional particle momentum |
|
nodiscardnoexcept |
Get the hypothesized absolute charge.
|
nodiscardconstexprnoexcept |
Get the hypothesized absolute PDG.
|
nodiscardconstexprnoexcept |
Get the hypothesized charge.
|
staticnodiscard |
Create a charged geantino particle hypothesis with unit charge.
|
staticnodiscard |
Create a charged geantino particle hypothesis with custom charge.
| absoluteCharge | The absolute charge value |
|
staticnodiscard |
Create an electron particle hypothesis.
|
nodiscardconstexprnoexcept |
Extracts the signed charge from the q over p track parameter using the charge hypothesis.
| qOverP | the q over p track parameter. |
|
nodiscardconstexprnoexcept |
Extracts the particle momentum from the q over p track parameter using the charge hypothesis.
| qOverP | the q over p track parameter. |
|
staticnodiscard |
Create a neutral geantino particle hypothesis (massless neutral particle).
|
nodiscardnoexcept |
Check if the particle hypothesis has a hypothesized momentum.
|
staticnodiscard |
Create a charged kaon particle hypothesis.
|
nodiscardconstexprnoexcept |
Get the hypothesized mass.
|
nodiscard |
Get the hypothesized momentum.
|
staticnodiscard |
Create a muon particle hypothesis.
|
staticnodiscard |
Create a photon particle hypothesis.
|
staticnodiscard |
Create a charged pion particle hypothesis.
|
staticnodiscard |
Create a neutral pion particle hypothesis.
|
staticnodiscard |
Create a pion-like particle hypothesis with custom charge.
| absoluteCharge | The absolute charge value |
|
staticnodiscard |
Create a proton particle hypothesis.
|
nodiscardconstexprnoexcept |
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::ParticleHypothesis::toStream | ( | std::ostream & | os | ) | const |
Output stream representation of the particle hypothesis.
| os | Output stream to write to |
|
nodiscard |
Create a new particle hypothesis with the same absolute PDG and mass but a different charge.
| absoluteCharge | The new absolute charge value |
|
nodiscard |
Create a new particle hypothesis with the same absolute PDG and charge but a different mass.
| mass | The new mass value |
|
nodiscard |
Create a new particle hypothesis with the same mass and charge but a different absolute PDG.
| absPdg | The new absolute PDG value |
|
nodiscard |
Create a new particle hypothesis with the same absolute PDG and mass but a different momentum hypothesis.
| momentum | The new momentum hypothesis value |
|
nodiscard |
Create a new particle hypothesis with the same absolute PDG and mass but a different momentum hypothesis.
| momentum | The new optional momentum hypothesis value |
|
nodiscard |
Create a new particle hypothesis with the same absolute PDG and mass but no momentum hypothesis.