-
Notifications
You must be signed in to change notification settings - Fork 13
Add time for decay vertices #31
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
base: master
Are you sure you want to change the base?
Conversation
src/erhic/TreeToHepMC.cxx
Outdated
|
|
||
| // recalcuate vertex time using: dt = (SV-PV).Mag()/(pMother/eMother) | ||
| // we assume primary vertex is at (0,0,0) with time = 0 | ||
| // this is done for any secondary vertices 1 um away from primary vertex |
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.
There is no reason to make assumptions about the primary vertex. Simply use the distance to the mother's vertex (and appropriate beta). This way, you correctly capture cascading decays.
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 agree with it. The calculation doesn't depend on (0,0,0). It is for any primary vertex.
|
Using the mother particle vertex is easy to implement. Thinking of cascading decays, we need to add the decay time for the mother to daughters as well, right? |
Yes, but that's nothing special, you just need to use t of mother instead of t=0, doesn't matter if you think of the mother as collision vertex or not, it should all recursively work out. |
…th; ii) convert to cm for BeAGLE which uses mm
stability; untabify
…s what the afterburner for beam effects expects
Briefly, what does this PR introduce?
What kind of change does this PR introduce?
Please check if this PR fulfills the following:
Does this PR introduce breaking changes? What changes might users need to make to their code?
Does this PR change default behavior?