Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
solid
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
EIC
detectors
solid
Commits
273ca4c7
Commit
273ca4c7
authored
1 year ago
by
Chao Peng
Browse files
Options
Downloads
Patches
Plain Diff
rename LGC sim script
parent
1602ac3c
No related branches found
No related tags found
1 merge request
!1
Update
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compact/LGC.xml
+1
-1
1 addition, 1 deletion
compact/LGC.xml
scripts/LGC/sim.py
+5
-5
5 additions, 5 deletions
scripts/LGC/sim.py
with
6 additions
and
6 deletions
compact/LGC.xml
+
1
−
1
View file @
273ca4c7
...
...
@@ -190,7 +190,7 @@
<rotation
x=
"65*degree"
y=
"0"
z=
"0"
/>
<comment>
TODO: implement PMT material layers
</comment>
<pmt_array
dx=
"16*cm"
dy=
"16*cm"
sensitive=
"yes"
vis=
"LGCPMTVis"
/>
<cone
shape=
"
cone
"
thickness=
"4*mm"
rmin=
"7.0*cm"
rmax=
"21.5*cm"
length=
"30.*cm"
vis=
"LGCConeVis"
/>
<cone
shape=
"
paraboloid
"
thickness=
"4*mm"
rmin=
"7.0*cm"
rmax=
"21.5*cm"
length=
"30.*cm"
vis=
"LGCConeVis"
/>
<shield
material=
"Lead"
thickness=
"1.*cm"
radius=
"11.53*cm"
length=
"8.*cm"
shift_z=
"1.5*cm"
vis=
"LGCShieldVis"
/>
</winston_cone>
...
...
This diff is collapsed.
Click to expand it.
scripts/
subsystems/lgc_
sim.py
→
scripts/
LGC/
sim.py
+
5
−
5
View file @
273ca4c7
...
...
@@ -5,9 +5,9 @@ Based on M. Frank and F. Gaede runSim.py
Modified with settings for SoLID simulation
[simulation]:
python scripts/
subsystems/lgc_
sim.py --compactFile solid.xml --runType batch
python scripts/
LGC/
sim.py --compactFile solid.xml --runType batch
[visualization]:
python scripts/
subsystems/lgc_
sim.py --compactFile solid.xml --runType qt --macro macro/vis.mac
python scripts/
LGC/
sim.py --compactFile solid.xml --runType qt --macro macro/vis.mac
"""
from
__future__
import
absolute_import
,
unicode_literals
import
logging
...
...
@@ -65,13 +65,13 @@ if __name__ == "__main__":
SIM
.
part
.
userParticleHandler
=
""
# Particle gun settings: electrons with fixed energy and theta, varying phi
SIM
.
numberOfEvents
=
100
SIM
.
numberOfEvents
=
100
000
SIM
.
enableGun
=
True
SIM
.
gun
.
position
=
(
0.
,
0.
,
"
-300*cm
"
)
SIM
.
gun
.
energy
=
"
5*GeV
"
SIM
.
gun
.
particle
=
"
e-
"
SIM
.
gun
.
thetaMin
=
"
12
.0*deg
"
SIM
.
gun
.
thetaMax
=
"
1
2.1
*deg
"
SIM
.
gun
.
thetaMin
=
"
8
.0*deg
"
SIM
.
gun
.
thetaMax
=
"
1
6.0
*deg
"
SIM
.
gun
.
distribution
=
"
cos(theta)
"
# Output file (assuming CWD)
...
...
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