Skip to content

Commit

Permalink
sonar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Jan 30, 2025
1 parent fa59d56 commit aa431d2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Core/include/Acts/EventData/TrackProxy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ class TrackProxy {
/// @note Only available if the track proxy is read-only
/// @param other the other track proxy
explicit TrackProxy(const MutableTrackProxy& other)
requires(ReadOnly)
requires ReadOnly
: m_container{other.m_container}, m_index{other.m_index} {}

/// Copy assignment operator from mutable track proxy
/// @note Only available if the track proxy is read-only
/// @param other the other track proxy
/// @return reference to this track proxy
TrackProxy& operator=(const MutableTrackProxy& other)
requires(ReadOnly)
requires ReadOnly
{
m_container = other.m_container;
m_index = other.m_index;
Expand Down
4 changes: 2 additions & 2 deletions Core/include/Acts/EventData/TrackStateProxy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,15 @@ class TrackStateProxy {
/// @note Only available if the track state proxy is read-only
/// @param other The other TrackStateProxy to construct from
explicit TrackStateProxy(const TrackStateProxy<Trajectory, M, false>& other)
requires(ReadOnly)
requires ReadOnly
: m_traj{other.m_traj}, m_istate{other.m_istate} {}

/// Assignment operator to from mutable @c TrackStateProxy
/// @param other The other TrackStateProxy to assign from
/// @note Only available if the track state proxy is read-only
/// @return Reference to this TrackStateProxy
TrackStateProxy& operator=(const TrackStateProxy<Trajectory, M, false>& other)
requires(ReadOnly)
requires ReadOnly
{
m_traj = other.m_traj;
m_istate = other.m_istate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ TrackFindingAlgorithm::TrackFindingAlgorithm(Config config,
if (m_cfg.trackSelectorCfg.has_value()) {
m_trackSelector = std::visit(
[](const auto& cfg) -> std::optional<Acts::TrackSelector> {
return std::optional<Acts::TrackSelector>(Acts::TrackSelector(cfg));
return Acts::TrackSelector(cfg);
},
m_cfg.trackSelectorCfg.value());
}
Expand Down
2 changes: 1 addition & 1 deletion Fatras/include/ActsFatras/EventData/Particle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class Particle {
/// Particle hypothesis.
Acts::ParticleHypothesis hypothesis() const {
return Acts::ParticleHypothesis(
absolutePdg(), mass(),
absolutePdg(), static_cast<float>(mass()),
Acts::AnyCharge{static_cast<float>(absoluteCharge())});
}
/// Particl qOverP.
Expand Down

0 comments on commit aa431d2

Please sign in to comment.