message: Fix Hypertriton3 task
diff: @@ -411,6 +411,7 @@ void AliAnalysisTaskHypertriton3::UserExec(Option_t *)
  lVector hypertriton;
  ROOT::Math::XYZVectorF decayVtx, decayVtxLambda;
  lVector lproL, lpiL;
  + std::unordered_map<int, int> mcMap;
  auto fillTreeInfo = [&](std::array<AliESDtrack *, 3> tracks, std::array<float, 3> nSigmaTPC, std::array<float, 3> nSigmaTOF) {
  const float mass = hypertriton.mass();
  if (mass < fMassWindow[0] || mass > fMassWindow[1])
  @@ -478,7 +479,9 @@ void AliAnalysisTaskHypertriton3::UserExec(Option_t *)
  {
  try
  {
  - nVertLambda = fVertexerLambda.process(*tracks[1], *tracks[2]);
  + o2::track::TrackParCov *prTrack = static_cast<o2::track::TrackParCov *>((AliExternalTrackParam *)tracks[1]);
  + o2::track::TrackParCov *piTrack = static_cast<o2::track::TrackParCov *>((AliExternalTrackParam *)tracks[2]);
  + nVertLambda = fVertexerLambda.process(*prTrack, *piTrack);
  }
  catch (std::runtime_error &e)
  {
  @@ -571,8 +574,13 @@ void AliAnalysisTaskHypertriton3::UserExec(Option_t *)
  int otherInd[2]{2, 1};
  for (int track{1}; track < 3; ++track)
  {
  - if (hypo[track][0] && hypo[otherInd[track-1]][1]) {
  - fillTreeInfo();
  + if (hypo[track][0] && hypo[otherInd[track - 1]][1])
  + {
  +
  + std::array<AliESDtrack *, 3> sortTracks{tracks[track], tracks[otherInd[track - 1]], tracks[0]};
  + std::array<float, 3> nSigmasTPC{fPIDResponse->NumberOfSigmasTPC(sortTracks[0], kAliPID[0]),fPIDResponse->NumberOfSigmasTPC(sortTracks[1], kAliPID[1]), fPIDResponse->NumberOfSigmasTPC(sortTracks[2], kAliPID[2])};
  + std::array<float, 3> nSigmasTOF{fPIDResponse->NumberOfSigmasTOF(sortTracks[0], kAliPID[0]),fPIDResponse->NumberOfSigmasTOF(sortTracks[1], kAliPID[1]), fPIDResponse->NumberOfSigmasTOF(sortTracks[2], kAliPID[2])};
  + fillTreeInfo(sortTracks, nSigmasTPC, nSigmasTOF);
  }
  }
  }
  @@ -594,7 +602,7 @@ void AliAnalysisTaskHypertriton3::UserExec(Option_t *)
  KFParticle prodVertex{kfPVertex};
  - std::unordered_map<int, int> mcMap;
  +
  RHyperTriton3KF &kfRecHyp = *(RHyperTriton3KF *)fRecHyp;
  RHyperTriton3O2 &o2RecHyp = *(RHyperTriton3O2 *)fRecHyp;
  