Skip to content

Commit b7d4dcd

Browse files
Jinhyun ParkJinhyun Park
authored andcommitted
Added initiliazation to variables
1 parent f23a53e commit b7d4dcd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

PWGHF/TableProducer/candidateCreatorXic0Omegac0Qa.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,15 @@ struct HfCandidateCreatorXic0Omegac0Qa {
258258
HfEventSelection hfEvSel;
259259

260260
// PDG Id of daughter tracks & V0s & cascades & charm baryons - Used in KFParticle
261-
int pdgIdOfV0DauPos, pdgIdOfV0DauNeg, pdgIdOfBach, pdgIdOfCharmBach;
262-
int pdgIdOfV0, pdgIdOfCascade, pdgIdOfCharmBaryon;
261+
int pdgIdOfV0DauPos{}, pdgIdOfV0DauNeg{}, pdgIdOfBach{}, pdgIdOfCharmBach{};
262+
int pdgIdOfV0{}, pdgIdOfCascade{}, pdgIdOfCharmBaryon{};
263263

264264
// Track PID - Used in DCAFitter
265-
int trackPidOfCascade;
265+
int trackPidOfCascade{};
266266

267267
// Mass of daughter tracks & V0s & cascades & charm baryons;
268-
float massOfV0DauPos, massOfV0DauNeg, massOfCharmBach;
269-
float massOfV0, massOfCascade;
268+
float massOfV0DauPos{}, massOfV0DauNeg{}, massOfCharmBach{};
269+
float massOfV0{}, massOfCascade{};
270270

271271
// Pointer of histograms for QA
272272
std::shared_ptr<TH1> hInvMassCharmBaryonToXiPi, hInvMassCharmBaryonToOmegaPi, hInvMassCharmBaryonToOmegaKa;

0 commit comments

Comments
 (0)