Skip to content
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 to beam time reference for CRT-PMT matched CRTHit times #443

Closed

Conversation

aheggest
Copy link
Contributor

@aheggest aheggest commented Mar 5, 2024

Use the beam time reference for the CRT-PMT Matched CRTHit times. Before the CRT Hit time in the srcrthit object was correctly using the beam time reference, but the CRT Hit time in the srcrtpmtmatch was not. These times should be on the same timescale to be easily compared at CAF level

@aheggest aheggest requested a review from PetrilloAtWork March 5, 2024 00:22
@aheggest aheggest linked an issue Mar 5, 2024 that may be closed by this pull request
1 task
@aheggest aheggest removed the request for review from PetrilloAtWork March 5, 2024 00:24
@francescopoppi
Copy link

I would like to have a discussion toghether with @PetrilloAtWork on this subject. I have to admit, I am strongly not in favour of changing this in the CAFs, possibly we can add an additional variablt at CAFs.
The reason why I have strong opinions on this matter is that we worked hard to achieve synchronization between CRT and PMT using distributed global trigger signal between the two system. The synchronization was very accurate and we were able thanks to this to precisely identify the triggering flash (-0.6 ish us w.r.t. the Global Trigger). The reason why we did not use beam-related signals (beam-gate start, early warning, trigger_timestamp, etc...) is because they are affect by several effects (8 ns discretization, 25 ish ns jitter) and we wanted to provide a timestamp which was as precise as possible. Effectively, by adding the beam gate timing reference to our CRT-PMT objects will add to our timestamp this discretization and resolution effects, which we mitigated in the first place. It is nonetheless true that it is extremely important to have the flash/crt reference w.r.t. the beam gate start, so I second the proposal to add a new timing variable, but I strongly do not endorse changing the main one.

@aheggest
Copy link
Contributor Author

aheggest commented Mar 5, 2024

Thanks for the comment @francescopoppi. I originally added this change to have the two collections of CRT Hit times (the full CRT Hit collection CRT Hit times and the CRT-PMT Matched CRT Hit times) on the same timescale, aka using the same time reference, so they can be compared. Please note that the caf::SRCRTHit.t1 variable already uses the beam reference, and this shift can always be reversed by subtracting srtrigger.trigger_within_gate. Maybe I could add a new variable so both CRT Hit time wrt trigger and CRT Hit time wrt beamgate timestamp are saved in both CRT Hit collections?

@PetrilloAtWork
Copy link
Member

I believe there was an agreement that the unshifted time would be preserved into a new leaf.
@aheggest, do I recall right?

@aheggest
Copy link
Contributor Author

aheggest commented Mar 22, 2024

I believe there was an agreement that the unshifted time would be preserved into a new leaf. @aheggest, do I recall right?

Correct! I still have yet to implement the new leaf, I think that will require a paired sbnanaobj PR to add a new variable to the SRCRTPMTMatch. I can make this modification!

@ibsafa
Copy link
Contributor

ibsafa commented Jul 5, 2024

Hi! @aheggest any updates on this? I believe this is still waiting on the accompanying sbnanaobj PR and the necessary variable changes that Gianluca requested, correct?

@aheggest
Copy link
Contributor Author

aheggest commented Jul 8, 2024

hi @ibsafa! yes, this PR is still waiting on a new variable to be added to sbnanaobj. I will close this PR and eventually make a new one with these changes.

@aheggest aheggest closed this Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shift the CRT-PMT-Matched CRT Hit Time to the beam reference in CAFs
4 participants