Python package for automatic, cell-based inference of clash-free simplified detector geometry.
Project description
Welcome to pyGeoSimplify!
Download pyGeoSimplify
pip install pygeosimplify
Quick Start
import pygeosimplify as pgs
from pygeosimplify.simplify.layer import GeoLayer
from pygeosimplify.simplify.detector import SimplifiedDetector
# Set names of branches that specify coordinate system of cells
pgs.set_coordinate_branch("XYZ", "isCartesian")
# Load geometry
geo = pgs.load_geometry("DetectorCells.root", tree_name='treeName')
# Create simplified detector
detector = SimplifiedDetector()
# Add dector layers to detector
layer = GeoLayer(geo, layer_idx)
detector.add_layer(layer)
# Process detector
detector.process()
# Save simplified detector to gdml file
detector.save_to_gdml(cyl_type='processed', output_path='processed.gdml')
LICENSE
pyGeoSimplify is free of use and open-source. All versions are published under the MIT License.
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 Distribution
pygeosimplify-0.0.4.tar.gz
(20.0 kB
view hashes)
Built Distribution
Close
Hashes for pygeosimplify-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78ed27f41745733b8fd71a3bfbc4f61028006fd46cffa1e51ce31554708b0269 |
|
MD5 | 48cd62f69d3ff6a45a8500171e0fb22b |
|
BLAKE2b-256 | cb25ee3b11a98a5d84cd7fb1ea520f7a03d55fb74d70a4cbf4c93365533837ac |