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

Add muon analysis on calibrated data #50

Merged
merged 2 commits into from
May 2, 2022

Conversation

gabemery
Copy link
Collaborator

Modified the analysis function to work in this case and added a dedicated script.

Related to #19

…d the muon analysis function to also work for this case.
Copy link
Collaborator

@jsitarek jsitarek left a comment

Choose a reason for hiding this comment

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

Thanks @gabemery
I left a few comments, but they are rather minor.
More tricky might be the quality cuts, we use some more in MARS, and here it is only the ring completeness.
One question, what kind of events were giving you TypeError?

@@ -64,8 +64,8 @@ MAGIC:

muon_ring:
thr_low: 25
tailcut: [8, 4]
Copy link
Collaborator

Choose a reason for hiding this comment

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

was the change of the thresholds intended? 12,8 looks quite large, did it come from your optimization?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is not optimised, but it followed a comment (by Abelardo?) that if we take only very bright pixels the biases from NSB should be reduced even if the charge extractor is not optimal.


"""

event_source = MAGICEventSource(input_url=input_file)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it should work fine if you change to general EventSource, when the file is a MAGIC Y file it will automatically select MAGICEventSource, and this will make it easier to run the same script also on LST

telescope_name=tel_name,
image=image,
subarray=subarray,
r1_dl1_calibrator_for_muon_rings=
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think putting here directly None except of a separate variable set to None would be more clear

@gabemery
Copy link
Collaborator Author

I applied the proposed changes.

@gabemery gabemery merged commit 6810152 into master May 2, 2022
@YoshikiOhtani YoshikiOhtani deleted the muons-analysis-magic-calibrated branch October 24, 2022 06:42
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.

2 participants