Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Dec 16, 2024
1 parent f5868aa commit 2ebf132
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
11 changes: 10 additions & 1 deletion straxen/plugins/afterpulses/afterpulse_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,16 @@ class LEDAfterpulseProcessing(strax.Plugin):
hit_min_amplitude = straxen.URLConfig(
track=True,
infer_type=False,
default="list-to-array://xedocs://hit_thresholds?as_list=True&sort=pmt&attr=value&detector=tpc&run_id=plugin.run_id&version=ONLINE",
default=(
"list-to-array://"
"xedocs://hit_thresholds"
"?as_list=True"
"&sort=pmt"
"&attr=value"
"&detector=tpc"
"&run_id=plugin.run_id"
"&version=ONLINE"
),
help="Minimum hit amplitude in ADC counts above baseline. "
"Specify as a tuple of length n_tpc_pmts, or a number,"
'or a string like "legacy-thresholds://pmt_commissioning_initial" which means calling'
Expand Down
18 changes: 16 additions & 2 deletions straxen/plugins/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,28 @@
NV_HIT_DEFAULTS = {
"save_outside_hits_nv": (3, 15),
"hit_min_amplitude_nv": (
"xedocs://hit_thresholds?version=ONLINE&run_id=plugin.run_id&detector=neutron_veto"
"list-to-array://"
"xedocs://hit_thresholds"
"?as_list=True"
"&sort=pmt"
"&attr=value"
"&detector=neutron_veto"
"&run_id=plugin.run_id"
"&version=ONLINE"
),
}

MV_HIT_DEFAULTS = {
"save_outside_hits_mv": (2, 5),
"hit_min_amplitude_mv": (
"xedocs://hit_thresholds?version=ONLINE&run_id=plugin.run_id&detector=muon_veto"
"list-to-array://"
"xedocs://hit_thresholds"
"?as_list=True"
"&sort=pmt"
"&attr=value"
"&detector=muon_veto"
"&run_id=plugin.run_id"
"&version=ONLINE"
),
}

Expand Down
4 changes: 2 additions & 2 deletions straxen/plugins/peaklets_he/peaklets_he.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class PeakletsHighEnergy(Peaklets):

hit_min_amplitude_he = straxen.URLConfig(
default=(
"list-to-array:"
"//xedocs://hit_thresholds"
"list-to-array://"
"xedocs://hit_thresholds"
"?as_list=True"
"&sort=pmt"
"&attr=value"
Expand Down

0 comments on commit 2ebf132

Please sign in to comment.