File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "generators" : [
3+ {
4+ "name" : " pythia8" ,
5+ "config" : {
6+ "config" : " ${O2_ROOT}/share/Generators/egconfig/pythia8_inel.cfg" ,
7+ "hooksFileName" : " " ,
8+ "hooksFuncName" : " " ,
9+ "includePartonEvent" : false ,
10+ "particleFilter" : " " ,
11+ "verbose" : 0
12+ }
13+ },
14+ {
15+ "name" : " evtpool" ,
16+ "config" : {
17+ "eventPoolPath" : " ${O2DPG_MC_CONFIG_ROOT}/MC/config/examples/hybrid/examplemanifest.dat" ,
18+ "skipNonTrackable" : true ,
19+ "roundRobin" : false ,
20+ "randomize" : true ,
21+ "rngseed" : 0 ,
22+ "randomphi" : false
23+ }
24+ }
25+ ],
26+ "fractions" : [
27+ 1 ,
28+ 1
29+ ]
30+ }
Original file line number Diff line number Diff line change 1+ alien:///alice/sim/2025/EP25i1_GeneratorHF_D2H_bbbar_Mode2_XiC_NoDecay/1/001/evtpool.root
2+ alien:///alice/sim/2025/EP25i1_GeneratorHF_D2H_bbbar_Mode2_XiC_NoDecay/1/002/evtpool.root
3+ alien:///alice/sim/2025/EP25i1_GeneratorHF_D2H_bbbar_Mode2_XiC_NoDecay/1/003/evtpool.root
4+ alien:///alice/sim/2025/EP25i1_GeneratorHF_D2H_bbbar_Mode2_XiC_NoDecay/1/004/evtpool.root
5+ alien:///alice/sim/2025/EP25i1_GeneratorHF_D2H_bbbar_Mode2_XiC_NoDecay/1/005/evtpool.root
6+ alien:///alice/sim/2025/EP25i1_GeneratorHF_D2H_bbbar_Mode2_XiC_NoDecay/1/006/evtpool.root
7+ alien:///alice/sim/2025/EP25i1_GeneratorHF_D2H_bbbar_Mode2_XiC_NoDecay/1/007/evtpool.root
8+ alien:///alice/sim/2025/EP25i1_GeneratorHF_D2H_bbbar_Mode2_XiC_NoDecay/1/008/evtpool.root
9+ alien:///alice/sim/2025/EP25i1_GeneratorHF_D2H_bbbar_Mode2_XiC_NoDecay/1/009/evtpool.root
10+ alien:///alice/sim/2025/EP25i1_GeneratorHF_D2H_bbbar_Mode2_XiC_NoDecay/1/010/evtpool.root
Original file line number Diff line number Diff line change 1+ [GeneratorHybrid]
2+ configFile = ${O2DPG_MC_CONFIG_ROOT}/MC/config/examples/hybrid/example.json
3+ switchExtToHybrid = true
Original file line number Diff line number Diff line change 1+ # ---> GeneratorExtToHybrid
2+ [GeneratorHybrid]
3+ configFile = alien:///alice/cern.ch/user/p/pwg_pp/Hybrid/alienhybrid.json
4+ switchExtToHybrid = true
Original file line number Diff line number Diff line change 1+ int Hybrid ()
2+ {
3+ std ::string path {"o2sim_Kine.root" };
4+ // Check that file exists, can be opened and has the correct tree
5+ TFile file (path .c_str (), "READ ");
6+ if (file .IsZombie ())
7+ {
8+ std ::cerr << "Cannot open ROOT file " << path << "\n" ;
9+ return 1 ;
10+ }
11+ auto tree = (TTree * )file .Get ("o2sim" );
12+ if (!tree )
13+ {
14+ std ::cerr << "Cannot find tree o2sim in file " << path << "\n" ;
15+ return 1 ;
16+ }
17+ std ::vector < o2 ::MCTrack > * tracks {};
18+ tree -> SetBranchAddress ("MCTrack" , & tracks );
19+
20+ // Check if all events are filled
21+ auto nEvents = tree -> GetEntries ();
22+ for (Long64_t i = 0 ; i < nEvents ; ++ i )
23+ {
24+ tree -> GetEntry (i );
25+ if (tracks -> empty ())
26+ {
27+ std ::cerr << "Empty entry found at event " << i << "\n" ;
28+ return 1 ;
29+ }
30+ }
31+ // Check if there are 100 events, as simulated in the o2dpg-test
32+ if (nEvents != 100 )
33+ {
34+ std ::cerr << "Expected 100 events, got " << nEvents << "\n" ;
35+ return 1 ;
36+ }
37+ return 0 ;
38+ }
You can’t perform that action at this time.
0 commit comments