from hax.minitrees import TreeMaker
[docs]class TimeDifferences(TreeMaker):
"""Compute time differences between S1s and S2s
The convention is that these times are how much later the
second largest signal is from the main one. For example,
this could be the time of the second largest S2 minus the
time of the largest S2. Therefore, you'll have a positive
number if the second largest S2 came after the main S2.
Provides:
- dt_s1s: Time difference between two largest S1s
- dt_s2s: Time difference between two largest S2s
Notes:
* Positive times means the second largest signal is later.
* The code is intentionally not general for clarity.
* This code does not use the interaction concept in any way!
* 'Largest' refers to uncorrected area
"""
extra_branches = ['peaks.hit_time_mean']
__version__ = '0.0.1'