Skip to content

Commit efa4771

Browse files
committed
fix CI error
1 parent 4ac7170 commit efa4771

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ int External()
55

66
TFile file(path.c_str(), "read");
77
if (file.IsZombie()) {
8-
std::err << "Cannot open ROOT file " << path << std::endl;
8+
std::cerr << "Cannot open ROOT file " << path << std::endl;
99
return 1;
1010
}
1111

1212
int nInjectedParticles = 0;
1313
TTree* tree = (TTree*)file.Get("o2sim");
1414

1515
if (!tree) {
16-
std::cerr << "Cannot find tree o2sim in file " << path << "\n";
16+
std::cerr << "Cannot find tree o2sim in file " << path << std::endl;
1717
return 1;
1818
}
1919

@@ -23,7 +23,7 @@ int External()
2323
int nEvents = tree->GetEntries();
2424
for (int i = 0; i < nEvents; i++) {
2525
tree->GetEntry(i);
26-
for (const auto& track : tracks) {
26+
for (auto& track : *tracks) {
2727
auto pdgCode = track.GetPdgCode();
2828
if (pdgCode == pdgToCheck) {
2929
// not injecting anti-particle

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ int External()
55

66
TFile file(path.c_str(), "read");
77
if (file.IsZombie()) {
8-
std::err << "Cannot open ROOT file " << path << std::endl;
8+
std::cerr << "Cannot open ROOT file " << path << std::endl;
99
return 1;
1010
}
1111

@@ -23,7 +23,7 @@ int External()
2323
int nEvents = tree->GetEntries();
2424
for (int i = 0; i < nEvents; i++) {
2525
tree->GetEntry(i);
26-
for (const auto& track : tracks) {
26+
for (auto& track : *tracks) {
2727
auto pdgCode = track.GetPdgCode();
2828
if (pdgCode == pdgToCheck) {
2929
// not injecting anti-particle

0 commit comments

Comments
 (0)