Skip to content
Snippets Groups Projects

Adapt to LHCb!4244

Closed Louis Henry requested to merge lohenry-addMoreStates2 into 2024-patches
@@ -288,10 +288,10 @@ namespace GaudiAllen::Converters::v3 {
* - The z-position of the beamline state, or
* - The z-position of a hit on the track.
*/
template<OutTracks::StateLocation L, typename AllenTrack, typename AllenState>
template<LHCb::Event::Enum::Track::StateLocation L, typename AllenTrack, typename AllenState>
float z_of(const AllenTrack track, const AllenState state)
{
using SL = OutTracks::StateLocation;
using SL = LHCb::Event::Enum::Track::StateLocation;
/// states at constant positions
if constexpr (L == SL::BegRich1) {
return StateParameters::ZBegRich1;
@@ -324,7 +324,7 @@ namespace GaudiAllen::Converters::v3 {
* Allen-specific equivalent of LHCb::Event::conversion::update_velo_state
* Copies a state into the specified location of the new track.
*/
template<OutTracks::StateLocation L, typename TrackProxy>
template<LHCb::Event::Enum::Track::StateLocation L, typename TrackProxy>
bool update_velo_state(TrackProxy& outTrack, const KalmanVeloStateWithQoP& state)
{
outTrack.template field<OutTag::States>()[outTrack.state_index(L)].setPosition(state.x, state.y, state.z);
@@ -385,7 +385,7 @@ namespace GaudiAllen::Converters::v3 {
/// Actual implementation of update states
/// Assumes that the beamline state is the first element of the states vector
template<typename TrackProxy, typename AllenTrack, OutTracks::StateLocation... L>
template<typename TrackProxy, typename AllenTrack, LHCb::Event::Enum::Track::StateLocation... L>
static bool update_states_impl(
TrackProxy& outTrack,
const AllenTrack& track,
Loading