Exclude all particles that are not kaons in MC mode, ExcludeResonancesInMC (only...
authormiweber <m.weber@cern.ch>
Tue, 13 Jan 2015 11:15:47 +0000 (12:15 +0100)
committermiweber <m.weber@cern.ch>
Tue, 13 Jan 2015 11:15:47 +0000 (12:15 +0100)
PWGCF/EBYE/BalanceFunctions/AliAnalysisTaskBFPsi.cxx

index 0f7b868..92a5db7 100755 (executable)
@@ -2179,7 +2179,7 @@ TObjArray* AliAnalysisTaskBFPsi::GetAcceptedTracks(AliVEvent *event, Double_t gC
          Bool_t kExcludeParticle = kFALSE;
          Int_t gMotherIndex = particle->GetFirstMother();
 
-         if(gMotherIndex != -1) {
+         if(TMath::Abs(particle->GetPdgCode()) != 321 || gMotherIndex != -1) {
            // AliMCParticle* motherTrack = dynamic_cast<AliMCParticle *>(event->GetTrack(gMotherIndex));
            // if(motherTrack) {
            //   TParticle *motherParticle = motherTrack->Particle();