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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ htmlcov/
# Oversized vector density map; pending rasterization (see follow-up)
MINT_examples/plots/beamline_density_map.pdf

# GENIE event samples generated from the exported fluxes (large, reproducible)
MINT_examples/data/genie/runs/
# Local-only GENIE cross-checks. These need a GENIE installation and its
# cross-section splines, neither of which ships with MINT.
# Scoped to the example folders on purpose: a bare "test_*" would also match
Expand Down
4 changes: 2 additions & 2 deletions MINT_examples/collider_ring.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2397,7 +2397,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "base",
"display_name": ".venv (3.9.6.final.0)",
"language": "python",
"name": "python3"
},
Expand All @@ -2411,7 +2411,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
"version": "3.9.6"
}
},
"nbformat": 4,
Expand Down
101 changes: 101 additions & 0 deletions MINT_examples/data/genie/pa_dune_flux.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"generator": "MINT 0.4.1.dev2+g167b79e9c (mint.genie_tools)",
"created": "2026-09-12T16:23:06-05:00",
"flux_units": "neutrinos / cm^2 / GeV / year",
"energy_units": "GeV",
"resampling": {
"method": "none (input already on the output grid)",
"input_bins": 600,
"input_range_GeV": [
0.0,
1.5
],
"output_bins": 600,
"output_range_GeV": [
0.0,
1.5
],
"bin_width_GeV": 0.0025
},
"genie_target_pdg": 1000180400,
"normalization": {
"nue": {
"pdg": 12,
"histogram": "flux_nue",
"flux_integral": 2502.6832411188193,
"flux_fraction": 0.4276217769334453,
"events_per_year": 22.157852824394162,
"n_events": 100000,
"weight_per_event": 0.00022157852824394162,
"events_per_year_input_grid": 22.157852824394162
},
"nuebar": {
"pdg": -12,
"histogram": "flux_nuebar",
"flux_integral": 117.20835533503993,
"flux_fraction": 0.02002684333212301,
"events_per_year": 0.42061116868848886,
"n_events": 100000,
"weight_per_event": 4.206111686884888e-06,
"events_per_year_input_grid": 0.42061116868848886
},
"numu": {
"pdg": 14,
"histogram": "flux_numu",
"flux_integral": 142.1776533643575,
"flux_fraction": 0.024293230470794316,
"events_per_year": 0.8531011159345903,
"n_events": 100000,
"weight_per_event": 8.531011159345903e-06,
"events_per_year_input_grid": 0.8531011159345903
},
"numubar": {
"pdg": -14,
"histogram": "flux_numubar",
"flux_integral": 1329.825212674998,
"flux_fraction": 0.22722101267628267,
"events_per_year": 6.184938703563832,
"n_events": 100000,
"weight_per_event": 6.184938703563832e-05,
"events_per_year_input_grid": 6.184938703563832
},
"nutau": {
"pdg": 16,
"histogram": "flux_nutau",
"flux_integral": 273.1812233511706,
"flux_fraction": 0.046677197591356634,
"events_per_year": 0.4219157668087092,
"n_events": 100000,
"weight_per_event": 4.2191576680870915e-06,
"events_per_year_input_grid": 0.4219157668087092
},
"nutaubar": {
"pdg": -16,
"histogram": "flux_nutaubar",
"flux_integral": 1487.486966754888,
"flux_fraction": 0.25415993899599804,
"events_per_year": 1.9111319355692131,
"n_events": 100000,
"weight_per_event": 1.911131935569213e-05,
"events_per_year_input_grid": 1.9111319355692131
}
},
"machine": "PA",
"beam": "mu+ (born as nu_e + nubar_mu)",
"baseline_km": 1300,
"flux_sampled_at_km": 0.5878016072274912,
"sampling_face_radius_cm": 2484.2465174378312,
"detector_radius_cm": 10500.0,
"detector_column_density_g_cm2": 9217.6,
"target_nucleons": 1.9087477747918905e+36,
"bunches_per_year": 50225480.32116797,
"oscillation_parameters": {
"theta12_deg": 33.68,
"theta13_deg": 8.56,
"theta23_deg": 43.3,
"delta_cp_deg": 212.0,
"dm21_eV2": 7.49e-05,
"dm31_eV2": 0.002513
},
"caveat": "events_per_year and weight_per_event use mint.xsecs' DIS tables, linearly extrapolated below their 50 GeV edge (see section 4). GENIE computes the cross section properly, so normalizing through flux_integral x <sigma>_GENIE x target_nucleons is the better route."
}
Binary file added MINT_examples/data/genie/pa_dune_flux.root
Binary file not shown.
101 changes: 101 additions & 0 deletions MINT_examples/data/genie/rla1_dune_flux.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"generator": "MINT 0.4.1.dev2+g167b79e9c (mint.genie_tools)",
"created": "2026-09-12T16:23:07-05:00",
"flux_units": "neutrinos / cm^2 / GeV / year",
"energy_units": "GeV",
"resampling": {
"method": "none (input already on the output grid)",
"input_bins": 600,
"input_range_GeV": [
0.0,
6.0
],
"output_bins": 600,
"output_range_GeV": [
0.0,
6.0
],
"bin_width_GeV": 0.01
},
"genie_target_pdg": 1000180400,
"normalization": {
"nue": {
"pdg": 12,
"histogram": "flux_nue",
"flux_integral": 11731.216977195469,
"flux_fraction": 0.46775183680519683,
"events_per_year": 357.5726314598962,
"n_events": 100000,
"weight_per_event": 0.003575726314598962,
"events_per_year_input_grid": 357.5726314598962
},
"nuebar": {
"pdg": -12,
"histogram": "flux_nuebar",
"flux_integral": 330.59494861004833,
"flux_fraction": 0.013181615748090784,
"events_per_year": 6.156832391042941,
"n_events": 100000,
"weight_per_event": 6.156832391042941e-05,
"events_per_year_input_grid": 6.156832391042941
},
"numu": {
"pdg": 14,
"histogram": "flux_numu",
"flux_integral": 312.7505961008371,
"flux_fraction": 0.012470118494309838,
"events_per_year": 10.258068232365632,
"n_events": 100000,
"weight_per_event": 0.00010258068232365633,
"events_per_year_input_grid": 10.258068232365632
},
"numubar": {
"pdg": -14,
"histogram": "flux_numubar",
"flux_integral": 3938.6018078882507,
"flux_fraction": 0.15704152720602277,
"events_per_year": 49.62559559042364,
"n_events": 100000,
"weight_per_event": 0.0004962559559042364,
"events_per_year_input_grid": 49.62559559042364
},
"nutau": {
"pdg": 16,
"histogram": "flux_nutau",
"flux_integral": 503.5715339308315,
"flux_fraction": 0.020078608248133182,
"events_per_year": 6.565036106268054,
"n_events": 100000,
"weight_per_event": 6.565036106268054e-05,
"events_per_year_input_grid": 6.565036106268054
},
"nutaubar": {
"pdg": -16,
"histogram": "flux_nutaubar",
"flux_integral": 8263.266082009588,
"flux_fraction": 0.3294762934982466,
"events_per_year": 79.40165597738674,
"n_events": 100000,
"weight_per_event": 0.0007940165597738674,
"events_per_year_input_grid": 79.40165597738674
}
},
"machine": "RLA1",
"beam": "mu+ (born as nu_e + nubar_mu)",
"baseline_km": 1300,
"flux_sampled_at_km": 0.4124626382901352,
"sampling_face_radius_cm": 435.8013231617979,
"detector_radius_cm": 10500.0,
"detector_column_density_g_cm2": 9217.6,
"target_nucleons": 1.9087477747918905e+36,
"bunches_per_year": 50225480.32116797,
"oscillation_parameters": {
"theta12_deg": 33.68,
"theta13_deg": 8.56,
"theta23_deg": 43.3,
"delta_cp_deg": 212.0,
"dm21_eV2": 7.49e-05,
"dm31_eV2": 0.002513
},
"caveat": "events_per_year and weight_per_event use mint.xsecs' DIS tables, linearly extrapolated below their 50 GeV edge (see section 4). GENIE computes the cross section properly, so normalizing through flux_integral x <sigma>_GENIE x target_nucleons is the better route."
}
Binary file added MINT_examples/data/genie/rla1_dune_flux.root
Binary file not shown.
101 changes: 101 additions & 0 deletions MINT_examples/data/genie/rla2_dune_flux.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"generator": "MINT 0.4.1.dev2+g167b79e9c (mint.genie_tools)",
"created": "2026-09-12T16:23:08-05:00",
"flux_units": "neutrinos / cm^2 / GeV / year",
"energy_units": "GeV",
"resampling": {
"method": "none (input already on the output grid)",
"input_bins": 700,
"input_range_GeV": [
0.0,
70.0
],
"output_bins": 700,
"output_range_GeV": [
0.0,
70.0
],
"bin_width_GeV": 0.1
},
"genie_target_pdg": 1000180400,
"normalization": {
"nue": {
"pdg": 12,
"histogram": "flux_nue",
"flux_integral": 1149483.3754758392,
"flux_fraction": 0.49717981395591887,
"events_per_year": 367129.27965123253,
"n_events": 100000,
"weight_per_event": 3.671292796512325,
"events_per_year_input_grid": 367129.27965123253
},
"nuebar": {
"pdg": -12,
"histogram": "flux_nuebar",
"flux_integral": 4291.184094927605,
"flux_fraction": 0.0018560425974699518,
"events_per_year": 342.30428491479785,
"n_events": 100000,
"weight_per_event": 0.0034230428491479783,
"events_per_year_input_grid": 342.30428491479785
},
"numu": {
"pdg": 14,
"histogram": "flux_numu",
"flux_integral": 5630.30941003529,
"flux_fraction": 0.0024352472116761312,
"events_per_year": 798.9789117994966,
"n_events": 100000,
"weight_per_event": 0.007989789117994965,
"events_per_year_input_grid": 798.9789117994966
},
"numubar": {
"pdg": -14,
"histogram": "flux_numubar",
"flux_integral": 1022532.874817559,
"flux_fraction": 0.4422706020042745,
"events_per_year": 198280.8462334222,
"n_events": 100000,
"weight_per_event": 1.982808462334222,
"events_per_year_input_grid": 198280.8462334222
},
"nutau": {
"pdg": 16,
"histogram": "flux_nutau",
"flux_integral": 9186.702289940242,
"flux_fraction": 0.003973474547633338,
"events_per_year": 1102.9188438074254,
"n_events": 100000,
"weight_per_event": 0.011029188438074254,
"events_per_year_input_grid": 1102.9188438074254
},
"nutaubar": {
"pdg": -16,
"histogram": "flux_nutaubar",
"flux_integral": 120882.88648967643,
"flux_fraction": 0.05228481968302727,
"events_per_year": 8322.675732616126,
"n_events": 100000,
"weight_per_event": 0.08322675732616126,
"events_per_year_input_grid": 8322.675732616126
}
},
"machine": "RLA2",
"beam": "mu+ (born as nu_e + nubar_mu)",
"baseline_km": 1300,
"flux_sampled_at_km": 2.030917620904737,
"sampling_face_radius_cm": 170.3043306342217,
"detector_radius_cm": 10500.0,
"detector_column_density_g_cm2": 9217.6,
"target_nucleons": 1.9087477747918905e+36,
"bunches_per_year": 50225480.32116797,
"oscillation_parameters": {
"theta12_deg": 33.68,
"theta13_deg": 8.56,
"theta23_deg": 43.3,
"delta_cp_deg": 212.0,
"dm21_eV2": 7.49e-05,
"dm31_eV2": 0.002513
},
"caveat": "events_per_year and weight_per_event use mint.xsecs' DIS tables, linearly extrapolated below their 50 GeV edge (see section 4). GENIE computes the cross section properly, so normalizing through flux_integral x <sigma>_GENIE x target_nucleons is the better route."
}
Binary file added MINT_examples/data/genie/rla2_dune_flux.root
Binary file not shown.
2,322 changes: 2,070 additions & 252 deletions MINT_examples/low_energy_components.ipynb

