ATLAS Offline Software
Functions | Variables
ISF_Geant4CommonToolsConfig Namespace Reference

Functions

def EntryLayerToolMTCfg (flags, name="ISF_EntryLayerToolMT", **kwargs)
 
def ATLFAST_EntryLayerToolCfg (flags, name="ISF_ATLFAST_EntryLayerTool", **kwargs)
 
def ATLFAST_EntryLayerToolMTCfg (flags, name="ISF_ATLFAST_EntryLayerToolMT", **kwargs)
 

Variables

 result
 
 OEsvc
 

Detailed Description

ComponentAccumulator Geant4 tools config for ISF

Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration

Function Documentation

◆ ATLFAST_EntryLayerToolCfg()

def ISF_Geant4CommonToolsConfig.ATLFAST_EntryLayerToolCfg (   flags,
  name = "ISF_ATLFAST_EntryLayerTool",
**  kwargs 
)

Definition at line 53 of file ISF_Geant4CommonToolsConfig.py.

53 def ATLFAST_EntryLayerToolCfg(flags, name="ISF_ATLFAST_EntryLayerTool", **kwargs):
54  result = ComponentAccumulator()
55  kwargs["GeoIDSvc"] = result.getPrimaryAndMerge(ATLFAST_GeoIDSvcCfg(flags)).name
56  kwargs.setdefault("ParticleFilters", [result.addPublicTool(result.popToolsAndMerge(EntryLayerFilterCfg(flags)))])
57 
58  if flags.GeoModel.Run < LHCPeriod.Run4:
59  kwargs.setdefault("CaloEntryVolumeString", "IDET::IDET")
60  else:
61  kwargs.setdefault("CaloEntryVolumeString", "ITK::ITK")
62 
63  if flags.Common.ProductionStep == ProductionStep.FastChain:
64  if flags.Digitization.PileUp:
65  OEsvc = CompFactory.StoreGateSvc("OriginalEvent_SG")
66  result.addService(OEsvc)
67  kwargs.setdefault("EvtStore", OEsvc.name)
68 
69  result.setPrivateTools(CompFactory.ISF.EntryLayerTool(name, **kwargs))
70  return result
71 
72 

◆ ATLFAST_EntryLayerToolMTCfg()

def ISF_Geant4CommonToolsConfig.ATLFAST_EntryLayerToolMTCfg (   flags,
  name = "ISF_ATLFAST_EntryLayerToolMT",
**  kwargs 
)

Definition at line 73 of file ISF_Geant4CommonToolsConfig.py.

73 def ATLFAST_EntryLayerToolMTCfg(flags, name="ISF_ATLFAST_EntryLayerToolMT", **kwargs):
74  result = ComponentAccumulator()
75  kwargs["GeoIDSvc"] = result.getPrimaryAndMerge(ATLFAST_GeoIDSvcCfg(flags)).name
76 
77  filt = result.popToolsAndMerge(EntryLayerFilterCfg(flags))
78  kwargs.setdefault("ParticleFilters", [filt])
79 
80  if flags.GeoModel.Run < LHCPeriod.Run4:
81  kwargs.setdefault("CaloEntryVolumeString", "IDET::IDET")
82  else:
83  kwargs.setdefault("CaloEntryVolumeString", "ITK::ITK")
84 
85  result.setPrivateTools(CompFactory.ISF.EntryLayerToolMT(name, **kwargs))
86  return result

◆ EntryLayerToolMTCfg()

def ISF_Geant4CommonToolsConfig.EntryLayerToolMTCfg (   flags,
  name = "ISF_EntryLayerToolMT",
**  kwargs 
)

Definition at line 35 of file ISF_Geant4CommonToolsConfig.py.

35 def EntryLayerToolMTCfg(flags, name="ISF_EntryLayerToolMT", **kwargs):
36  result = ComponentAccumulator()
37  kwargs["GeoIDSvc"] = result.getPrimaryAndMerge(GeoIDSvcCfg(flags)).name
38 
39  if not flags.Sim.RecordStepInfo:
40  # No filtering for FCS Parameterization input samples
41  filt = result.popToolsAndMerge(EntryLayerFilterCfg(flags))
42  kwargs.setdefault("ParticleFilters", [filt])
43 
44  if flags.GeoModel.Run < LHCPeriod.Run4:
45  kwargs.setdefault("CaloEntryVolumeString", "IDET::IDET")
46  else:
47  kwargs.setdefault("CaloEntryVolumeString", "ITK::ITK")
48 
49  result.setPrivateTools(CompFactory.ISF.EntryLayerToolMT(name, **kwargs))
50  return result
51 
52 

Variable Documentation

◆ OEsvc

ISF_Geant4CommonToolsConfig.OEsvc

Definition at line 27 of file ISF_Geant4CommonToolsConfig.py.

◆ result

ISF_Geant4CommonToolsConfig.result

Definition at line 13 of file ISF_Geant4CommonToolsConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ISF_Geant4CommonToolsConfig.ATLFAST_EntryLayerToolCfg
def ATLFAST_EntryLayerToolCfg(flags, name="ISF_ATLFAST_EntryLayerTool", **kwargs)
Definition: ISF_Geant4CommonToolsConfig.py:53
ISF_ServicesCoreConfig.ATLFAST_GeoIDSvcCfg
def ATLFAST_GeoIDSvcCfg(flags, name="ISF_ATLFAST_GeoIDSvc", **kwargs)
Definition: ISF_ServicesCoreConfig.py:39
ISF_Geant4CommonToolsConfig.ATLFAST_EntryLayerToolMTCfg
def ATLFAST_EntryLayerToolMTCfg(flags, name="ISF_ATLFAST_EntryLayerToolMT", **kwargs)
Definition: ISF_Geant4CommonToolsConfig.py:73
ISF_Geant4CommonToolsConfig.EntryLayerToolMTCfg
def EntryLayerToolMTCfg(flags, name="ISF_EntryLayerToolMT", **kwargs)
Definition: ISF_Geant4CommonToolsConfig.py:35
ISF_ServicesCoreConfig.GeoIDSvcCfg
def GeoIDSvcCfg(flags, name="ISF_GeoIDSvc", **kwargs)
Definition: ISF_ServicesCoreConfig.py:22
ISF_ToolsConfig.EntryLayerFilterCfg
def EntryLayerFilterCfg(flags, **kwargs)
Definition: ISF_ToolsConfig.py:22