Skip to content
Snippets Groups Projects
Commit 36064644 authored by U.Mattschas's avatar U.Mattschas
Browse files

Update RunSimulation.py

parent 48316206
Branches master
No related tags found
No related merge requests found
Pipeline #4859 passed
......@@ -2,20 +2,24 @@
Script to run the full detector simulation.
"""
#TODO: Import all classes
""" Import all necessary classes. """
from Particles_software import Particle
from Detector import Layer, Detector
from analysis import Analysis
#TODO: Create Particle
""" Create a Particle """
PART = Particle()
#TODO: Hand particle to detector
""" Hand the particle to detector class to detect particle and measure its
properties. """
DET = Detector()
DETRes = DET.detect(PART)
#TODO: Hand detector results to analysis and get results
""" Hand detector results to Analysis class and compute results. If the particle
did not hit all 5 layers, an error message occures. The output is stored in
a results.csv file, the plot is saved in a 3D.png file. When simulation isrun
again, results.csv and 3D.png are overwritten. """
try:
ANA = Analysis()
ANA.fill(DETRes)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment