From ea79cfafa3c7fdb75d979a4b4d39a2b260b734d4 Mon Sep 17 00:00:00 2001
From: "se.gorbunov" <se.gorbunov@gsi.de>
Date: Tue, 24 Oct 2023 07:50:48 +0000
Subject: [PATCH] compiler warning fixes in PWGDIL

---
 analysis/PWGDIL/dielectron/conversion/CbmAnaConversion.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/analysis/PWGDIL/dielectron/conversion/CbmAnaConversion.cxx b/analysis/PWGDIL/dielectron/conversion/CbmAnaConversion.cxx
index 172d962b95..ff51ebf47c 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();
-- 
GitLab