Skip to content

Commit 2bcba53

Browse files
committed
Fixed variable initialisation
1 parent 1287748 commit 2bcba53

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PWGLF/Tasks/Resonances/kstar892LightIon.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ struct Kstar892LightIon {
217217
};
218218

219219
int noOfDaughters = 2;
220+
int initialValue = -9999999;
220221

221222
double pionPIDpTLow = 1.0, pionPIDpTHigh = 2.5, kaonPIDpTLow = 0.7, kaonPIDpTHigh = 2.5;
222223

@@ -2758,7 +2759,7 @@ struct Kstar892LightIon {
27582759
bool isTrueKstar = false;
27592760
bool hasCommonMother = false;
27602761

2761-
int commonMotherPDG;
2762+
int commonMotherPDG = initialValue;
27622763

27632764
for (const auto& mothertrack1 : mctrack1.mothers_as<aod::McParticles>()) {
27642765
for (const auto& mothertrack2 : mctrack2.mothers_as<aod::McParticles>()) {

0 commit comments

Comments
 (0)