diff --git a/DataFormats/TrackSoA/interface/TracksSoA.h b/DataFormats/TrackSoA/interface/TracksSoA.h index c3e3741fa3e7..29796bf11f4f 100644 --- a/DataFormats/TrackSoA/interface/TracksSoA.h +++ b/DataFormats/TrackSoA/interface/TracksSoA.h @@ -46,10 +46,10 @@ namespace reco { // move to use the layer gaps defined in CAGeometry ALPAKA_FN_HOST_ACC inline int nLayers(const TrackSoAConstView &tracks, - const TrackHitSoAConstView &hits, - uint16_t maxLayers, - uint32_t const *__restrict__ layerStarts, - int32_t i) { + const TrackHitSoAConstView &hits, + uint16_t maxLayers, + uint32_t const *__restrict__ layerStarts, + int32_t i) { auto start = (i == 0) ? 0 : tracks[i - 1].hitOffsets(); auto end = tracks[i].hitOffsets(); auto hitId = hits[start].id(); @@ -76,17 +76,11 @@ namespace reco { return float((0.0f < v) - (v < 0.0f)); } - ALPAKA_FN_HOST_ACC inline float phi(const TrackSoAConstView &tracks, int32_t i) { - return tracks[i].state()(0); - } + ALPAKA_FN_HOST_ACC inline float phi(const TrackSoAConstView &tracks, int32_t i) { return tracks[i].state()(0); } - ALPAKA_FN_HOST_ACC inline float tip(const TrackSoAConstView &tracks, int32_t i) { - return tracks[i].state()(1); - } + ALPAKA_FN_HOST_ACC inline float tip(const TrackSoAConstView &tracks, int32_t i) { return tracks[i].state()(1); } - ALPAKA_FN_HOST_ACC inline float zip(const TrackSoAConstView &tracks, int32_t i) { - return tracks[i].state()(4); - } + ALPAKA_FN_HOST_ACC inline float zip(const TrackSoAConstView &tracks, int32_t i) { return tracks[i].state()(4); } ALPAKA_FN_HOST_ACC inline bool isTriplet(const TrackSoAConstView &tracks, int32_t i) { return tracks[i].nLayers() == 3; @@ -124,10 +118,7 @@ namespace reco { } template - ALPAKA_FN_HOST_ACC inline void copyFromDense(TrackSoAView &tracks, - V5 const &v, - M5 const &cov, - int32_t i) { + ALPAKA_FN_HOST_ACC inline void copyFromDense(TrackSoAView &tracks, V5 const &v, M5 const &cov, int32_t i) { tracks[i].state() = v.template cast(); for (int j = 0, ind = 0; j < 5; ++j) for (auto k = j; k < 5; ++k) @@ -135,10 +126,7 @@ namespace reco { } template - ALPAKA_FN_HOST_ACC inline void copyToDense(const TrackSoAConstView &tracks, - V5 &v, - M5 &cov, - int32_t i) { + ALPAKA_FN_HOST_ACC inline void copyToDense(const TrackSoAConstView &tracks, V5 &v, M5 &cov, int32_t i) { v = tracks[i].state().template cast(); for (int j = 0, ind = 0; j < 5; ++j) { cov(j, j) = tracks[i].covariance()(ind++);