Skip to content

Commit

Permalink
Properly handle charge swap (AliceO2Group#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf authored Nov 29, 2021
1 parent c8bef4d commit dc43485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PWGDQ/Tasks/v0selector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,8 @@ struct v0selector {
auto bTrack = getTrackParCov(casc.bachelor_as<FullTracksExt>());

if (cpos < 0) { //swap charge
auto pTrack = getTrackParCov(casc.v0_as<aod::V0s>().negTrack_as<FullTracksExt>());
auto nTrack = getTrackParCov(casc.v0_as<aod::V0s>().posTrack_as<FullTracksExt>());
pTrack = getTrackParCov(casc.v0_as<aod::V0s>().negTrack_as<FullTracksExt>());
nTrack = getTrackParCov(casc.v0_as<aod::V0s>().posTrack_as<FullTracksExt>());
}

int nCand = fitter.process(pTrack, nTrack);
Expand Down

0 comments on commit dc43485

Please sign in to comment.