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+ [GeneratorPythia8]
2+ config =${O2DPG_MC_CONFIG_ROOT}/MC/config/common/pythia8/generator/pythia8_inel_difftuned.cfg
Original file line number Diff line number Diff line change 1+ int pythia8 () {
2+ std ::string path {"o2sim_Kine.root" };
3+
4+ TFile file (path .c_str (), "READ ");
5+ if (file .IsZombie ()) {
6+ std ::cerr << "Cannot open ROOT file " << path << "\n" ;
7+ return 1 ;
8+ }
9+
10+ auto tree = (TTree * )file .Get ("o2sim" );
11+ if (!tree ) {
12+ std ::cerr << "Cannot find tree o2sim in file " << path << "\n" ;
13+ return 1 ;
14+ }
15+ std ::vector < o2 ::MCTrack > * tracks {};
16+ tree -> SetBranchAddress ("MCTrack" , & tracks );
17+
18+ auto nEvents = tree -> GetEntries ();
19+ if (nEvents == 0 ) {
20+ std ::cerr << "No event of interest\n" ;
21+ return 1 ;
22+ }
23+ return 0 ;
24+ }
Original file line number Diff line number Diff line change 1+ # ## beams
2+ Beams:idA 2212 # proton
3+ Beams:idB 2212 # proton
4+ Beams:eCM 13600. # GeV
5+
6+ # ## processes
7+ SoftQCD:inelastic on # all inelastic processes
8+
9+ # ## decays
10+ ParticleDecays:limitTau0 on
11+ ParticleDecays:tau0Max 10.
12+
13+ # ## adjust diffraction
14+ # ## note that PYTHIA calculates the ND sigma via a
15+ # ## 'remaining from total' formula: no need to put
16+ # ## that in by hand
17+
18+ SigmaTotal:mode 0
19+ SigmaDiffractive:mode 0
20+ SigmaTotal:sigmaTot 78.6
21+ SigmaTotal:sigmaEl 0.0
22+ SigmaTotal:sigmaXB 10.625
23+ SigmaTotal:sigmaAX 10.625
24+ SigmaTotal:sigmaXX 9.78
25+ SigmaTotal:sigmaAXB 0.0
You can’t perform that action at this time.
0 commit comments