Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSD Detector Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CSD-team
CSD Detector Project
Commits
36064644
Commit
36064644
authored
6 years ago
by
U.Mattschas
Browse files
Options
Downloads
Patches
Plain Diff
Update RunSimulation.py
parent
48316206
Branches
master
No related tags found
No related merge requests found
Pipeline
#4859
passed
6 years ago
Stage: unittests
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
RunSimulation.py
+8
-4
8 additions, 4 deletions
RunSimulation.py
with
8 additions
and
4 deletions
RunSimulation.py
+
8
−
4
View file @
36064644
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment