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+ # NEV_TEST> 5
2+ [Diamond]
3+ width[2]=6.0
4+
5+ [GeneratorExternal]
6+ fileName =${O2DPG_MC_CONFIG_ROOT}/MC/config/ALICE3/pythia8/generator_pythia8_ALICE3.C
7+ funcName =generator_pythia8_ALICE3()
8+
9+ [GeneratorPythia8]
10+ config =${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGEM/pythia8/generator/pythia8_pp_5360_VM2ee.cfg
Original file line number Diff line number Diff line change 1+ int External () {
2+ std ::string path {"o2sim_Kine.root" };
3+ // Check that file exists, can be opened and has the correct tree
4+ TFile file (path .c_str (), "READ ");
5+ if (file .IsZombie ())
6+ {
7+ std ::cerr << "Cannot open ROOT file " << path << "\n" ;
8+ return 1 ;
9+ }
10+ auto tree = (TTree * )file .Get ("o2sim" );
11+ if (!tree )
12+ {
13+ std ::cerr << "Cannot find tree o2sim in file " << path << "\n" ;
14+ return 1 ;
15+ }
16+ std ::vector < o2 ::MCTrack > * tracks {};
17+ tree -> SetBranchAddress ("MCTrack" , & tracks );
18+
19+ // Check if all events are filled
20+ auto nEvents = tree -> GetEntries ();
21+ for (Long64_t i = 0 ; i < nEvents ; ++ i )
22+ {
23+ tree -> GetEntry (i );
24+ if (tracks -> empty ())
25+ {
26+ std ::cerr << "Empty entry found at event " << i << "\n" ;
27+ return 1 ;
28+ }
29+ }
30+ // // check if each event has at least two oxygen ions
31+ // for (int i = 0; i < nEvents; i++)
32+ // {
33+ // auto check = tree->GetEntry(i);
34+ // int count = 0;
35+ // for (int idxMCTrack = 0; idxMCTrack < tracks->size(); ++idxMCTrack)
36+ // {
37+ // auto track = tracks->at(idxMCTrack);
38+ // if (track.GetPdgCode() == 1000080160)
39+ // {
40+ // count++;
41+ // }
42+ // }
43+ // if (count < 2)
44+ // {
45+ // std::cerr << "Event " << i << " has less than 2 oxygen ions\n";
46+ // return 1;
47+ // }
48+ // }
49+
50+ return 0 ;
51+ }
52+
53+ int pythia8 ()
54+ {
55+ return External ();
56+ }
Original file line number Diff line number Diff line change 1+ # ## Specify beams
2+ Beams:idA = 2212
3+ Beams:idB = 2212
4+ Beams:eCM = 5360. # ## energy
5+
6+ Beams:frameType = 1
7+ ParticleDecays:limitTau0 = on
8+ ParticleDecays:tau0Max = 10. # ## match alice: 1cm/c = 10.0mm/c
9+
10+ # ## processes
11+ SoftQCD:inelastic = on # all inelastic processes
12+
13+ # default: do nothing, Monash 2013 will do its thing
14+ Tune:pp = 14
15+
16+ Random:setSeed = on
17+
18+ # don't modify pion's PR as charged multiplicity is drived by them.
19+
20+ # eta
21+ 221:oneChannel = 1 1.0 0 -11 11 22
22+
23+ # eta'
24+ 331:oneChannel = 1 0.294 0 -11 11 111
25+ 331:addChannel = 1 0.706 0 -11 11 223
26+
27+ # rho
28+ 113:oneChannel = 1 1.0 0 -11 11
29+
30+ # omega
31+ 223:oneChannel = 1 0.088 0 -11 11
32+ 223:addChannel = 1 0.912 0 -11 11 111
33+
34+ # phi
35+ 333:oneChannel = 1 0.710 0 -11 11
36+ 333:addChannel = 1 0.032 0 -11 11 111
37+ 333:addChannel = 1 0.258 0 -11 11 221
You can’t perform that action at this time.
0 commit comments