Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
edebfc24
Commit
edebfc24
authored
4 years ago
by
Markus FRANK
Committed by
MarkusFrankATcernch
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix python warnings
parent
44a403df
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
examples/ClientTests/scripts/Check_reflection.py
+10
-7
10 additions, 7 deletions
examples/ClientTests/scripts/Check_reflection.py
with
10 additions
and
7 deletions
examples/ClientTests/scripts/Check_reflection.py
+
10
−
7
View file @
edebfc24
...
@@ -12,6 +12,7 @@ import sys
...
@@ -12,6 +12,7 @@ import sys
import
os
import
os
from
g4units
import
rad
,
GeV
,
MeV
,
mm
,
m
from
g4units
import
rad
,
GeV
,
MeV
,
mm
,
m
from
ddsix.moves
import
range
from
ddsix.moves
import
range
from
math
import
pi
logging
.
basicConfig
(
format
=
'
%(levelname)s: %(message)s
'
,
level
=
logging
.
INFO
)
logging
.
basicConfig
(
format
=
'
%(levelname)s: %(message)s
'
,
level
=
logging
.
INFO
)
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
@@ -89,13 +90,15 @@ def run():
...
@@ -89,13 +90,15 @@ def run():
geant4
.
setupROOTOutput
(
'
RootOutput
'
,
'
Reflections_
'
+
time
.
strftime
(
'
%Y-%m-%d_%H-%M
'
),
mc_truth
=
True
)
geant4
.
setupROOTOutput
(
'
RootOutput
'
,
'
Reflections_
'
+
time
.
strftime
(
'
%Y-%m-%d_%H-%M
'
),
mc_truth
=
True
)
#
#
# Setup particle gun
# Setup particle gun
geant4
.
setupGun
(
name
=
"
Gun
"
,
geant4
.
setupGun
(
name
=
"
Gun
"
,
particle
=
'
e-
'
,
particle
=
'
e-
'
,
energy
=
1000
*
GeV
,
energy
=
1000
*
GeV
,
multiplicity
=
1
,
multiplicity
=
1
,
position
=
(
0
*
m
,
0
*
m
,
0
*
m
),
position
=
(
0
*
m
,
0
*
m
,
0
*
m
),
PhiMin
=
0.0
*
rad
,
PhiMax
=
3.141
*
2.0
*
rad
,
PhiMin
=
0.0
*
rad
,
ThetaMin
=
0.0
*
rad
,
ThetaMax
=
3.141
*
rad
)
PhiMax
=
math
.
pi
*
2.0
*
rad
,
ThetaMin
=
0.0
*
rad
,
ThetaMax
=
math
.
pi
*
rad
)
logger
.
info
(
"
# ....and handle the simulation particles.
"
)
logger
.
info
(
"
# ....and handle the simulation particles.
"
)
part
=
DDG4
.
GeneratorAction
(
kernel
,
str
(
'
Geant4ParticleHandler/ParticleHandler
'
))
part
=
DDG4
.
GeneratorAction
(
kernel
,
str
(
'
Geant4ParticleHandler/ParticleHandler
'
))
...
...
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