diff --git a/analysis/PWGDIL/dielectron/conversion/CbmAnaConversion.cxx b/analysis/PWGDIL/dielectron/conversion/CbmAnaConversion.cxx index 172d962b95daf26871c650818cbfe72c8ccd8b63..ff51ebf47ce9c0784de9c2455e362a02833ec2be 100644 --- a/analysis/PWGDIL/dielectron/conversion/CbmAnaConversion.cxx +++ b/analysis/PWGDIL/dielectron/conversion/CbmAnaConversion.cxx @@ -1465,13 +1465,13 @@ void CbmAnaConversion::FillMCTracklists(CbmMCTrack* mctrack, int) mctrack->GetStartVertex(v); if (v.Z() <= 70) { int motherId = mctrack->GetMotherId(); - if (motherId != -1 || motherId == -1) { + if (motherId >= 0) { CbmMCTrack* mother = (CbmMCTrack*) fMcTracks->At(motherId); int mcMotherPdg = -1; if (NULL != mother) mcMotherPdg = mother->GetPdgCode(); if (mcMotherPdg == 22 || mcMotherPdg == 111 || mcMotherPdg == 221) { int grandmotherId = mother->GetMotherId(); - if (grandmotherId != -1 || grandmotherId == -1) { + if (grandmotherId >= 0 || true) { // CbmMCTrack* grandmother = (CbmMCTrack*) fMcTracks->At(grandmotherId); // int mcGrandmotherPdg = -1; // if (NULL != grandmother) mcGrandmotherPdg = grandmother->GetPdgCode();