Port features needed for HF enriched MC productions#12486
Merged
benedikt-voelkel merged 3 commits intoJan 9, 2024
Merged
Conversation
* Introduce proper generator IDs
* 3 values
* global ID assigend to a o2::eventgen::PrimaryGenerator
* cocktail constituent ID in case a o2::eventgen::Generator consists
of multiple cocktail constituents. If a specific constituent is used
for an event, that event will be flagged with that ID
* source ID to mark source in emebdding scenarios
* all 3 values are encoded into a single short, passed to mcCollision
table at the end
* provide decoding via helper functions/dynamic columns in mcCOllision
table
Set the IDs
* Global ID (and short description)
* can be set via
o2-sim --confKeyValues \
"PrimaryGenerator.id=3;PrimaryGenerator.description=a specific gen"
* Each cocktail constituent must first be registered via
o2::eventgen::Generator::addCocktailConstituent(int, std::string)
then, each egnerated event must set a valid ID during
o2::eventgen::Generator::GenerateEvent
or
o2::eventgen::Generator::importParticles
if cocktail constituents are set but no valid ID is given, no event
will be generated
* source ID is derived by the framework as before, not up to the user
* combine MC Gen ID and particle status to MCGenProperties
(naming not final, MCGenHelper, MCGenUtils?)
Please consider the following formatting changes
* Be consistent with Run1 and Run2
* rename cocktail to subGenerator everywhere
* a cocktail should stay a cocktail of different generators
* remove comment in AnalysisDataModel
* Adjust ID ranges
* generator ID from 0 to 127 (included)
* sub-generator ID from -1 to 30 (included)
* source ID from 0 to 15 (included)
---------
Co-authored-by: Benedikt Volkel <benedikt.volkel@cern.ch>
in particular avoid problem retrieving info 'subgenerator_id': no such key
Contributor
Author
|
@sawenzel @benedikt-voelkel Could you merge this PR please? |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.