Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update definition of the SE Score (previously the SE density) for SR1 WIMP #1430

Merged
merged 16 commits into from
Sep 25, 2024

Conversation

chnlkx
Copy link
Contributor

@chnlkx chnlkx commented Sep 18, 2024

Before you submit this PR: make sure to put all operations-related information in a wiki-note, a PR should be about code and is publicly accessible

What does the code in this PR do / what does it improve?

Update the se_score calculated for the hotspot veto cut to use a score based on the distance and position reconstruction resolution.

This PR will provide input for the hotspot veto cut in https://github.com/XENONnT/cutax/pull/479

Can you briefly describe how it works?

Can you give a minimal working example (or illustrate with a figure)?

Please include the following if applicable:

  • Update the docstring(s)
  • Update the documentation
  • Tests to check the (new) code is working as desired.
  • Does it solve one of the open issues on github?

Notes on testing

  • Until the automated tests pass, please mark the PR as a draft.
  • On the XENONnT fork we test with database access, on private forks there is no database access for security considerations.

All italic comments can be removed from this template.

@chnlkx chnlkx marked this pull request as draft September 18, 2024 07:05
@chnlkx chnlkx changed the title Update definition of the SE Nearby Score (previously the SE density) for SR1 WIMP Update definition of the SE Score (previously the SE density) for SR1 WIMP Sep 20, 2024
straxen/plugins/events/event_se_score.py Show resolved Hide resolved
straxen/plugins/peaks/peak_se_score.py Outdated Show resolved Hide resolved
return 2 * (self.se_time_search_window_left + self.se_time_search_window_right)

def setup(self):
self._para_a = 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should better set self._para_a = self.para_a and, make para_a a straxen.URLConfig.

Copy link
Contributor Author

@chnlkx chnlkx Sep 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid having same name with the para_a in cutax, I added para_a_place_holder here

straxen/plugins/peaks/peak_se_score.py Outdated Show resolved Hide resolved
straxen/plugins/peaks/peak_se_score.py Outdated Show resolved Hide resolved
straxen/plugins/peaks/peak_se_score.py Outdated Show resolved Hide resolved
@chnlkx chnlkx requested a review from dachengx September 23, 2024 03:16
@dachengx
Copy link
Collaborator

@chnlkx please add the dependency of PRs in straxen and cutax in the description.

straxen/plugins/peaks/peak_se_score.py Outdated Show resolved Hide resolved
@GiovanniVolta GiovanniVolta self-requested a review September 24, 2024 13:15
straxen/plugins/peaks/peak_se_score.py Show resolved Hide resolved
straxen/plugins/peaks/peak_se_score.py Outdated Show resolved Hide resolved
straxen/plugins/peaks/peak_se_score.py Outdated Show resolved Hide resolved
@chnlkx chnlkx marked this pull request as ready for review September 24, 2024 13:49
Copy link
Collaborator

@dachengx dachengx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! @chnlkx

@dachengx dachengx merged commit b665bc6 into sr1_leftovers Sep 25, 2024
7 checks passed
@dachengx dachengx deleted the hsv_update_to_leftovers branch September 25, 2024 14:41
dachengx added a commit to XENONnT/axidence that referenced this pull request Sep 27, 2024
dachengx added a commit to XENONnT/axidence that referenced this pull request Sep 27, 2024
* Use SE scores instead of SE density

Following XENONnT/straxen#1430 and XENONnT/cutax#479

* Use `sr1_leftovers` for the installation, later will change to a tagged version
dachengx added a commit that referenced this pull request Nov 16, 2024
* Update pytest.yml (#1431)

* Update pytest.yml

Specify the strax to be v1.6.5

* add install base_env

* Add force reinstall

* Update definition of the SE Score (previously the SE density) for SR1 WIMP (#1430)

* Update score definition. Modify file names.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Modify file names in the initialization file.

* Rearrangenames. Move sr phase assignment elsewhere.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add url configs and modify code style.

* Modify the parameter names.

* Fix data type in url config.

* Add docstring for the eps used to prevent divide by zero.

* Reformmated with precommit.

* Add docstrings. Remove redundant code.

* Add docstring for the 2D Gaussian.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dacheng Xu <dx2227@columbia.edu>

* Copy #1417 (#1438)

* Bump to v2.2.6 (#1441)

* Bump version: 2.2.4 → 2.2.6

* Update HISTORY.md

* Constraint strax version

---------

Co-authored-by: Kexin Liu <lkx21@mails.tsinghua.edu.cn>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants