Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/simweights/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"GenieSurface",
"GenieWeighter",
"GlobalFitGST",
"GlobalFitGST4Comp",
"GlobalFitGST_IT",
"GlobalSplineFit",
"GlobalSplineFit5Comp",
Expand Down Expand Up @@ -57,6 +58,7 @@
GaisserH4a_IT,
GaisserHillas,
GlobalFitGST,
GlobalFitGST4Comp,
GlobalFitGST_IT,
GlobalSplineFit,
GlobalSplineFit5Comp,
Expand Down
33 changes: 33 additions & 0 deletions src/simweights/_fluxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,39 @@ class GlobalFitGST_IT(CosmicRayFlux):
)


class GlobalFitGST4Comp(CosmicRayFlux):
r"""GlobalFitGST4Comp (4 populations) for four components [p, He, O, Fe].

The Oxygen group is the sum of Carbon and Oxygen groups.
The Iron group is the sum of Iron, Tellurium and Mercury groups.
Provided by J. Saffer.
"""

pdgids = PDGID_4COMP
_funcs = (
lambda E: (
0.7000 * E**-2.66 * exp(-E / 1.2e5)
+ 0.0150 * E**-2.4 * exp(-E / 4e6)
+ 0.0012 * E**-2.4 * exp(-E / 1.5e9)
+ 0.00012 * E**-2.4 * exp(-E / 40e9)
),
lambda E: 0.3200 * E**-2.58 * exp(-E / 1.2e5 / 2) + 0.0065 * E**-2.3 * exp(-E / 4e6 / 2),
lambda E: (
0.0100 * E**-2.40 * exp(-E / 1.2e5 / 6)
+ 0.0006 * E**-2.3 * exp(-E / 4e6 / 6)
+ 0.0130 * E**-2.40 * exp(-E / 1.2e5 / 8)
+ 0.0007 * E**-2.3 * exp(-E / 4e6 / 8)
),
lambda E: (
0.0060 * E**-2.30 * exp(-E / 1.2e5 / 26)
+ 0.00021 * E**-2.2 * exp(-E / 4e6 / 26)
+ 0.0000011 * E**-2.2 * exp(-E / 1.5e9 / 26)
+ 0.00001 * E**-2.2 * exp(-E / 4e6 / 52)
+ 0.000053 * E**-2.2 * exp(-E / 4e6 / 80)
),
)


class GlobalSplineFitBase(CosmicRayFlux):
r"""Data-driven spline fit of the cosmic ray spectrum by Dembinski et. al. \ [#GSFDembinski]_.

Expand Down
Loading