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