-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add nersc-style pileup #129
Conversation
… remove pass-by-reference for TG4Event into TMS_Event
…oat effects when saving hit times
…ent. But it's fixed by merging inside. As long as optical effects are applied first, we can remerge a second time later and fix the bug for now
@@ -330,7 +359,7 @@ TMS_Event::TMS_Event(TMS_Event &event, int slice) : TMS_Hits(event.GetHits(slice | |||
|
|||
|
|||
nTrueTrajectories = -999; | |||
VertexIdOfMostEnergyInEvent = -999; | |||
VertexIdOfMostEnergyInEvent = -9991; |
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.
Is this number intentional? May be better to have just 9s, even though that's still not completely ideal.
Edit: Nevermind, I get it. Don't love it but if it works it's not stupid.
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.
Sorry for the delay, have been in the lab all week. Looks good so am approving for now, if you've run this on NERSC and your own production without issues feel free to merge.
The old pileup is also supported. Takes care to make sure all branches are filled sensibly. The primary lepton/neutrino are always from the vertex that contributed the most visible energy for that timeslice. That's right in 99% of cases. Can also look at full particle list if needed. There are a bunch of branches which are likely overfull, like the fact that it saves all primary and "interesting" particles per spill. But root compression takes care of it. See talk at TMS studies meeting