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
048429be
Commit
048429be
authored
1 year ago
by
Chao Peng
Browse files
Options
Downloads
Patches
Plain Diff
move scripts for subsystems to a new folder
parent
a5c24a8b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/subsystems/lgc_sim.py
+13
-11
13 additions, 11 deletions
scripts/subsystems/lgc_sim.py
scripts/subsystems/lgc_vis.py
+0
-0
0 additions, 0 deletions
scripts/subsystems/lgc_vis.py
with
13 additions
and
11 deletions
scripts/
optics_lgc
.py
→
scripts/
subsystems/lgc_sim
.py
+
13
−
11
View file @
048429be
...
@@ -48,17 +48,15 @@ if __name__ == "__main__":
...
@@ -48,17 +48,15 @@ if __name__ == "__main__":
# Allow energy depositions to 0 energy in trackers (which include optical detectors)
# Allow energy depositions to 0 energy in trackers (which include optical detectors)
SIM
.
filter
.
tracker
=
"
edep0
"
SIM
.
filter
.
tracker
=
"
edep0
"
# det = "TelescopeCherenkov"
det
=
"
LightGaseCherenkov
"
# Some detectors are only sensitive to optical photons
# Some detectors are only sensitive to optical photons
SIM
.
filter
.
filters
[
"
opticalphotons
"
]
=
dict
(
SIM
.
filter
.
filters
[
"
opticalphotons
"
]
=
dict
(
name
=
"
ParticleSelectFilter/OpticalPhotonSelector
"
,
name
=
"
ParticleSelectFilter/OpticalPhotonSelector
"
,
parameter
=
{
"
particle
"
:
"
opticalphoton
"
},
parameter
=
{
"
particle
"
:
"
opticalphoton
"
},
)
)
SIM
.
filter
.
mapDetFilter
[
det
]
=
"
opticalphotons
"
SIM
.
filter
.
mapDetFilter
[
"
PFRICH
"
]
=
"
opticalphotons
"
# Use the optical tracker
# Use the optical tracker
for the PFRICH
SIM
.
action
.
mapActions
[
det
]
=
"
Geant4OpticalTrackerAction
"
SIM
.
action
.
mapActions
[
"
PFRICH
"
]
=
"
Geant4OpticalTrackerAction
"
# Disable user tracker particle handler, so hits can be associated to photons
# Disable user tracker particle handler, so hits can be associated to photons
SIM
.
part
.
userParticleHandler
=
""
SIM
.
part
.
userParticleHandler
=
""
...
@@ -66,15 +64,19 @@ if __name__ == "__main__":
...
@@ -66,15 +64,19 @@ if __name__ == "__main__":
# Particle gun settings: pions with fixed energy and theta, varying phi
# Particle gun settings: pions with fixed energy and theta, varying phi
SIM
.
numberOfEvents
=
100
SIM
.
numberOfEvents
=
100
SIM
.
enableGun
=
True
SIM
.
enableGun
=
True
SIM
.
gun
.
energy
=
"
3
*GeV
"
SIM
.
gun
.
energy
=
"
40
*GeV
"
SIM
.
gun
.
particle
=
"
e-
"
SIM
.
gun
.
particle
=
"
pi+
"
SIM
.
gun
.
thetaMin
=
"
1
6
.0*deg
"
SIM
.
gun
.
thetaMin
=
"
1
95
.0*deg
"
SIM
.
gun
.
thetaMax
=
"
1
6
.1*deg
"
SIM
.
gun
.
thetaMax
=
"
1
95
.1*deg
"
SIM
.
gun
.
distribution
=
"
cos(theta)
"
SIM
.
gun
.
distribution
=
"
cos(theta)
"
SIM
.
gun
.
position
=
(
0.
,
0.
,
"
-300.*cm
"
)
# Installed compact file, otherwise assume the user passed `--compactFile`
install_prefix
=
os
.
environ
.
get
(
"
DD4hepExamplesINSTALL
"
)
if
install_prefix
:
SIM
.
compactFile
=
install_prefix
+
"
/examples/RICH/compact/pfrich.xml
"
# Output file (assuming CWD)
# Output file (assuming CWD)
SIM
.
outputFile
=
"
optics_lgc
.root
"
SIM
.
outputFile
=
"
sim
.root
"
SIM
.
outputConfig
.
forceDD4HEP
=
True
SIM
.
outputConfig
.
forceDD4HEP
=
True
# Override with user options
# Override with user options
...
...
This diff is collapsed.
Click to expand it.
scripts/s
olid_lgc_sim_gui
.py
→
scripts/s
ubsystems/lgc_vis
.py
+
0
−
0
View file @
048429be
File moved
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