-
Notifications
You must be signed in to change notification settings - Fork 198
Add diffraction-tuned pythia8 inel generator #2393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+51
−0
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8cb0704
Add diffraction-tuned pythia8 inel cfg
ddobrigk 8744dd5
Remove extra lines
ddobrigk c182cb2
Adjust default energy to 13.6
ddobrigk b0d8772
Add ini, test file
ddobrigk 7747d82
Fix settings
ddobrigk 73674f2
Fix comma into period
ddobrigk 0ad4e44
Further fixes
ddobrigk adba281
One last fix
ddobrigk dd78168
External -> pythia8
ddobrigk 184d640
Update pythia8_inel_difftuned.cfg
ddobrigk 2836496
Update pythia8_inel_difftuned.cfg
ddobrigk dfec9ce
Update pythia8_inel_difftuned.cfg
ddobrigk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| [GeneratorPythia8] | ||
| config=${O2DPG_MC_CONFIG_ROOT}/MC/config/common/pythia8/generator/pythia8_inel_difftuned.cfg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| int pythia8() { | ||
| std::string path{"o2sim_Kine.root"}; | ||
|
|
||
| TFile file(path.c_str(), "READ"); | ||
| if (file.IsZombie()) { | ||
| std::cerr << "Cannot open ROOT file " << path << "\n"; | ||
| return 1; | ||
| } | ||
|
|
||
| auto tree = (TTree *)file.Get("o2sim"); | ||
| if (!tree) { | ||
| std::cerr << "Cannot find tree o2sim in file " << path << "\n"; | ||
| return 1; | ||
| } | ||
| std::vector<o2::MCTrack> *tracks{}; | ||
| tree->SetBranchAddress("MCTrack", &tracks); | ||
|
|
||
| auto nEvents = tree->GetEntries(); | ||
| if (nEvents == 0) { | ||
| std::cerr << "No event of interest\n"; | ||
| return 1; | ||
| } | ||
| return 0; | ||
| } |
25 changes: 25 additions & 0 deletions
25
MC/config/common/pythia8/generator/pythia8_inel_difftuned.cfg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| ### beams | ||
| Beams:idA 2212 # proton | ||
| Beams:idB 2212 # proton | ||
| Beams:eCM 13600. # GeV | ||
|
|
||
| ### processes | ||
| SoftQCD:inelastic on # all inelastic processes | ||
|
|
||
| ### decays | ||
| ParticleDecays:limitTau0 on | ||
| ParticleDecays:tau0Max 10. | ||
|
|
||
| ### adjust diffraction | ||
| ### note that PYTHIA calculates the ND sigma via a | ||
| ### 'remaining from total' formula: no need to put | ||
| ### that in by hand | ||
|
|
||
| SigmaTot:mode 0 | ||
| SigmaDiffractive:mode 0 | ||
| SigmaTotal:sigmaTot 78.6 | ||
| SigmaTotal:sigmaEl 0.0 | ||
| SigmaTotal:sigmaXB 10.625 | ||
| SigmaTotal:sigmaAX 10.625 | ||
| SigmaTotal:sigmaXX 9.78 | ||
| SigmaTotal:sigmaAXB 0.0 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.