XENON1T / pax

The XENON1T raw data processor [deprecated]
BSD 3-Clause "New" or "Revised" License
16 stars 15 forks source link

Refactor S1 AFT probability calculation #660

Closed pdeperio closed 6 years ago

pdeperio commented 6 years ago

Factor out S1 AFT probability calculation into s1_area_fraction_top_probability function for use also in hax (https://github.com/XENON1T/hax/pull/193) and AC analysis.

Required for AC analysis also since manual calculation in lax is being removed (https://github.com/XENON1T/lax/pull/126), which was a 3rd place of outdated code duplication.

(And a bunch of lint fixes.)

feigaodm commented 6 years ago

thanks for the update, now it's much more convenient to use.

pdeperio commented 6 years ago

This file has been manually copied to pax_v6.8.0 environment:

/project/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/pax-6.8.0-py3.4.egg/pax/plugins/interaction_processing/S1AreaFractionTopProbability.py
pdeperio commented 6 years ago

This file has been manually copied to pax_v6.8.0.1 environment:

/project/lgrandi/anaconda3/envs/pax_v6.8.0.1/lib/python3.4/site-packages/pax-6.8.0.1-py3.4.egg/pax/plugins/interaction_processing/S1AreaFractionTopProbability.py