Skip to main content

Description of my package

Project description

ToyTrack

ToyTrack is a Python library for generating toy tracking events for particle physics. It provides classes for particles, hits, detectors, and events, and allows for the generation of events with a specified number of particles.

Installation

Use the package manager pip to install ToyTrack.

pip install toytrack

Usage

from toytrack import ParticleGun, Detector, EventGenerator
Initialize a particle gun
particle_gun = ParticleGun(dimension=2, pt=(0.1, 1.0, 'uniform'), pphi=(0, 2np.pi, 'uniform'), vx=0, vy=0)

# Initialize a detector
detector = Detector(dimension=2)
detector.add_from_template('barrel', min_radius=10, max_radius=100, number_of_layers=10)

# Initialize an event generator
event_generator = EventGenerator(particle_gun, detector, num_particles=(1, 10, 'uniform'))

# Generate an event
event = event_generator.generate_event()

# Access the particles and hits
particles = event.particles
hits = event.hits

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

toytrack-0.1.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

toytrack-0.1.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file toytrack-0.1.1.tar.gz.

File metadata

  • Download URL: toytrack-0.1.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for toytrack-0.1.1.tar.gz
Algorithm Hash digest
SHA256 241e2296b174d55c1b2411b67681e3de556fab6cafc67691180701354d0e7548
MD5 4ebee1fe12779694bdc53242aed79a7a
BLAKE2b-256 2146e3b61f52f0c0b8a24adef0060fd10a3379cbb1aafcfe28a0885bc32ce9fc

See more details on using hashes here.

File details

Details for the file toytrack-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: toytrack-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for toytrack-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae741c8b78c8570a09fbbf116709e4a98e7030569df448e3fdc52ca77afc8fc1
MD5 8de008ffd7ad807d2e8436b6122a5878
BLAKE2b-256 8060f291bbdb231d87d709ccadd0c28efa3b97d126e6d0dfa2445c51ef682fd0

See more details on using hashes here.

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