-
Notifications
You must be signed in to change notification settings - Fork 29
Corrected the hit time information #15
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
…g the trigger shift.
|
I do not think this change is correct. The hit times in the npz files are supposed to be the same as the hit times in the WCSim root files. The trigger times are stored separately, the same as in WCSim root files, they should not be added to the hit times here. Often we want to use the hit times relative to the trigger time, not the hit time added to the trigger time, so we keep them separate in the npz file. When using the npz files, you can choose to add the trigger times to the hit times if you want. |
|
Sorry I've just realised that it's not the trigger time you're using to modify the hit times, but the trigger info. Either way it's still not correct to do that. The hit times should remain unmodified. I'm not actually sure what the TriggerInfo contains - I've never used it. The actual trigger time is usally available from the GetDate() of the header of the trigger, and this is stored in the npz file separately. If you need to store the TriggerInfo, then add it as a new variable, but don't modify the hit times. |
|
The problem is mainly due to the constant trigger offset of 950 ns which is added to the hit time when NHit trigger is used in WCSim. This causes the hit time to be out of selection in e.g. here if you assume the usual selection range. |
|
We handle this in WatChMaL by removing any trigger offset later. That's what we have done for IWCD, which had the same offset, for years without any trouble. That max hit time parameter is also configurable, and should be set to a large number generally. The limit of 100 was only introduced for more recent simulations (e.g. for WCTE) that did not have the 950 offset any more. Either way, the trigger time (which should allow you to account for the 950 offset) is already saved in the npz file. It would be nice to add the TriggerInfo too. |
|
yep if this is the usual practice then it's better to configure the max hit time parameter directly in h5 conversion. @GilbertRdzP do you understand the discussion? |
|
Yes, I understand. I'll start working on saving just the Trigger Offset and not modifying the hit time information |
To fix some issues with an offset in hit time information. Trigger Time and Trigger Shift were taken into consideration while defining hit time.