Skip to content

Commit

Permalink
refactor: Align abs for particle hypothesis (#2397)
Browse files Browse the repository at this point in the history
Pulled out of #2341
  • Loading branch information
andiwand committed Aug 25, 2023
1 parent 77ca0e8 commit c535c5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Core/include/Acts/EventData/GenericParticleHypothesis.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ class GenericParticleHypothesis {
template <typename other_charge_t>
constexpr GenericParticleHypothesis(
const GenericParticleHypothesis<other_charge_t>& other)
: m_absPdg{other.absPdg()},
: m_absPdg{other.absolutePdg()},
m_mass{other.mass()},
m_chargeType{other.chargeType()} {}

/// Get the hypothesized absolute PDG.
constexpr PdgParticle absPdg() const noexcept { return m_absPdg; }
constexpr PdgParticle absolutePdg() const noexcept { return m_absPdg; }

/// Get the hypothesized mass.
constexpr float mass() const noexcept { return m_mass; }
Expand Down
6 changes: 3 additions & 3 deletions Core/include/Acts/EventData/ParticleHypothesis.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ class NonNeutralChargedParticleHypothesis
}

static NonNeutralChargedParticleHypothesis pionLike(float absQ) {
return NonNeutralChargedParticleHypothesis(pion().absPdg(), pion().mass(),
absQ);
return NonNeutralChargedParticleHypothesis(pion().absolutePdg(),
pion().mass(), absQ);
}
};

Expand Down Expand Up @@ -136,7 +136,7 @@ class ParticleHypothesis : public GenericParticleHypothesis<AnyCharge> {
}

static ParticleHypothesis pionLike(float absQ) {
return ParticleHypothesis(pion().absPdg(), pion().mass(), absQ);
return ParticleHypothesis(pion().absolutePdg(), pion().mass(), absQ);
}
};

Expand Down

0 comments on commit c535c5d

Please sign in to comment.