Skip to content

Commit

Permalink
Register pema (#71)
Browse files Browse the repository at this point in the history
* auto register pema

* empty line cleanujp
  • Loading branch information
FaroutYLq authored Dec 18, 2023
1 parent 3ee593c commit 8ec17b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions saltax/contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import cutax
import strax
from immutabledict import immutabledict
import pema

# straxen XENONnT options/configuration
XNT_COMMON_OPTS = straxen.contexts.xnt_common_opts.copy()
Expand Down Expand Up @@ -180,6 +181,9 @@ def xenonnt_salted(runid,
st.set_config(dict(fax_file=instr_file_name))
st.set_config(dict(saltax_mode=saltax_mode))

# Register pema plugins
st.register_all(pema.match_plugins)

return st

def sxenonnt(runid=None,
Expand Down
3 changes: 2 additions & 1 deletion saltax/match/visual.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,5 @@ def plot_wf(ind, st_salt, st_simu, st_data, runid, matched_simu,
matched_simu_s2_timerange_i[1]+s2_ext_window_samples)
axs[1,1].set_xlabel("Time [10ns]")
axs[1,1].legend()
fig.show()
fig.show()

1 change: 0 additions & 1 deletion saltax/plugins/s_peaklets.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,4 +876,3 @@ def sum_waveform_salted(peaks, hits, records, record_links, adc_to_pe, n_top_cha

p['n_saturated_channels'] = p['saturated_channel'].sum()
p['area_per_channel'][:] = area_per_channel

0 comments on commit 8ec17b8

Please sign in to comment.