XENONnT / straxen

Streaming analysis for XENON
BSD 3-Clause "New" or "Revised" License
20 stars 32 forks source link

scale coordinate properly #1218

Closed jingqiangye closed 1 year ago

jingqiangye commented 1 year ago

What does the code in this PR do / what does it improve?

The FDC map is made based on (x, y, drift time), it has to be scaled by drift velocity before applying corrections based on (x, y, z). However, the current implementation of coordinate scaling is wrong.

Can you briefly describe how it works?

Use

self.map.scale_coordinates([1., 1., - self.electron_drift_velocity])

to properly scale the coordinate.

Can you give a minimal working example (or illustrate with a figure)?

The illustration can be found here.

jingqiangye commented 1 year ago

This is solved by https://github.com/XENONnT/corrections/pull/197.