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

Use BAT.jl For fitting #18

Open
Tracked by #14
Shoram444 opened this issue Jan 10, 2024 · 1 comment
Open
Tracked by #14

Use BAT.jl For fitting #18

Shoram444 opened this issue Jan 10, 2024 · 1 comment

Comments

@Shoram444
Copy link
Owner

Shoram444 commented Jan 10, 2024

8GOAL

Prepare fitting framework. One option is to use BAT.jl.

PROCEDURE

0nubb:

parameters to fit:

  • Expected total number of signal counts $\mu^S$:

$$ \mu^S = m t \varepsilon_S S $$

$$ [S] = kg^{-1}yr^{-1} $$

$$ \mu^S = ln(2) \frac{N_A a m t }{W} \varepsilon S $$ with $$ S = \frac{1}{T_{1/2}} $$

  • Expected total number of background counts $\mu^B$ :

$$ \mu^B = m t \Delta E BI $$ $$ [BI] = kg^{-1}yr^{-1}keV^{-1} $$

...

To perform the fit:

  1. generate data from expected background counts which can be obtained from the background model

$\rightarrow$ for each bin $n_i = rand(Poisson(\bar{b_i}))$

  1. perform BAT fit and obtain 90% CI on S
  2. Convert to T12
  3. repeat N times - get T12 at 90% and median
@Shoram444 Shoram444 mentioned this issue Jan 10, 2024
53 tasks
@Shoram444
Copy link
Owner Author

Use https://github.com/JuliaPhysics/RadiationSpectra.jl to get better fit model from histograms

@Shoram444 Shoram444 reopened this Feb 16, 2025
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

1 participant