message: fix DCal Phi band or Perp cone UE track selection
diff: @@ -641,6 +641,14 @@ void AliIsolationCut::CalculateTrackSignalInCone
  if ( fFillHistograms && fFillEtaPhiHistograms )
  fhEtaPhiTrack->Fill(etaTrack, phiTrack, histoWeight);
  + // Angles between trigger and track
  + Double_t dEta = etaTrig - etaTrack;
  + Double_t dPhi = phiTrig - phiTrack;
  +
  + // Shift phi angle when trigger is close to 0 or 360
  + if ( dPhi >= TMath::Pi() ) dPhi-=TMath::TwoPi();
  + if ( dPhi <= -TMath::Pi() ) dPhi+=TMath::TwoPi();
  +
  if ( fICMethod > kSumBkgSubIC && rad > fConeSize )
  {
  // Phi band
  @@ -652,7 +660,7 @@ void AliIsolationCut::CalculateTrackSignalInCone
  phiTrack > (phiTrig-fConeSize-fConeSizeBandGap) ) takeIt = kFALSE;
  // Look only half TPC with respect candidate, avoid opposite side jet
  - if ( TMath::Abs(phiTrig-phiTrack) > TMath::PiOver2() ) takeIt = kFALSE;
  + if ( TMath::Abs(dPhi) > TMath::PiOver2() ) takeIt = kFALSE;
  // Within eta cone size
  if ( etaTrack > (etaTrig-fConeSize) && etaTrack < (etaTrig+fConeSize) && takeIt )
  @@ -667,7 +675,7 @@ void AliIsolationCut::CalculateTrackSignalInCone
  fhPhiBandTrackPt->Fill(ptTrig , ptTrack, histoWeight);
  if ( fFillEtaPhiHistograms )
  - fhPhiBandTrackEtaPhi->Fill(etaTrig, phiTrig, histoWeight);
  + fhPhiBandTrackEtaPhi->Fill(etaTrack, phiTrack, histoWeight);
  }
  } // phi band
  @@ -692,7 +700,7 @@ void AliIsolationCut::CalculateTrackSignalInCone
  fhEtaBandTrackPt->Fill(ptTrig , ptTrack, histoWeight);
  if ( fFillEtaPhiHistograms )
  - fhEtaBandTrackEtaPhi->Fill(etaTrig, phiTrig, histoWeight);
  + fhEtaBandTrackEtaPhi->Fill(etaTrack, phiTrack, histoWeight);
  }
  } // eta band
  @@ -704,10 +712,8 @@ void AliIsolationCut::CalculateTrackSignalInCone
  //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  if ( fICMethod == kSumBkgSubIC )
  {
  - Double_t dEta = etaTrig - etaTrack;
  -
  - Double_t dPhiPlu = phiTrig - phiTrack + TMath::PiOver2();
  - Double_t dPhiMin = phiTrig - phiTrack - TMath::PiOver2();
  + Double_t dPhiPlu = dPhi + TMath::PiOver2();
  + Double_t dPhiMin = dPhi - TMath::PiOver2();
  Double_t argPlu = dPhiPlu*dPhiPlu + dEta*dEta;
  Double_t argMin = dPhiMin*dPhiMin + dEta*dEta;
  