Skip to content
Snippets Groups Projects
Commit 9243c9ed authored by James Beacham's avatar James Beacham
Browse files

Merge branch 'ISF_ParticleFinalStateFilter_ATLASSIM-3634_21.0' into '21.0'

Move all configuration for ISF_ParticleFinalStateFilter into the CfgGetter method

See merge request atlas/athena!10423

Former-commit-id: 3924bc802f57afc6ba8516c7c7f59a3005e3ab2a
parents ba82c39c 3cd2fd98
No related branches found
No related tags found
No related merge requests found
......@@ -44,13 +44,6 @@ class iGeant4:
svcMgr += Geant4SimService
self.__simSvc__ = Geant4SimService
##FIXME: ISF_ParticleFinalStateFilter is configured in
##ISF_HepMC_ToolsConfig.py and is only used by ISF_StackFiller
##which is also configured in ISF_HepMC_ToolsConfig.py.
finalStateFilter = getPublicTool("ISF_ParticleFinalStateFilter")
finalStateFilter.CheckGenSimStable = False
finalStateFilter.CheckGenInteracting = False
####################################
##
## the G4 Python part:
......
......@@ -13,9 +13,13 @@ from AthenaCommon.SystemOfUnits import MeV, mm
## GenParticleFilters
def getParticleFinalStateFilter(name="ISF_ParticleFinalStateFilter", **kwargs):
# ParticleFinalStateFilter
from ISF_Config.ISF_jobProperties import ISF_Flags
G4NotInUse = not ISF_Flags.UsingGeant4.get_Value()
from G4AtlasApps.SimFlags import simFlags
G4NotInUse = G4NotInUse and simFlags.ISFRun.get_Value()
# use CheckGenInteracting==False to allow GenEvent neutrinos to propagate into the simulation
#kwargs.setdefault("CheckGenInteracting" , False )
kwargs.setdefault("CheckGenSimStable", G4NotInUse)
kwargs.setdefault("CheckGenInteracting", G4NotInUse)
return CfgMgr.ISF__GenParticleFinalStateFilter(name, **kwargs)
def getParticleSimWhiteList(name="ISF_ParticleSimWhiteList", **kwargs):
......
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