Skip to content
Snippets Groups Projects

compiler warning fixes in PWGDIL

Merged Sergey Gorbunov requested to merge se.gorbunov/cbmroot:warnDielectron into master
All threads resolved!
+ 2
2
@@ -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();
Loading