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

Fix bug when triggering peak in an event is not from the salting peaks #74

Merged
merged 2 commits into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions axidence/plugins/cuts/cuts_event_building.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@


class MainS1Trigger(CutPlugin):
__version__ = "0.0.0"
__version__ = "0.1.0"
depends_on = "event_basics"
provides = "cut_main_s1_trigger"
cut_name = "cut_main_s1_trigger"
cut_description = "Whether the salting S1 can be the main S2"

def cut_by(self, events):
mask = events["s1_salt_number"] >= 0
mask = events["s1_salt_number"] == events["salt_number"]
return mask


class MainS2Trigger(CutPlugin):
__version__ = "0.0.0"
__version__ = "0.1.0"
depends_on = "event_basics"
provides = "cut_main_s2_trigger"
cut_name = "cut_main_s2_trigger"
cut_description = "Whether the salting S2 can be the main S2"

def cut_by(self, events):
mask = events["s2_salt_number"] >= 0
mask = events["s2_salt_number"] == events["salt_number"]
return mask


Expand Down
Loading