Add setCreationMode to FairParSet#1552
Conversation
In rare cases, when parameteres deriving from `FairParSet` are not present in the input parameter file and are meant to be created during the run, `FairParSet::init()` throws an error message. By using the newly introduced setter `setCreationMode` this message is suppressed. This allows solution to issue FairRootGroup#1541.
…Set` These functions seem not be used in `FairRoot`. Deprecated them.
WalkthroughWalkthroughThe 19.0.1 update for FairRoot focuses on modernizing the Changes
Sequence Diagram(s) (Beta)sequenceDiagram
participant User
participant FairParSet
User ->> FairParSet: setCreateMode(true)
FairParSet ->> FairParSet: creationMode = true
User ->> FairParSet: isCreationMode()
FairParSet -->> User: true
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (3)
Additional context usedLanguageTool
Markdownlint
Additional comments not posted (10)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
|
Can you extract the chore / deprecate part into its own PR? I like those and would like to get them finished and merged first. |
|
After having thought about this whole thing a bit (see And I really think by now, that the So alternative proposol (If you agrree): Repurpose this PR and drop the |
|
@ChristianTackeGSI , I also do not like this knob name, I will work on this PR. |
In rare cases, when parameteres deriving from
FairParSetare not present in the input parameter file and are meant
to be created during the run,
FairParSet::init()throwsan error message.
By using the newly introduced setter
setCreationModethis message is suppressed.
This allows solution to issue #1541.
The PR also does some clean-up in
FairParSet.Checklist:
Summary by CodeRabbit
New Features
setCreateMode()method to manage creation modes.Deprecations
fill()andstore()in theFairParSetclass.Improvements
Documentation