Large diffs are not rendered by default.

149 changes: 149 additions & 0 deletions MINT_examples/oscillation_study.ipynb

Large diffs are not rendered by default.

Binary file not shown.
Binary file modified MINT_examples/plots/machine_event_rate_2zmax.pdf
Binary file not shown.
Binary file modified MINT_examples/plots/machine_event_rate_2zmax_noBD.pdf
Binary file not shown.
Binary file modified MINT_examples/plots/machine_event_rate_2zmax_passes.pdf
Binary file not shown.
Binary file modified MINT_examples/plots/machine_event_rate_4pi.pdf
Binary file not shown.
Binary file modified MINT_examples/plots/machine_flux_comparison_1km.pdf
Binary file not shown.
Binary file modified MINT_examples/plots/machine_flux_comparison_1km_noBD.pdf
Binary file not shown.
Binary file modified MINT_examples/plots/machine_nu_spectrum_4pi.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added MINT_examples/plots/rla2_genie_flux_export.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions mint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
``mint.MuC`` :class:`MuDecaySimulator`, the event generator itself
``mint.xsecs`` neutrino cross sections (switchable backends)
``mint.plot_tools`` figure styling used by the example notebooks
``mint.genie_tools`` export a flux for GENIE event generation
=================== =======================================================
"""

Expand All @@ -43,6 +44,7 @@
from mint import beamline
from mint import beams
from mint import plot_tools
from mint import genie_tools

# The two classes most users construct directly.
from mint.lattice_tools import Lattice
Expand All @@ -61,6 +63,7 @@
"beamline",
"beams",
"plot_tools",
"genie_tools",
"Lattice",
"MuDecaySimulator",
]
Loading
Loading