Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Soumya Mohapatra
athena
Commits
e55818d5
Commit
e55818d5
authored
4 years ago
by
quli
Browse files
Options
Downloads
Patches
Plain Diff
Modification based on comments from experts
parent
723e7c97
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Simulation/SimulationJobOptions/share/specialConfig/preInclude.fcp.py
+13
-23
13 additions, 23 deletions
...imulationJobOptions/share/specialConfig/preInclude.fcp.py
with
13 additions
and
23 deletions
Simulation/SimulationJobOptions/share/specialConfig/preInclude.fcp.py
+
13
−
23
View file @
e55818d5
...
...
@@ -5,39 +5,34 @@
def
load_files_for_fcp_scenario
(
MASS
,
CHARGE
,
X
,
Y
):
import
os
,
shutil
,
sys
print
X
,
Y
CODE
=
int
(
20000000
)
+
int
(
X
)
*
1000
+
int
(
Y
)
*
10
print
CODE
print
(
"
Trying to load %d, %d for particle with code %d
"
%
(
X
,
Y
,
CODE
))
ALINE
1
=
"
M {code} {intmass}.E+03 +0.0E+00 -0.0E+00 fcp +
"
.
format
(
code
=
CODE
,
intmass
=
int
(
MASS
))
ALINE
2
=
"
W {code} 0.E+00 +0.0E+00 -0.0E+00 fcp +
"
.
format
(
code
=
CODE
)
BLINE
1
=
"
{code} {intmass}.00 {fcharge} 0.0 # fcp
"
.
format
(
code
=
CODE
,
intmass
=
int
(
MASS
),
fcharge
=
float
(
CHARGE
))
BLINE
2
=
"
-{code} {intmass}.00 -{fcharge} 0.0 # fcpBar
"
.
format
(
code
=
CODE
,
intmass
=
int
(
MASS
),
fcharge
=
float
(
CHARGE
))
pdgLine
1
=
"
M {code} {intmass}.E+03 +0.0E+00 -0.0E+00 fcp +
\n
"
.
format
(
code
=
CODE
,
intmass
=
int
(
MASS
))
pdgLine
2
=
"
W {code} 0.E+00 +0.0E+00 -0.0E+00 fcp +
\n
"
.
format
(
code
=
CODE
)
particleLine
1
=
"
{code} {intmass}.00 {fcharge} 0.0 # fcp
\n
"
.
format
(
code
=
CODE
,
intmass
=
int
(
MASS
),
fcharge
=
float
(
CHARGE
))
particleLine
2
=
"
-{code} {intmass}.00 -{fcharge} 0.0 # fcpBar
\n
"
.
format
(
code
=
CODE
,
intmass
=
int
(
MASS
),
fcharge
=
float
(
CHARGE
))
pdgmod
=
os
.
path
.
isfile
(
'
PDGTABLE.MeV
'
)
if
pdgmod
is
True
:
os
.
remove
(
'
PDGTABLE.MeV
'
)
os
.
system
(
'
get_files -data PDGTABLE.MeV
'
)
f
=
open
(
'
PDGTABLE.MeV
'
,
'
a
'
)
f
.
writelines
(
str
(
ALINE1
))
f
.
writelines
(
'
\n
'
)
f
.
writelines
(
str
(
ALINE2
))
f
.
writelines
(
'
\n
'
)
f
.
writelines
(
str
(
pdgLine1
))
f
.
writelines
(
str
(
pdgLine2
))
f
.
close
()
partmod
=
os
.
path
.
isfile
(
'
particles.txt
'
)
if
partmod
is
True
:
os
.
remove
(
'
particles.txt
'
)
f
=
open
(
'
particles.txt
'
,
'
w
'
)
f
.
writelines
(
str
(
BLINE1
))
f
.
writelines
(
'
\n
'
)
f
.
writelines
(
str
(
BLINE2
))
f
.
writelines
(
'
\n
'
)
f
.
writelines
(
str
(
particleLine1
))
f
.
writelines
(
str
(
particleLine2
))
f
.
close
()
del
ALINE
1
del
ALINE
2
del
BLINE
1
del
BLINE
2
del
pdgLine
1
del
pdgLine
2
del
particleLine
1
del
particleLine
2
doG4SimConfig
=
True
from
AthenaCommon.AthenaCommonFlags
import
athenaCommonFlags
...
...
@@ -72,11 +67,6 @@ if doG4SimConfig:
from
G4AtlasApps
import
AtlasG4Eng
AtlasG4Eng
.
G4Eng
.
log
.
info
(
"
Unlocking simFlags.EquationOfMotion to reset the value for Monopole simulation.
"
)
from
G4AtlasApps.SimFlags
import
simFlags
# FIXME ideally would include this file early enough, so that the unlocking is not required
#simFlags.EquationOfMotion.unlock()
#simFlags.EquationOfMotion.set_On()
#simFlags.EquationOfMotion.set_Value_and_Lock("G4mplEqMagElectricField")#"MonopoleEquationOfMotion")
#simFlags.G4Stepper.set_Value_and_Lock('ClassicalRK4')
simFlags
.
PhysicsOptions
+=
[
"
MonopolePhysicsTool
"
]
# add monopole-specific configuration for looper killer
simFlags
.
OptionalUserActionList
.
addAction
(
'
G4UA::MonopoleLooperKillerTool
'
)
...
...
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