-
Notifications
You must be signed in to change notification settings - Fork 97
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
Remove the depracated warning when using gconfig.C #1011
base: dev
Are you sure you want to change the base?
Conversation
5986b68
to
b9c0dad
Compare
b9c0dad
to
09e150a
Compare
09e150a
to
f6077eb
Compare
Please rebase on current |
3715d06
to
453ab6c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took the liberty and removed the commits that added and removed stuff (with the netto result of doing nothing). Also rebased to dev
and renamed one commit from Add missing library
to Tune MQ pixelDetector example output
.
7c189ff
to
453ab6c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted my changes, because the PR turned out not quite ready for merging.
- See inline comments
- Please clean the commits from changes that are introduced and again removed within this PR.
- Two following commits have the same commit message, but one of them does not match the changes, please reword more appropriately.
(once done, press the button "Ready for review" at the bottom of this page right above the CI checks list)
@@ -49,6 +49,7 @@ void run_sim(Int_t nEvents = 10, TString mcEngine = "TGeant3", Int_t fileId = 0, | |||
// ----- Create simulation run ---------------------------------------- | |||
FairRunSim* run = new FairRunSim(); | |||
run->SetName(mcEngine); // Transport engine | |||
run->SetSimulationConfig(new FairVMCConfig()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The FairVMCConfig
object appears to be leaking (not going to repeat this comment for the other places in this PR).
The centos 7 CI tests fail, because they don't have yaml-cpp installed. As Dennis already pointed out, we should get clear on how this should be handled? |
Next step: Memory management. If SetSimulationConfig gets an owning pointer (as all the proposed examples do), FairRunSim should clean up that memory. My proposal would be to perform the same steps as for Sink/Source: |
b629ac1
to
0e602c3
Compare
Use the FairVMCConfig in the simulation macros. Addresses issue FairRootGroup#1010.
Added yaml-cpp requirement to main CMakeLists. Changed include order in Tutorial1 macro. Removed endl from LOG(info) in FairYamlVMCConfig.
Changes the FairGenericVMCConfig and FairRunSim, as well as macros/files using the config.
0e602c3
to
2c0dd25
Compare
Use the FairVMCConfig in the simulation macros.
Addresses issue #1010.
Checklist:
[ X ] Rebased against
dev
branch[ X ] My name is in the resp. CONTRIBUTORS/AUTHORS file
[ X ] Followed the seven rules of great commit messages