Skip to main content

A Geant4 Python wrapper.

Project description

Calzone

(CALorimeter ZONE)

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, pid="e-", energy=0.5, position=(0,0,1))
deposits = simulation.run(particles).deposits

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 Distribution

calzone-1.0.0.tar.gz (110.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

calzone-1.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (22.0 MB view details)

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

File details

Details for the file calzone-1.0.0.tar.gz.

File metadata

  • Download URL: calzone-1.0.0.tar.gz
  • Upload date:
  • Size: 110.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for calzone-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ab6baec51d73bb5f21dfe0c630afda865f889b2e18fa44a22b976bc5f20e483d
MD5 0c93ebdbfe4b4d794386c1a1d11eabf0
BLAKE2b-256 8f9405ad407b980ecd81f4bfdad36fe1672dd8d4820f2cbbab6a89a6a7fb9468

See more details on using hashes here.

Provenance

The following attestation bundles were made for calzone-1.0.0.tar.gz:

Publisher: package.yml on niess/calzone

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for calzone-1.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d3f008785f150e78e03b0214f16596046872ff97b11ca0c34b3ee4a0ad6e589c
MD5 bc8d10aac6ee984f3d65928d269b4447
BLAKE2b-256 e55257dbfcf4652a6d9d778ce10ef4486f0dc45ec92fdd6ea488e336dc5df78b

See more details on using hashes here.

Provenance

The following attestation bundles were made for calzone-1.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: package.yml on niess/calzone

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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