1 """ComponentAccumulator tool configuration for ISF
3 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
10 def ParticleHelperCfg(flags, name="ISF_ParticleHelper", **kwargs):
12 acc.setPrivateTools(CompFactory.ISF.ParticleHelper(name, **kwargs))
18 acc.setPrivateTools(CompFactory.ISF.MemoryMonitoringTool(name, **kwargs))
23 """Return the MCxEntryLayerFilterCfg config flagged by Sim.TruthStrategy"""
24 from SimulationConfig.SimEnums
import TruthStrategy
26 TruthStrategy.MC12: MC12EntryLayerFilterCfg,
27 TruthStrategy.MC12LLP: MC12LLPEntryLayerFilterCfg,
28 TruthStrategy.MC12Plus: MC12PlusEntryLayerFilterCfg,
29 TruthStrategy.MC15: MC15EntryLayerFilterCfg,
30 TruthStrategy.MC15a: MC15aEntryLayerFilterCfg,
31 TruthStrategy.MC15aPlus: MC15aPlusEntryLayerFilterCfg,
32 TruthStrategy.MC15aPlusLLP: MC15aPlusLLPEntryLayerFilterCfg,
33 TruthStrategy.MC16: MC16EntryLayerFilterCfg,
34 TruthStrategy.MC16LLP: MC16LLPEntryLayerFilterCfg,
35 TruthStrategy.MC18: MC18EntryLayerFilterCfg,
36 TruthStrategy.MC18LLP: MC18LLPEntryLayerFilterCfg,
37 TruthStrategy.Validation: ValidationEntryLayerFilterCfg,
40 TruthStrategy.Cosmic: CosmicEventFilterToolCfg,
42 MCxCfg = stratmap[flags.Sim.TruthStrategy]
43 return MCxCfg(flags, **kwargs)
48 acc.setPrivateTools(CompFactory.ISF.EntryLayerFilter(name, **kwargs))
62 kwargs.setdefault(
"MinEkinCharged", 100.*MeV)
63 kwargs.setdefault(
"MinEkinNeutral", -1.)
64 acc.setPrivateTools(CompFactory.ISF.EntryLayerFilter(name, **kwargs))
101 from G4CosmicFilter.G4CosmicFilterConfig
import configCosmicFilterVolumeNames
104 kwargs.setdefault(
"UseAndFilter", len(volumeNames)<3 )
105 kwargs.setdefault(
"VolumeNames", volumeNames)
106 if flags.Sim.CosmicFilterID:
107 kwargs.setdefault(
"PDG_ID", flags.Sim.CosmicFilterID)
108 if flags.Sim.CosmicFilterPTmin:
109 kwargs.setdefault(
"ptMin", flags.Sim.CosmicFilterPTmin)
110 if flags.Sim.CosmicFilterPTmax:
111 kwargs.setdefault(
"ptMax", flags.Sim.CosmicFilterPTmax)
112 acc.setPrivateTools(CompFactory.ISF.CosmicEventFilterTool(name, **kwargs))
117 kwargs.setdefault(
"VolumeNames", [
"StoppingPositions"])
119 acc.setPrivateTools(CompFactory.ISF.CosmicEventFilterTool(name, **kwargs))
125 kwargs.setdefault(
"OrderID" , 100000000)
126 kwargs.setdefault(
"OrderBeamPipe", 1000000 )
127 kwargs.setdefault(
"OrderCalo" , 10000 )
128 kwargs.setdefault(
"OrderMS" , 100 )
129 kwargs.setdefault(
"OrderCavern" , 1 )
131 acc.setPrivateTools(CompFactory.ISF.GenericParticleOrderingTool(name, **kwargs))
136 kwargs.setdefault(
"OrderID" , 1)
137 kwargs.setdefault(
"OrderBeamPipe", 1)
138 kwargs.setdefault(
"OrderCalo" , 1)
139 kwargs.setdefault(
"OrderMS" , 1)
140 kwargs.setdefault(
"OrderCavern" , 1)
142 acc.setPrivateTools(CompFactory.ISF.GenericParticleOrderingTool(name, **kwargs))
148 acc.setPrivateTools(CompFactory.ISF.EnergyParticleOrderingTool(name, **kwargs))
154 acc.setPrivateTools(CompFactory.ISF.ParticleKillerSimTool(name, **kwargs))