Skip to content

Commit

Permalink
Move ref mon to online and add to bootstrax (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
WenzDaniel authored Dec 21, 2023
1 parent f3e7726 commit dd7773d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 7 additions & 1 deletion bin/bootstrax
Original file line number Diff line number Diff line change
Expand Up @@ -593,12 +593,14 @@ def infer_target(rd: dict) -> dict:
diagnostic_modes = [
"exttrig",
"noise",
"nVeto_LASER_calibration",
"mv_diffuserballs",
"mv_fibres",
"mv_darkrate",
]
ap_modes = ["pmtap"]
nv_ref_mon = [
"nVeto_LASER_calibration",
]
mode = str(rd.get("mode"))
detectors = list(rd.get("detectors")) # type: ignore

Expand All @@ -611,6 +613,10 @@ def infer_target(rd: dict) -> dict:
log.debug("afterpulse mode")
targets = "afterpulses"
post_process = "raw_records"
elif np.any([m in mode for m in nv_ref_mon]):
log.debug("NV reflecitvity and diffuser ball mode")
targets = "ref_mon_nv"
post_process = "raw_records"
elif np.any([m in mode for m in diagnostic_modes]):
log.debug("diagnostic-mode")
targets = "raw_records"
Expand Down
8 changes: 6 additions & 2 deletions straxen/contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,12 @@ def xenonnt_online(
context_options = {**straxen.contexts.xnt_common_opts, **kwargs}

st = strax.Context(config=straxen.contexts.xnt_common_config, **context_options)
st.register([straxen.DAQReader, straxen.LEDCalibration, straxen.LEDAfterpulseProcessing])
st.register([
straxen.DAQReader,
straxen.LEDCalibration,
straxen.LEDAfterpulseProcessing,
straxen.nVeto_reflectivity,
])

if _auto_append_rucio_local:
include_rucio_local, _rucio_local_path = find_rucio_local_path(
Expand Down Expand Up @@ -333,7 +338,6 @@ def xenonnt_led(**kwargs):
straxen.nVETOPulseProcessing,
straxen.nVETOHitlets,
straxen.nVetoExtTimings,
straxen.nVeto_reflectivity,
])
st.set_config({"coincidence_level_recorder_nv": 1})
return st
Expand Down

0 comments on commit dd7773d

Please sign in to comment.