A Geant4 Python wrapper.
Project description
Calzone
(CALorimeter ZONE)
[!WARNING] This is work in progress.
Description
CalZone is a Geant4 Python wrapper for simulating the energy
deposition by high-energy particles in a calorimeter. The interface has been
designed with simplicity in mind. Primary particles are injected into the
simulation volume as a numpy.ndarray
, and a numpy.ndarray
of energy deposits
is returned. The Monte Carlo geometry is encoded in a Python dict
which can be
loaded from configuration files, e.g. using JSON, TOML or
YAML formats. This basic workflow is illustrated below,
import calzone
simulation = calzone.Simulation("geometry.toml")
particles = calzone.particles(10000, energy=0.5, position=(0,0,1))
deposits = simulation.run(particles)
License
The Calzone source is distributed under the GNU LGPLv3 license. See the provided LICENSE and COPYING.LESSER files.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file calzone-0.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: calzone-0.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 23.2 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34e1c50979ccf3f454d361bdb27a11ed01a3413d92f0070a43ad57bf3cff81a1 |
|
MD5 | 92715ef75657a6254432d2f5003d90d9 |
|
BLAKE2b-256 | ff5a7d25a25c605c71ece5f4b141412b2c7c422158f13f37bf79c45ed6c2054d |