message: "Adding phi to Run2 SPD tracklets to Run3 converter"
diff: @@ -683,7 +683,7 @@ void AliAnalysisTaskAO2Dconverter::UserExec(Option_t *)
  AliMultiplicity *mlt = fESD->GetMultiplicity();
  Int_t Ntracklets = mlt->GetNumberOfTracklets();
  - Float_t theta, dphi, dphiS, dist, tgl, x;
  + Float_t theta, phi, dphi, dphiS, dist, x, tgl, alpha;
  for (Int_t itr = Ntracklets; itr--;) {
  dphi = mlt->GetDeltaPhi(itr);
  @@ -694,8 +694,14 @@ void AliAnalysisTaskAO2Dconverter::UserExec(Option_t *)
  if (dphi<0) dphiS = -dphiS;
  if (dist<1. && dphiS<0.06) {
  theta = mlt->GetTheta(itr);
  + phi = mlt->GetPhi(itr);
  tracks.fTrackType = TrackTypeEnum::Run2Tracklet;
  + // inversion formulas for snp and alpha
  + tracks.fSnp = 0.;
  + alpha = phi - TMath::Pi();
  + tracks.fAlpha = alpha;
  +
  // inversion formulas for tgl
  x = (TMath::Tan(theta/2.)-1.) / (TMath::Tan(theta/2.)+1.);
  if (TMath::Log(TMath::Tan(theta/2)) >= 0)
  @@ -706,10 +712,8 @@ void AliAnalysisTaskAO2Dconverter::UserExec(Option_t *)
  // set global track parameters to NAN
  tracks.fX = NAN;
  - tracks.fAlpha = NAN;
  tracks.fY = NAN;
  tracks.fZ = NAN;
  - tracks.fSnp = NAN;
  tracks.fSigned1Pt = NAN;
  tracks.fCYY = NAN;
  tracks.fCZY = NAN;
  @@ -742,8 +746,9 @@ void AliAnalysisTaskAO2Dconverter::UserExec(Option_t *)
  tracks.fTRDSignal = NAN;
  tracks.fTOFSignal = NAN;
  tracks.fLength = NAN;
  - }
  +
  FillTree(kTracks);
  + }
  } // end loop on tracklets
  //---------------------------------------------------------------------------
  