Skip to content

Commit

Permalink
Returned complex strcuture by reference instead of value.
Browse files Browse the repository at this point in the history
Also made the type explicit.
cms-patatrack#615 (comment)
  • Loading branch information
ericcano committed May 26, 2021
1 parent e783810 commit 323eca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CUDADataFormats/Track/interface/TrackSoAHeterogeneousT.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class TrackSoAHeterogeneousT {
constexpr auto chi2(int32_t i) const { return chi2_(i); }

// stateAtBS accessors
constexpr auto & stateAtBS() { return stateAtBS_; }
constexpr auto stateAtBS() const { return stateAtBS_; }
constexpr TrajectoryStateSoAT<S> & stateAtBS() { return stateAtBS_; }
constexpr TrajectoryStateSoAT<S> const & stateAtBS() const { return stateAtBS_; }
// eta accessors
constexpr auto & eta(int32_t i) { return eta_(i); }
constexpr auto eta(int32_t i) const { return eta_(i); }
Expand Down

0 comments on commit 323eca7

Please sign in to comment.