Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

calzone-0.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.4 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

File details

Details for the file calzone-0.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for calzone-0.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7ab8e1f45e2ebbb93b9438e164ff47c455e607a9d8610f58adc20f8b8640ba69
MD5 164f58d4f8a81d5d722308180a6ebfc6
BLAKE2b-256 5b565cef9797237c7300941c5c7d03b562aaf099ef8b19b7ce56daeb682199aa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page