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

Error in optical efficiency from muon ring? #1377

Closed
moralejo opened this issue Jul 12, 2020 · 5 comments
Closed

Error in optical efficiency from muon ring? #1377

moralejo opened this issue Jul 12, 2020 · 5 comments

Comments

@moralejo
Copy link
Contributor

pred *= np.sin(2 * radius_rad)

I think there is a factor 0.5 missing here. the factor comes from sin^2(theta)/tan(theta) = 0.5 sin(2*theta), see e.g. eq (7) of https://arxiv.org/abs/1907.04375
The factor was there in previous versions of this code.

This produces an underestimation of the telescope efficiency by the same factor.

@maxnoe
Copy link
Member

maxnoe commented Jul 13, 2020

The code does not directly implement these formulas and no reference is given what exactly was implemented here. So I am at a loss.

The formula you mention has no wavelength but an energy dependence and contains a factor of hc which is also nowhere to be found in the code.

@maxnoe
Copy link
Member

maxnoe commented Jul 13, 2020

I think we should make sure the code is as close as possible to the paper you linked.

@moralejo
Copy link
Contributor Author

The code does not directly implement these formulas and no reference is given what exactly was implemented here. So I am at a loss.

The formula you mention has no wavelength but an energy dependence and contains a factor of hc which is also nowhere to be found in the code.

Yes, it is not straightforward, but I could not access other references where things are closer to the approach implemented in ctapipe, just because they are behind paywalls for me now (working @ home).
In short: hc 'disappears' simply because the mu-Cherenkov photons energy integration is done in wavelength.
But the factor 0.5 comes just from that simplification of the sin^2, which also appears in the paper.

@maxnoe
Copy link
Member

maxnoe commented Jul 13, 2020

In short: hc 'disappears' simply because the mu-Cherenkov photons energy integration is done in wavelength.
But the factor 0.5 comes just from that simplification of the sin^2, which also appears in the paper.

Ah, of course. Checking with the older code, it seems like this factor of 2 was indeed lost.

I would propose to just readd it for now but also try to move to a more straight forward implementation of this or another suitable reference and clearly link to that in the code.

@moralejo
Copy link
Contributor Author

Hi, here is a more clear reference: https://arxiv.org/pdf/1403.4550.pdf
Take eq. 3 from there. This is what we integrate in wavelength (1/lambda^2). We do not introduce any atmospheric absorption, nor do we introduce wavelength-dependent efficiency. That is all incorporated in our global "efficiency" factor. That is, in eq (3) we replace:
psi(lambda)*a(l,lambda) => efficiency

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

No branches or pull requests

2 participants