Skip to content

Commit

Permalink
Remove remnant of old diagnostic plot code (#634)
Browse files Browse the repository at this point in the history
* Remove remnant of old diagnostic plot code

* Remove unused import
  • Loading branch information
JelleAalbers authored and feigaodm committed Oct 25, 2017
1 parent e331e54 commit 8a3a80a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pax/config/XENON100_LED.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pre_output = []

# Don't make event plots -- they wont work
# If you want to see what's going on, instead use e.g.
# [HitFinder.FindHits]
# [HitfinderDiagnosticPlots.HitfinderDiagnosticPlots]
# make_diagnostic_plots = 'always'

[Table.TableWriter]
Expand Down
2 changes: 1 addition & 1 deletion pax/config/XENON1T_LED.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pre_output = []

# Don't make event plots -- they wont work
# If you want to see what's going on, instead use e.g.
# [HitFinder.FindHits]
# [HitfinderDiagnosticPlots.HitfinderDiagnosticPlots]
# make_diagnostic_plots = 'always'

[HitFinder]
Expand Down
2 changes: 1 addition & 1 deletion pax/config/XENON1T_MV.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pre_analysis = []
pre_output = []


;[HitFinder.FindHits]
;[HitfinderDiagnosticPlots.HitfinderDiagnosticPlots]
;make_diagnostic_plots = 'always'


Expand Down
9 changes: 0 additions & 9 deletions pax/plugins/signal_processing/HitFinder.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import numpy as np
import numba

import os

from pax import plugin, datastructure, dsputils


Expand Down Expand Up @@ -54,13 +52,6 @@ def startup(self):
self.max_hits_per_pulse = c['max_hits_per_pulse']
self.reference_baseline = self.config['digitizer_reference_baseline']

self.make_diagnostic_plots = c.get('make_diagnostic_plots', 'never')
self.make_diagnostic_plots_in = c.get('make_diagnostic_plots_in', 'small_pf_diagnostic_plots')

if self.make_diagnostic_plots != 'never':
if not os.path.exists(self.make_diagnostic_plots_in):
os.makedirs(self.make_diagnostic_plots_in)

self.always_find_single_hit = self.config.get('always_find_single_hit')

def transform_event(self, event):
Expand Down

0 comments on commit 8a3a80a

Please sign in to comment.