From 044257a73b22eea4113663cabae6fb0cb37bb554 Mon Sep 17 00:00:00 2001 From: Luis Sanchez Date: Mon, 10 Jul 2023 15:23:12 -0500 Subject: [PATCH 1/4] hotspot veto --- xedocs/schemas/corrections/__init__.py | 2 ++ xedocs/schemas/corrections/hotspot_veto.py | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 xedocs/schemas/corrections/hotspot_veto.py diff --git a/xedocs/schemas/corrections/__init__.py b/xedocs/schemas/corrections/__init__.py index 07cd612..6211502 100644 --- a/xedocs/schemas/corrections/__init__.py +++ b/xedocs/schemas/corrections/__init__.py @@ -19,3 +19,5 @@ from .s1_aft_xyz import * from .avg_se_gain import * from .bayes_model import * +from .som_network import * +from .hotspot_veto import * diff --git a/xedocs/schemas/corrections/hotspot_veto.py b/xedocs/schemas/corrections/hotspot_veto.py new file mode 100644 index 0000000..91df379 --- /dev/null +++ b/xedocs/schemas/corrections/hotspot_veto.py @@ -0,0 +1,7 @@ +""" +id=xenon:xenonnt:analysis:hot_spot_cut_summary +""" + +class HotspotVeto(xd.schemas.corrections.TimeIntervalCorrection): + _ALIAS = 'hotspot_vetos' + value: float \ No newline at end of file From a811788cf3bb00b1635f87ed60132f13c56d2100 Mon Sep 17 00:00:00 2001 From: Luis Sanchez <45677170+LuisSanchez25@users.noreply.github.com> Date: Mon, 10 Jul 2023 15:27:02 -0500 Subject: [PATCH 2/4] Update hotspot_veto.py --- xedocs/schemas/corrections/hotspot_veto.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xedocs/schemas/corrections/hotspot_veto.py b/xedocs/schemas/corrections/hotspot_veto.py index 91df379..175debe 100644 --- a/xedocs/schemas/corrections/hotspot_veto.py +++ b/xedocs/schemas/corrections/hotspot_veto.py @@ -2,6 +2,8 @@ id=xenon:xenonnt:analysis:hot_spot_cut_summary """ -class HotspotVeto(xd.schemas.corrections.TimeIntervalCorrection): +from .base_corrections import TimeIntervalCorrection + +class HotspotVeto(TimeIntervalCorrection): _ALIAS = 'hotspot_vetos' - value: float \ No newline at end of file + value: float From eb5ea2643dd9602cdebddb6e55e79b63317f9a0d Mon Sep 17 00:00:00 2001 From: chnlkx Date: Tue, 18 Jul 2023 15:12:22 -0500 Subject: [PATCH 3/4] Modify the name and docstring of the hotspot veto threshold schema. --- xedocs/schemas/corrections/__init__.py | 2 +- xedocs/schemas/corrections/hotspot_veto.py | 9 --------- xedocs/schemas/corrections/hotspot_veto_cut.py | 11 +++++++++++ 3 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 xedocs/schemas/corrections/hotspot_veto.py create mode 100644 xedocs/schemas/corrections/hotspot_veto_cut.py diff --git a/xedocs/schemas/corrections/__init__.py b/xedocs/schemas/corrections/__init__.py index 6211502..452eb8f 100644 --- a/xedocs/schemas/corrections/__init__.py +++ b/xedocs/schemas/corrections/__init__.py @@ -20,4 +20,4 @@ from .avg_se_gain import * from .bayes_model import * from .som_network import * -from .hotspot_veto import * +from .hotspot_veto_cut import * diff --git a/xedocs/schemas/corrections/hotspot_veto.py b/xedocs/schemas/corrections/hotspot_veto.py deleted file mode 100644 index 175debe..0000000 --- a/xedocs/schemas/corrections/hotspot_veto.py +++ /dev/null @@ -1,9 +0,0 @@ -""" -id=xenon:xenonnt:analysis:hot_spot_cut_summary -""" - -from .base_corrections import TimeIntervalCorrection - -class HotspotVeto(TimeIntervalCorrection): - _ALIAS = 'hotspot_vetos' - value: float diff --git a/xedocs/schemas/corrections/hotspot_veto_cut.py b/xedocs/schemas/corrections/hotspot_veto_cut.py new file mode 100644 index 0000000..4f8f84f --- /dev/null +++ b/xedocs/schemas/corrections/hotspot_veto_cut.py @@ -0,0 +1,11 @@ +""" +The 'hotspot_veto_threshold' provides a per-run cut threshold of the 'hotspot_veto_cut', +which vetos the events with local single electron rate above the threshold in each run. +Reference: xenon:xenonnt:analysis:hot_spot_cut_summary +""" + +from .base_corrections import TimeIntervalCorrection + +class HotspotVetoThreshold(TimeIntervalCorrection): + _ALIAS = 'hotspot_veto_threshold' + value: float From cd9b084903ed3d6fa5a2d775e9b87945269a3b81 Mon Sep 17 00:00:00 2001 From: Yossi Mosbacher Date: Wed, 19 Jul 2023 00:09:25 +0300 Subject: [PATCH 4/4] Update xedocs/schemas/corrections/hotspot_veto_cut.py --- xedocs/schemas/corrections/hotspot_veto_cut.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xedocs/schemas/corrections/hotspot_veto_cut.py b/xedocs/schemas/corrections/hotspot_veto_cut.py index 4f8f84f..9a70cc6 100644 --- a/xedocs/schemas/corrections/hotspot_veto_cut.py +++ b/xedocs/schemas/corrections/hotspot_veto_cut.py @@ -7,5 +7,5 @@ from .base_corrections import TimeIntervalCorrection class HotspotVetoThreshold(TimeIntervalCorrection): - _ALIAS = 'hotspot_veto_threshold' + _ALIAS = 'hotspot_veto_thresholds' value: float