Skip to content
Snippets Groups Projects
Commit 9c897213 authored by Andre Sailer's avatar Andre Sailer
Browse files

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
No related tags found
No related merge requests found
...@@ -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")
......
"""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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment