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 coincident event search using large shower events #143

Merged
merged 13 commits into from
Jun 25, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
use time_lolim, time_uplim to make it more monogeneous
  • Loading branch information
SeiyaNozaki committed May 24, 2023
commit 1ed7480618eb8a26b3023b28db7e623f17e27027
14 changes: 6 additions & 8 deletions magicctapipe/scripts/lst1_magic/lst1_magic_event_coincidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,12 @@ def event_coincidence(input_file_lst, input_dir_magic, output_dir, config):
# numbers of MAGIC events are left for the pre offset search.
# To find large-intensity showers within the same time window,
# time cut around MAGIC observations is applied to the LST data set.
cond_lolim = (
timestamps_lst
>= timestamps_magic[mask_lst_obs_window][0] - window_half_width
)
cond_uplim = (
timestamps_lst
<= timestamps_magic[mask_lst_obs_window][-1] + window_half_width
)
time_lolim = timestamps_magic[mask_lst_obs_window][0] - window_half_width
time_uplim = timestamps_magic[mask_lst_obs_window][-1] + window_half_width

cond_lolim = timestamps_lst >= time_lolim
cond_uplim = timestamps_lst <= time_uplim

mask_magic_obs_window = np.logical_and(cond_lolim, cond_uplim)

if np.count_nonzero(mask_magic_obs_window) == 0:
Expand Down