Skip to content

Commit 70195e1

Browse files
committed
Switch to track template
1 parent fa6a244 commit 70195e1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

PWGLF/Utils/strangenessBuilderHelper.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ strangenessBuilderHelper::strangenessBuilderHelper() {
5252
// builds V0 from two tracks. Does not check any conditionals
5353
// except for DCA fitter convergence (should be minimal overhead)
5454
// Resulting properties can be checked with strangenessBuilderHelper::v0
55+
56+
template <typename TTrack>
5557
bool strangenessBuilderHelper::buildV0Candidate(
5658
o2::aod::Collision const& collision,
57-
soa::Join<o2::aod::TracksIU, o2::aod::TracksExtra, o2::aod::TracksCovIU>::iterator const& positiveTrack,
58-
soa::Join<o2::aod::TracksIU, o2::aod::TracksExtra, o2::aod::TracksCovIU>::iterator const& negativeTrack,
59+
TTrack const& positiveTrack,
60+
TTrack const& negativeTrack,
5961
bool useCollinearFit){
6062
// Calculate DCA with respect to the collision associated to the V0, not individual tracks
6163
gpu::gpustd::array<float, 2> dcaInfo;

PWGLF/Utils/strangenessBuilderHelper.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,10 @@ class strangenessBuilderHelper
110110
public:
111111
strangenessBuilderHelper();
112112

113+
template <typename TTrack>
113114
bool buildV0Candidate(o2::aod::Collision const& collision,
114-
soa::Join<o2::aod::TracksIU, o2::aod::TracksExtra, o2::aod::TracksCovIU>::iterator const& positiveTrack,
115-
soa::Join<o2::aod::TracksIU, o2::aod::TracksExtra, o2::aod::TracksCovIU>::iterator const& negativeTrack,
115+
TTrack const& positiveTrack,
116+
TTrack const& negativeTrack,
116117
bool useCollinearFit = false);
117118

118119
o2::base::MatLayerCylSet* lut; // material LUT for DCA fitter

0 commit comments

Comments
 (0)