message: Restoring the possibility to analyse charged particles in MC
diff: @@ -4534,27 +4534,29 @@ TObjArray* AliAnalysisTaskBFPsi::GetAcceptedTracks(AliVEvent *event, Double_t gC
  }
  if(fUseRapidity) {// use rapidity instead of pseudorapidity in correlation histograms
  -
  if (fCrossCorr){
  if(fExcludeResonancesLabel){
  if (isTrigOrAssoc==kTrig)
  tracksAccepted->Add(new AliBFBasicParticle(vY, vPhi, vPt, vCharge, correction, kTrig, -1, kMotherLabel));
  else if (isTrigOrAssoc==kAssoc)
  tracksAccepted->Add(new AliBFBasicParticle(vY, vPhi, vPt, vCharge, correction, kAssoc, -1, kMotherLabel));
  - }
  + }//exclude resonances
  else {
  if (isTrigOrAssoc==kTrig)
  tracksAccepted->Add(new AliBFBasicParticle(vY, vPhi, vPt, vCharge, correction, kTrig));
  else if (isTrigOrAssoc==kAssoc)
  tracksAccepted->Add(new AliBFBasicParticle(vY, vPhi, vPt, vCharge, correction, kAssoc));
  }
  - }
  + }//cross correlations
  else {
  if(fExcludeResonancesLabel)
  tracksAccepted->Add(new AliBFBasicParticle(vY, vPhi, vPt, vCharge, correction, kBoth, -1, kMotherLabel));
  else
  tracksAccepted->Add(new AliBFBasicParticle(vY, vPhi, vPt, vCharge, correction, kBoth));
  - }
  + }//exclude resonances
  + }//rapidity
  + else {
  + tracksAccepted->Add(new AliBFBasicParticle(vEta, vPhi, vPt, vCharge, correction, kBoth));
  }
  nAcceptedTracks += 1;
  } //track loop
  