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

Rhosigchi assumtions #7

Open
vetlewi opened this issue Jan 11, 2018 · 4 comments
Open

Rhosigchi assumtions #7

vetlewi opened this issue Jan 11, 2018 · 4 comments

Comments

@vetlewi
Copy link
Contributor

vetlewi commented Jan 11, 2018

Rhosigchi will do one or more assumptions about the resolution of the detectors that are used. This should be looked at...

@fzeiser
Copy link
Contributor

fzeiser commented Jan 11, 2018

See eg:

dE_p = 150. ! Particle resolution
dE_g1MeV = 60. ! NaI resolution at 1 MeV
dE_g8MeV = 300. ! NaI resolution at 8 MeV

further used here:

C Now calculating max energy for NaI to cover resolution. Max is 800 keV
a0 = a0 - INT((800./a1) + 0.5)*a1
iu0 = INT((ABS(a0/a1) + 0.5))
DO j=0, 511
Ex = a0 + j*a1
dE_g = dE_g1MeV + ((dE_g8MeV-dE_g1MeV)/(8000.-1000.))*(Ex-1000.)
egmax(j) = SQRT(dE_g*dE_g + dE_p*dE_p)
IF(egmax(j).GT.600.)egmax(j)=600.
IF(egmax(j).LT.200.)egmax(j)=200.
igmax(j) = j + INT((egmax(j)/a1)+0.5)
IF(igmax(j).GT.511)igmax(j)=511
egmax(j) = Ex + egmax(j)
ENDDO

which enters at many places

@cecgresonant
Copy link
Contributor

These parameters will in general vary for each experiment and for different gamma-ray detectors. Probably these parameters should be set by the user and not hardcoded? How is this solved in OMpy?

@fzeiser
Copy link
Contributor

fzeiser commented Aug 22, 2019

We're still discussing how we want to solve it, but probably we want to
i) force the user to provide these values, or, maybe even more likely
ii) issue a warning if some default values are chosen.

@vetlewi
Copy link
Contributor Author

vetlewi commented Aug 29, 2019

We're still discussing how we want to solve it, but probably we want to
i) force the user to provide these values, or, maybe even more likely
ii) issue a warning if some default values are chosen.

I would prefer option ii, as most of the use will be experiments from OCL and in those cases the resolution is more or less the same for each experiment. Just make it very clear to the user that it is using 'default' values.

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

3 participants