Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hits fraction for AFT cut #196

Merged
merged 1 commit into from
Jan 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions hax/treemakers/LoneSignals.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Lone signal in pre_s1 window
class LoneSignalsPreS1(TreeMaker):
__version__ = '0.1.0'
__version__ = '0.2'
extra_branches = ['peaks.*']

def extract_data(self, event):
Expand Down Expand Up @@ -61,6 +61,8 @@ def extract_data(self, event):
result['s1_1_area'] = s1_sorted[1].area
result['s1_1_center_time'] = s1_sorted[1].center_time
result['s1_1_aft'] = s1_sorted[1].area_fraction_top
result['s1_1_n_hits'] = s1_sorted[1].n_hits
result['s1_1_hit_aft'] = s1_sorted[1].hits_fraction_top
result['s1_1_50p_width'] = s1_sorted[1].range_area_decile[5]
result['s1_1_90p_width'] = s1_sorted[1].range_area_decile[9]
result['s1_1_rise_time'] = -s1_sorted[1].area_decile_from_midpoint[1]
Expand Down Expand Up @@ -121,7 +123,7 @@ def extract_data(self, event):

# Extraction of peak information for Lone-S2/S1 studies
class LoneSignals(TreeMaker):
__version__ = '0.0.1'
__version__ = '0.1'
extra_branches = ['peaks.*']

def extract_data(self, event):
Expand Down