ATTPC / attpc_engine

AT-TPC Monte Carlo simulation engine in Python
GNU General Public License v3.0
1 stars 0 forks source link

Implement Detector Simulation #1

Closed sigmanotation closed 4 months ago

sigmanotation commented 5 months ago

Alpha build of detector simulation code. Takes the kinematic four vectors of the exit channel products generated from the pipeline, solves their equation of motion, determines how many electrons they produce along their track, drifts these electrons to the pad plane, and digitizes the resulting signals. simulator.py contains the main functions to run the simulation, solver.py contains the needed functions for solving the equation of motion, transporter.py contains the functions for transporting the electrons to the pad plane, and parameters.py contains the classes and functions related to storing the detector parameters.

The transporting of electrons to the pad plane, so transporter.py, is fully jit-ed. That said, the code is still overall slow. More speed enhancements should be made.

Added Numba as a dependency.