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
9c897213
Commit
9c897213
authored
9 years ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
DDSim: add property for minimal distance between vertex and endpoint of parent to set the flag
needs dd4hep revision 2071
parent
3cee95d4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DDSim/DD4hepSimulation.py
+1
-0
1 addition, 0 deletions
DDSim/DD4hepSimulation.py
DDSim/Helper/ParticleHandler.py
+12
-1
12 additions, 1 deletion
DDSim/Helper/ParticleHandler.py
with
13 additions
and
1 deletion
DDSim/DD4hepSimulation.py
+
1
−
0
View file @
9c897213
...
@@ -365,6 +365,7 @@ class DD4hepSimulation(object):
...
@@ -365,6 +365,7 @@ class DD4hepSimulation(object):
part
.
KeepAllParticles
=
self
.
part
.
keepAllParticles
part
.
KeepAllParticles
=
self
.
part
.
keepAllParticles
part
.
PrintEndTracking
=
self
.
part
.
printEndTracking
part
.
PrintEndTracking
=
self
.
part
.
printEndTracking
part
.
PrintStartTracking
=
self
.
part
.
printStartTracking
part
.
PrintStartTracking
=
self
.
part
.
printStartTracking
part
.
MinDistToParentVertex
=
self
.
part
.
minDistToParentVertex
part
.
OutputLevel
=
self
.
output
.
part
part
.
OutputLevel
=
self
.
output
.
part
part
.
enableUI
()
part
.
enableUI
()
user
=
DDG4
.
Action
(
kernel
,
"
Geant4TCUserParticleHandler/UserParticleHandler
"
)
user
=
DDG4
.
Action
(
kernel
,
"
Geant4TCUserParticleHandler/UserParticleHandler
"
)
...
...
This diff is collapsed.
Click to expand it.
DDSim/Helper/ParticleHandler.py
+
12
−
1
View file @
9c897213
"""
Configuration Helper for ParticleHandler
"""
"""
Configuration Helper for ParticleHandler
"""
from
SystemOfUnits
import
MeV
from
SystemOfUnits
import
MeV
,
mm
from
DDSim.Helper.ConfigHelper
import
ConfigHelper
from
DDSim.Helper.ConfigHelper
import
ConfigHelper
...
@@ -12,6 +12,17 @@ class ParticleHandler( ConfigHelper ):
...
@@ -12,6 +12,17 @@ class ParticleHandler( ConfigHelper ):
self
.
_keepAllParticles
=
False
self
.
_keepAllParticles
=
False
self
.
_printEndTracking
=
False
self
.
_printEndTracking
=
False
self
.
_printStartTracking
=
False
self
.
_printStartTracking
=
False
self
.
_minDistToParentVertex
=
2.2e-14
*
mm
@property
def
minDistToParentVertex
(
self
):
"""
Minimal distance between particle vertex and endpoint of parent after
which the vertexIsNotEndpointOfParent flag is set
"""
return
self
.
_minDistToParentVertex
@minDistToParentVertex.setter
def
minDistToParentVertex
(
self
,
val
):
self
.
_minDistToParentVertex
=
val
@property
@property
def
saveProcesses
(
self
):
def
saveProcesses
(
self
):
...
...
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