francois-drielsma / matcha

Repository housing python modules to aid in matching CRT hits to TPC tracks.
MIT License
1 stars 0 forks source link

Validate CRTHit get_time_in_microseconds method for data #3

Open andrewmogan opened 1 year ago

andrewmogan commented 1 year ago

In its current state, this function was just copy-pasted from the LArSoft equivalent and translated to python using ChatGPT. This should be validated.

For MC, the CRTHit t0 nanoseconds part can be taken as the absolute time and converted to microseconds. For data, however, we need to supply the trigger timestamp and ensure that the "crt_time" variable is behaving as expected. In the absence of data, we should find some reasonable trigger timestamp values and treat our MC as data for testing purposes.