-
Notifications
You must be signed in to change notification settings - Fork 26
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
Shifting CRT T0 and T1 properly in CAFMaker #323
Conversation
@ jedori0228 I assume this goes with And these are targeting production but not critical right now for a patch so they will be deferred to next production release early next year. Please say otherwise. |
@henrylay97 can you weigh in as in the obj one, please? |
Of course. It's not an area of the code I'm familiar with so apologies if my question is naive. Principle looks fine to me ✔️ I appreciate that this PR purely allows for a different reference time. Its not clear to me where its ensured that MC doesn't have this correction applied? Given this function is applied regardless of whether the event is MC or data? Is the value carefully set elsewhere to avoid this problem? |
Yes, it only affects CAFMaker, and not critical for now. |
Timings in MC is not understood fully yet (at least for me), and we are not doing this shifts for it; |
So my worry is that it currently defaults to true, so we would need to actively set it to false in icaruscode & sbndcode fcls https://github.com/SBNSoftware/sbncode/blob/develop/sbncode/CAFMaker/CAFMakerParams.h#L332-L335 |
(Tagging @francescopoppi and @gputnam)
Also, assigning
Note that the true value is ~1.65e18, so -1.65e18/1e3 should be ~-1.65e15; the order is different, and it comes from the fact that |
trigger build SBNSoftware/sbnobj#72 |
trigger build LArSoft/lar*@LARSOFT_SUITE_v09_65_01 SBNSoftware/sbnobj#72 |
✔️ CI build for LArSoft Succeeded on slf7 for c7:prof -- details available through the CI dashboard |
✔️ CI build for LArSoft Succeeded on slf7 for e20:prof -- details available through the CI dashboard |
🚨 For more details about the warning phase, check the ci_tests SBND phase logs parent CI build details are available through the CI dashboard |
🚨 For more details about the warning phase, check the ci_tests SBND phase logs parent CI build details are available through the CI dashboard |
🚨 For more details about the warning phase, check the ci_tests ICARUS phase logs parent CI build details are available through the CI dashboard |
🚨 For more details about the warning phase, check the ci_tests ICARUS phase logs parent CI build details are available through the CI dashboard |
CRT T1 is a time reference to the trigger unlike T0 which is an absolute timestamp. When
CRTUseTS0
is set to false and we are savingT1
inCRTHit::time
, it should be shift by+srtrigger.trigger_within_gate