-
Notifications
You must be signed in to change notification settings - Fork 117
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
Switch Shield #598
Switch Shield #598
Conversation
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'll need to do some testing, but some first comments that stood out while reading.
What do you mean by registration?
I'm not sure what our UZH colleagues are doing now. A yaml would probably be nicest, as it allows us to add comments etc. and is both flexible and readable. Ideally, a format we could share with the SBT/vessel/other subsystems would be nice.
I believe the muon shield optimisation now includes constraints to avoid overlaps with the floor. Unfortunately, none are implemented yet. @Gfrisella, maybe you can provide the dimensions of a configuration we can use via the dictionary/yaml? |
The geometry is registered here https://github.com/eduard322/FairShip/blob/68fa73cede0025222016b4a05fd92f68a07f53cc/macro/run_simScript.py#L224 |
Indeed, in the case of run_simScript.py it seems completely redundant, but in the case of loading old data for the reconstruction, it has its use for forward-compatibility. Maybe we can find a way to avoid the unnecessary step in run_simScript.py. |
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.
From my side this looks OK.
Please add a change log entry describing your change.
Since this affects the muon shield, I will wait for an OK from @Gfrisella on behalf of the muon shield before merging.
pre-commit.ci run |
@olantwin sorry, stupid question: how is change log usually done? Should I add CHANGELOG.md to the commit or something? |
It's just a text file. Add a succinct entry under unreleased describing the change, and commit the change to the pull request branch. |
@Gfrisella Could you please review this pull request? |
07d8001
to
721722d
Compare
c4a52ab
to
8a69867
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.
Did some cleanup of the changelog and ran clang-format on the changed lines.
Looks good to me.
@Gfrisella The muon shield group is welcome to suggest improvements. For now this seems like a clear step in the right direction. @eduard322 Thanks to making a first step towards improving the muon shield implementation. |
Here is the stable version in which the usage of ROOT file for setting the dinensions of Muon Shield is removed (at least now it takes info directly from the geometry_config.py script). Several things to mention and to discuss: