Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Dec 7, 2024
1 parent 1c752b7 commit 715d888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion straxen/plugins/merged_s2s/merged_s2s.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ def compute(self, peaklets, lone_hits):

strax.compute_widths(merged_s2s)

merged_s2s["type"] = 2
assert self.merge_without_s1
area_top = peaklets["area_per_channel"][:, : self.n_top_pmts].sum(axis=1)
# by using pos-rec density, merge_without_s1 must be true
dr_cnf_avg = self.weighted_average_dr(area_top, peaklets, merged_s2s)
merged_s2s["type"] = 2
mask = merged_s2s["area"] < self.position_density_s2_area_threshold
mask &= dr_cnf_avg > self.dr_cnf_avg_threshold
merged_s2s["type"][mask] = 20
Expand Down

0 comments on commit 715d888

Please sign in to comment.