tashutt / Gampy

Python based treatment of TPC detector response to gamma rays for Megalib data
MIT License
1 stars 1 forks source link

Handling z > 0 charges #13

Open DanielMDouglas opened 1 month ago

DanielMDouglas commented 1 month ago

charges with z > 0 register a negative drift distance and cause the program to exit. Handle these more gracefully, by filtering or skipping the event (configurable?)

tashutt commented 3 weeks ago

I think this should probably be dealt at the time the Track object is defined. But will also have to prevent diffusion from taking charges across the anode plane.
Agree on giving options as to what to do. The default is probably to cut those charges out of the event, and keep track of amount missing in the either truth or meta.