-
Notifications
You must be signed in to change notification settings - Fork 12
Description
With @julianmgerber's latest merge, the GR Hit energy is now saved in the Evta file, but we're getting duplications for each GR Strip Hit, and we still have the corresponding hit saved to the file with undefined position.
For example:
ID 1040
CL 0.000000000
TI 0.000000000
HT 3;1.63427e+307;1.63427e+307;1.63427e+307;46.7025;1.63427e+307;1.63427e+307;1.63427e+307;1.65116
CC NStripHits 2
QA StripPairing (GR Hit: Detector ID 0 and Energy 46.702471) (GR Hit: Detector ID 0 and Energy 46.702471)
BD GR Veto
This is an event which has two strip hits, both GR strips. The "GR Hit" message is duplicated.
Also, the resulting GR Hit should not be streamed as "HT 3" since we cannot recover the position information. This means we have to remove this Hit at some point. Maybe we should wait until the last minute before writing to file, or maybe we can remove it in StripPairing since we can't do anything in the DepthCalibration to determine position anyways?
The chi-square module should also flag the GR Hits so we have the same functionality through both algorithms.