Skip to content

Commit eb7372c

Browse files
committed
Fix typo
1 parent 856d118 commit eb7372c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

MC/config/ALICE3/ini/tests/xi_PbPb.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ int External()
1111

1212
int nInjectedParticles = 0;
1313
TTree* tree = (TTree*)file.Get("o2sim");
14-
std::vector<o2::MCTrack>* tracks;
14+
std::vector<o2::MCTrack>* tracks{};
1515
tree->SetBranchAdress("MCTrack", &tracks)
1616

1717
int nEvents = tree->GetEntries();
1818
for (int i = 0; i < nEvents; i++) {
1919
tree->GetEntry(i);
2020
for (const auto& track : tracks) {
21-
auto pdgCode = track.getPdgCode();
21+
auto pdgCode = track.GetPdgCode();
2222
if (pdgCode == pdgToCheck) {
2323
// not injecting anti-particle
2424
nInjectedParticles++;
@@ -33,4 +33,4 @@ int External()
3333
}
3434

3535
return 0;
36-
}
36+
}

MC/config/ALICE3/ini/tests/xi_pp.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int External()
1818
for (int i = 0; i < nEvents; i++) {
1919
tree->GetEntry(i);
2020
for (const auto& track : tracks) {
21-
auto pdgCode = track.getPdgCode();
21+
auto pdgCode = track.GetPdgCode();
2222
if (pdgCode == pdgToCheck) {
2323
// not injecting anti-particle
2424
nInjectedParticles++;

0 commit comments

Comments
 (0)