message: DCA task: added PCC weight for secondaries from decay
diff: @@ -166,7 +166,9 @@ void AliAnalysisTaskDCArStudy::AnaTrackMC(Int_t flag)
  if(fMCSpectraWeights && 0==fMCPrimSec && !fMCPileUpTrack && fMCParticle->Particle()){ // only for primary particles
  fMCweight = fMCSpectraWeights->GetMCSpectraWeight(fMCParticle->Particle(), 0);
  }
  -
  + if(fMCSpectraWeights && 1==fMCPrimSec && !fMCPileUpTrack && fMCParticle->Particle()){ // only for secondaries from decay
  + fMCweight = fMCSpectraWeights->GetWeightForSecondaryParticle(fMCParticle->Particle());
  + }
  fHistDCA.Fill(fDCAr, fPt, fNTracksAcc, fMultPercentileV0M, fMCPrimSec);
  fHistDCAPCC.FillWeight(fMCweight, fDCAr, fPt, fNTracksAcc, fMultPercentileV0M, fMCPrimSec);
  }
  