Skip to content
Snippets Groups Projects
Commit 273ca4c7 authored by Chao Peng's avatar Chao Peng
Browse files

rename LGC sim script

parent 1602ac3c
No related branches found
No related tags found
1 merge request!1Update
......@@ -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>
......
......@@ -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 = 100000
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 = "12.1*deg"
SIM.gun.thetaMin = "8.0*deg"
SIM.gun.thetaMax = "16.0*deg"
SIM.gun.distribution = "cos(theta)"
# Output file (assuming CWD)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment