Skip to content

Commit

Permalink
Reject noise count (#736)
Browse files Browse the repository at this point in the history
* only count lone hit before trigger
  • Loading branch information
feigaodm authored Mar 31, 2020
1 parent e26defc commit d439956
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 0 additions & 2 deletions pax/config/XENON1T.ini
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,6 @@ penalty_per_lone_hit = 1 # "pe" equivalent penalty
# Threshold to mark a suspicious channel
penalty_geq_this_is_suspicious = 3 # "pe" equivalent penalty



[BasicProperties.SumWaveformProperties]
# Length of the peak sum waveform field.
# Must be an even multiple of sample size, pax will add 1 sample width so there is a clear center.
Expand Down
9 changes: 5 additions & 4 deletions pax/plugins/peak_processing/RejectNoiseHits.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ def transform_event(self, event):
lone_hits = event.get_peaks_by_type(desired_type='lone_hit', detector='all')
self.log.debug("This event has %d lone hits" % len(lone_hits))
for lone_hit_peak in lone_hits:
channel = lone_hit_peak.hits[0]['channel']
event.lone_hits_per_channel_before[channel] += 1
penalty_per_ch[channel] += self.config['penalty_per_lone_hit']

if lone_hit_peak.left < 1e5:
# only count lone-hits before trigger positions
channel = lone_hit_peak.hits[0]['channel']
event.lone_hits_per_channel_before[channel] += 1
penalty_per_ch[channel] += self.config['penalty_per_lone_hit']
# Add base penalties
for channel, penalty in self.base_penalties.items():
penalty_per_ch[channel] += penalty
Expand Down

0 comments on commit d439956

Please sign in to comment.