File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
MC/config/ALICE3/ini/tests Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments