nuVeto
This package calculates the effect of a detector veto, triggered by the accompanying muons from the same air shower, on the high-energy atmospheric neutrino flux. The calculated result is the passing-flux or passing-fraction of atmospheric neutrinos as a function of energy and zenith angle.
As a corollary, the total atmospheric neutrino flux as well as parent particle fluxes at various depths in the atmosphere are calculated using MCEq. To illustrate, the parent fluxes are accessible as shown in this example.
In the right panel, solid lines are direct calculations from MCEq while dashed lines are an extension down to lower energies where the parent particle is assumed to no longer interact and their fluxes are computed based on the CR flux, cross section, yield and parent's decay length.
Getting started
It is recommended to work within a Python virtual environment.
python3 -m venv vdir
source vdir/bin/activate
Installing
pip install nuVeto
This will install numpy, scipy, pandas and MCEq. By default this will not install MKL or CUDA libraries that accelerate MCEq. If your system has the right hardware available, it is possible get a substantial speed up with pip install mkl or pip install MCEq[cuda]. The fastest library is automatically chosen.
As of v2.3.1 a suite of tests is also packaged. It uses pytest, which can be optionally installed and run as follows.
pip install nuVeto[testing]
pytest --pyargs nuVeto
Additional optional dependencies are [plotting] and [pythia8] which will respectively install needed packages for making example plots (from nuVeto.examples import plots), and generating alternative hadron decay rates with PYTHIA.
Note that v2.0 and higher rely on the updated version of MCEq. For the legacy version that relies on MCEq_classic do git checkout v1.5 and follow the instructions in the README.
Usage
The simplest way to run is
from nuVeto import passing
from nuVeto.utils import Units
import crflux.models as pm
enu = 1e5*Units.GeV
cos_theta = 0.5
pf = passing(enu, cos_theta, kind='conv nu_mu',
pmodel=(pm.HillasGaisser2012, 'H3a'),
hadr='SIBYLL2.3e', depth=1950*Units.m,
density=('CORSIKA', ('SouthPole','December')))
where kind can be (conv|pr|_parent_) nu_(e|mu)(bar)
See examples/plots.py for more detailed examples.
Building muon detection probabilities
To calculate the passing fraction requires knowing the muon detection probability as a function of the overburden and energy of the muon at the surface. This is constructed from a convolution of the muon reaching probability and the detector response. The scripts for generating the necessary files are provided in the scripts/mu/ subdirectory, which can be obtained with a download or clone of this repository.
The muon reaching probability is constructed from MMC simulations and is provided for propagation in ice and water in data/mmc/(ice|water)_(allm97|bb).npz for two different cross section parameterizations. The detector response probability must first be defined in scripts/mu/pl.py as a function of the muon energy at the detector. Then, pass the function name to the --plight argument and construct the overall muon reaching and detection probability with the following command, for example.
cd scripts/mu
./mu.py ice_allm97 -o mymudet.npz --plight pl_step_1000
To use the newly generated file, pass the stem without file extension as a string to the prpl argument.
passing(enu, cos_theta, prpl='mymudet')`.
For many different characterisations of the detector response (e.g. for different depths or different directions) this process can be inconvenient. In this case one can also directly use a function for pl:
from nuVeto.mu import interp
pl=lambda emu: #some function of muon energy
prpl=interp("ice_allm97",pl)
enu=1e3
cos_theta=0.5
pf = passing(enu, cos_theta, prpl=prpl)
Contributers
Carlos Arguelles, Sergio Palomares-Ruiz, Austin Schneider, Logan Wille, Tianlu Yuan
Metadata
Release files for nuVeto 3.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nuveto-3.0.3.tar.gz | 12.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nuveto-3.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.9 MB
Release files / nuveto-3.0.3.tar.gz
| Download URL | nuveto-3.0.3.tar.gz |
|---|---|
| Size | 12.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c693a91ef75f523b0fd259a0cf0dd1902dc688aea7b9573cc28e67f88206ec95
|
|
BLAKE2b-256 checksum How to use checksums |
126dc100ead1c5f61f41a195ed0a15ce3062e25c478b8e5c004656b7483df0eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency logRelease files / nuveto-3.0.3-py3-none-any.whl
| Download URL | nuveto-3.0.3-py3-none-any.whl |
|---|---|
| Size | 12.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25644a5218eb47728a26c3d9ebb980965128b28db5e0409314a751ec876132d0
|
|
BLAKE2b-256 checksum How to use checksums |
55ccb0fe1603cbb04736e80949a7ab39e38ad0b78a82053208977e9b41130576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency log