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

Implementing suggestions for better evaluation of energy-dependent theta cuts #1035

Merged
merged 23 commits into from
May 18, 2023

Conversation

chaimain
Copy link
Contributor

With taking suggestions from #997 to redefine the "100% range of gamma events" to be used to evaluate percentile cuts on theta value of events, and adding the following -

  • An event filter function to take only those with the same disp_sign value after reconstruction (applied to only MC).
  • New variable in DL3Cuts component: max_theta_range to create a custom maximum limit of theta value to be considered as "100% of central PSF region", based on which, percentile cuts can be evaluated for each reco_energy bins

@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (66ef7f9) 74.36% compared to head (18d6386) 74.37%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1035      +/-   ##
==========================================
+ Coverage   74.36%   74.37%   +0.01%     
==========================================
  Files         124      124              
  Lines       12163    12170       +7     
==========================================
+ Hits         9045     9052       +7     
  Misses       3118     3118              
Impacted Files Coverage Δ
lstchain/io/io.py 79.19% <ø> (ø)
lstchain/io/event_selection.py 100.00% <100.00%> (ø)
lstchain/io/tests/test_eventselection.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

lstchain/io/event_selection.py Outdated Show resolved Hide resolved
lstchain/io/event_selection.py Outdated Show resolved Hide resolved
lstchain/io/event_selection.py Outdated Show resolved Hide resolved
@chaimain chaimain requested review from moralejo and vuillaut December 5, 2022 16:06
@rlopezcoto
Copy link
Contributor

@chaimain after discussing in private, I think this PR can be closed, right?

@chaimain
Copy link
Contributor Author

@chaimain after discussing in private, I think this PR can be closed, right?

Sorry, I couldn't recheck it yet. Will do it today

@chaimain
Copy link
Contributor Author

After discussing with @moralejo, I have removed the max_theta_range implementation for limiting the 'max' theta range for evaluating percentile cuts, and as the comparison of disp_sign is only essential in this context for the MC data, I moved that functionality to the function energy_dependent_theta_cuts, as the default option in the function, using the boolean use_same_disp_sign. One can choose not to perform such a selection with this boolean argument.

lstchain/io/event_selection.py Outdated Show resolved Hide resolved
lstchain/io/event_selection.py Outdated Show resolved Hide resolved
lstchain/io/event_selection.py Show resolved Hide resolved
@rlopezcoto rlopezcoto merged commit 0928bd8 into master May 18, 2023
@chaimain chaimain deleted the update_theta_eff_cut branch May 19, 2023 00:15
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.

5 participants