-
Notifications
You must be signed in to change notification settings - Fork 82
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
Added postMomentum to StepPointMC #379
Conversation
Hi @resnegfk,
which require these tests: build. @Mu2e/fnalbuild-users, @Mu2e/write have access to CI actions on master. The following users requested to be notified about changes to these packages: |
☀️ The tests passed at ref 75a558b.
For more information, please check the job page here. Logfiles may also be accessed at this link. |
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.
Can you please remind me which use case(s) this addresses?
One of them was mentioned by @ehrlich-uva in #310 In general, it opens possibilities, where this already calculated |
The module that creates the CrvSteps would use the postMomentum. It currently just estimates it based on the startMomentum and the deposited energy of the step, but without direction information. The startMomentum and postMomentum are used to find the average speed, which is needed for the simulation of the Cerenkov photons and for the calculation of the "postTime" (which would also be nice to have). However, the errors made by not having an accurate postMomentum and postTime are small. The direction of the postMomentum is not needed currently. |
I think StepPointMC is a bit of a mess because it is trying to cover too many use cases. Andrei |
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.
Looks OK to me.
I agree with Andrei's comment. Now that we have DetectorSteps, I think we should rethink the role of StepPointMC. Having a specialized VDStep would be a good start. |
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 did not like adding postPosition here, and I do not like postMomentum either, but doing things right would take a lot more effort.
I have created #383 to keep track of that.
Code changes in the current PR look straightforward, so I am approving it now.
Added post step momentum to StepPointMC to enable future use when creating higher level objects