Neutrino Telescope Simulation
Project description
NeutrinoTelescopeSimulation
Table of Contents
Installation
pip install ntsim
If you also want to run the GUI utils (see #Viewer section), you need to install the optional dependencies:
pip install ntsim[gui]
Simulation
NTSim can be run as python module.
python -m ntsim -h
to see the basic command line arguments
Simulate 2GeV muon in a water volume
python3 -m ntsim --generator ToyGen --ToyGen.particle_pdgid 13 --ToyGen.tot_energy_GeV 2 --H5Writer.h5_output_file="muon_sim"
This will produce a file "h5_output/muon_sim.h5" with the information about primary track, secondary produced tracks and energy loss steps of each track.
Note: this won't produce hits, unless you give a --compute-hits flag, and provide a telescope and detector for simulation
Simulate a 1TeV muon in an example telescope with hits
python3 -m ntsim --generator ToyGen --ToyGen.particle_pdgid 13 --ToyGen.tot_energy_GeV 1000 --H5Writer.h5_output_file="1TeV_muon_sim" --compute_hits --telescope=Example1Telescope --detector=Example1SensitiveDetector
This procudes a file "h5_output/1TeV_muon_sim.h5" which, in addition to MC track information, contains the hits, produced in the sensitive detectors.
Output format
Currently the only output format is the hdf5 file with the following tree structure:
ProductionHeader/: describe the full information about the run configuration.geometry/Bounding_Surfaces: dataset with the geometrical hierarchy of the telescopeGeometry: dataset describing the individual modules position and geometry
event_<n>/: group for each simulated event-
event_header/general event information (metadata) -
hits/Hits: dataset with the hits in the sensitive detectors -
particles/information about primary particles.Primarydataset for primary particles, to be processed by ParticlePropagatorg4_cascade_starters_<n>datasets, containing secondary particles which start the parametrized cascades
-
photons/photons_<n>/groups for photons information -
tracks/g4_tracks_<n>results of the Geant4 propagation
-
3D Viewer
Viewer reads ntsim_events.h5 file and displays information from file. It allows to watch animation of particles propagation in 3D, it also can build histograms of physical parametres. Viewer helps to analyse results of simulation.
Running
python3 -m ntsim.Viewer
this will run an "open file" dialog to choose the simulation file to display.
python3 -m ntsim.Viewer h5_output/events.h5
This will open defaut file named "h5_output/events.h5" produced by NTSim.
Some Options
If the display works slow, try to set minimal track length bigger.
python3 -m ntsim.Viewer h5_output/events.h5 --min_length_for_tracks 1
This will show only tracks bigger than 1 m.
To increase speed of animation try to set less amount of frames.
python3 -m ntsim.Viewer h5_output/events.h5 --animation_frames 10 0 3000
This will show only 10 frames in time interval from 0 to 3000
License
ntsim is distributed under the terms of the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ntsim-0.2.0.tar.gz.
File metadata
- Download URL: ntsim-0.2.0.tar.gz
- Upload date:
- Size: 34.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9953624e1baf1a859a3bf176b156b8bb6c42935cb1f43de414d7396b4821b582
|
|
| MD5 |
b20f5bc5f0209d0bf9f047975646f8cb
|
|
| BLAKE2b-256 |
c433d30f6255f9a55bcb95a44a7f06f28e8bd4416b636cc78e3b08a0565f67f4
|
File details
Details for the file ntsim-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ntsim-0.2.0-py3-none-any.whl
- Upload date:
- Size: 166.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
567797f18d4dd73ed9c7754e5e585efb6416188e7d1133b9d3cd0e09f49a6517
|
|
| MD5 |
2f4ccbaa3c49077fcf7f651c482b26d5
|
|
| BLAKE2b-256 |
4feb62b3be79e08d17fedfd54ba40c9bc6002c218abfb46c4d9397e2835dddba
|