Skip to content

Commit

Permalink
add makeTrackState function to MTJ
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Dec 12, 2023
1 parent 27cc858 commit ebc9779
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Core/include/Acts/EventData/MultiTrajectory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,15 @@ class MultiTrajectory {
return self().addTrackState_impl(mask, iprevious);
}

/// Add a track state to the container and return a track state proxy to it
/// This effectively calls @c addTrackState and @c getTrackState
/// @note Only available if the track state container is not read-only
/// @return a track state proxy to the newly added track state
template <bool RO = ReadOnly, typename = std::enable_if_t<!RO>>
TrackStateProxy makeTrackState(IndexType istate) {
return getTrackState(addTrackState(istate));
}

/// Visit all previous states starting at a given endpoint.
///
/// @param iendpoint index of the last state
Expand Down

0 comments on commit ebc9779

Please sign in to comment.