ATLAS Offline Software
Loading...
Searching...
No Matches
ISF_ServicesConfig Namespace Reference

Functions

 InputConverterCfg (flags, name="ISF_InputConverter", **kwargs)
 ParticleBrokerSvcNoOrderingCfg (flags, name="ISF_ParticleBrokerSvcNoOrdering", **kwargs)
 ParticleBrokerSvcCfg (flags, name="ISF_ParticleBrokerSvc", **kwargs)
 ATLFAST_ParticleBrokerSvcCfg (flags, name="ISF_ATLFAST_ParticleBrokerSvc", **kwargs)
 TruthServiceCfg (flags, **kwargs)
 GenericTruthServiceCfg (flags, name="ISF_TruthService", **kwargs)
 ValidationTruthServiceCfg (flags, name="ISF_ValidationTruthService", **kwargs)
 MC12BeamPipeTruthStrategies ()
 MC12IDTruthStrategies ()
 MC12CaloTruthStrategies ()
 MC12MSTruthStrategies ()
 MC12TruthServiceCfg (flags, name="ISF_MC12TruthService", **kwargs)
 MC12LLPTruthServiceCfg (flags, name="ISF_MC12TruthLLPService", **kwargs)
 MC12PlusTruthServiceCfg (flags, name="ISF_MC12PlusTruthService", **kwargs)
 MC15BeamPipeTruthStrategies ()
 MC15IDTruthStrategies ()
 MC15CaloTruthStrategies ()
 MC15MSTruthStrategies ()
 MC15TruthServiceCfg (flags, name="ISF_MC15TruthService", **kwargs)
 MC15aTruthServiceCfg (flags, name="ISF_MC15aTruthService", **kwargs)
 MC15aPlusTruthServiceCfg (flags, name="ISF_MC15aPlusTruthService", **kwargs)
 MC15aPlusLLPTruthServiceCfg (flags, name="ISF_MC15aPlusLLPTruthService", **kwargs)
 MC16TruthServiceCfg (flags, name="ISF_MC16TruthService", **kwargs)
 MC16LLPTruthServiceCfg (flags, name="ISF_MC16LLPTruthService", **kwargs)
 MC18TruthServiceCfg (flags, name="ISF_MC18TruthService", **kwargs)
 MC18LLPTruthServiceCfg (flags, name="ISF_MC18LLPTruthService", **kwargs)

Detailed Description

ComponentAccumulator service configuration for ISF

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

Function Documentation

◆ ATLFAST_ParticleBrokerSvcCfg()

ISF_ServicesConfig.ATLFAST_ParticleBrokerSvcCfg ( flags,
name = "ISF_ATLFAST_ParticleBrokerSvc",
** kwargs )

Definition at line 70 of file ISF_ServicesConfig.py.

70def ATLFAST_ParticleBrokerSvcCfg(flags, name="ISF_ATLFAST_ParticleBrokerSvc", **kwargs):
71 result = ComponentAccumulator()
72 kwargs.setdefault("EntryLayerTool", result.addPublicTool(result.popToolsAndMerge(ATLFAST_EntryLayerToolCfg(flags))))
73 kwargs.setdefault("GeoIDSvc", result.getService("ISF_ATLFAST_GeoIDSvc")) # FIXME
74 pbsvc = result.getPrimaryAndMerge(ParticleBrokerSvcCfg(flags, name, **kwargs))
75 result.addService(pbsvc, primary = True)
76 return result
77
78
79# Generic Truth Service Configurations

◆ GenericTruthServiceCfg()

ISF_ServicesConfig.GenericTruthServiceCfg ( flags,
name = "ISF_TruthService",
** kwargs )

Definition at line 103 of file ISF_ServicesConfig.py.

103def GenericTruthServiceCfg(flags, name="ISF_TruthService", **kwargs):
104 result = ComponentAccumulator()
105 kwargs.setdefault("BarcodeSvc", result.getPrimaryAndMerge(BarcodeSvcCfg(flags)))
106
107 kwargs.setdefault("SkipIfNoChildren", True)
108 kwargs.setdefault("SkipIfNoParentId", True)
109 kwargs.setdefault("ForceEndVtxInRegions", [])
110
111 if flags.Sim.ISF.Simulator.isQuasiStable():
112 kwargs.setdefault("QuasiStableParticlesIncluded", True)
113 kwargs.setdefault("QuasiStableParticleOverwrite", not flags.Sim.UseShadowEvent)
114 svc = CompFactory.ISF.TruthSvc(name, **kwargs)
115 result.addService(svc, primary=True)
116 return result
117
118

◆ InputConverterCfg()

ISF_ServicesConfig.InputConverterCfg ( flags,
name = "ISF_InputConverter",
** kwargs )

Definition at line 33 of file ISF_ServicesConfig.py.

33def InputConverterCfg(flags, name="ISF_InputConverter", **kwargs):
34 result = ComponentAccumulator()
35 kwargs.setdefault("QuasiStableParticlesIncluded", flags.Sim.ISF.Simulator.isQuasiStable())
36 kwargs.setdefault("UseShadowEvent", flags.Sim.UseShadowEvent)
37 kwargs.setdefault("UseGeneratedParticleMass", False)
38 if "GenParticleFilters" not in kwargs:
39 from ISF_HepMC_Tools.ISF_HepMC_ToolsConfig import GenParticleFilterToolsCfg
40 kwargs.setdefault("GenParticleFilters", result.popToolsAndMerge(GenParticleFilterToolsCfg(flags)) )
41 result.addService(CompFactory.ISF.InputConverter(name, **kwargs), primary = True)
42 return result
43
44

◆ MC12BeamPipeTruthStrategies()

ISF_ServicesConfig.MC12BeamPipeTruthStrategies ( )

Definition at line 130 of file ISF_ServicesConfig.py.

130def MC12BeamPipeTruthStrategies():
131 return ["ISF_MCTruthStrategyGroupID"]
132
133

◆ MC12CaloTruthStrategies()

ISF_ServicesConfig.MC12CaloTruthStrategies ( )

Definition at line 138 of file ISF_ServicesConfig.py.

138def MC12CaloTruthStrategies():
139 return ["ISF_MCTruthStrategyGroupCaloMuBrem"]
140
141

◆ MC12IDTruthStrategies()

ISF_ServicesConfig.MC12IDTruthStrategies ( )

Definition at line 134 of file ISF_ServicesConfig.py.

134def MC12IDTruthStrategies():
135 return ["ISF_MCTruthStrategyGroupID", "ISF_MCTruthStrategyGroupIDHadInt"]
136
137

◆ MC12LLPTruthServiceCfg()

ISF_ServicesConfig.MC12LLPTruthServiceCfg ( flags,
name = "ISF_MC12TruthLLPService",
** kwargs )

Definition at line 163 of file ISF_ServicesConfig.py.

163def MC12LLPTruthServiceCfg(flags, name="ISF_MC12TruthLLPService", **kwargs):
164 result = ComponentAccumulator()
165 truthCfgs = [
166 TruthStrategyGroupIDCfg,
167 TruthStrategyGroupIDHadIntCfg,
168 TruthStrategyGroupCaloMuBremCfg,
169 LLPTruthStrategyCfg,
170 ]
171 truthStrats = [result.popToolsAndMerge(cfg(flags)) for cfg in truthCfgs]
172 kwargs.setdefault("TruthStrategies", truthStrats)
173 truthService = result.getPrimaryAndMerge(MC12TruthServiceCfg(flags, name, **kwargs))
174 result.addService(truthService, primary = True)
175 return result
176
177

◆ MC12MSTruthStrategies()

ISF_ServicesConfig.MC12MSTruthStrategies ( )

Definition at line 142 of file ISF_ServicesConfig.py.

142def MC12MSTruthStrategies():
143 return []
144
145

◆ MC12PlusTruthServiceCfg()

ISF_ServicesConfig.MC12PlusTruthServiceCfg ( flags,
name = "ISF_MC12PlusTruthService",
** kwargs )

Definition at line 178 of file ISF_ServicesConfig.py.

178def MC12PlusTruthServiceCfg(flags, name="ISF_MC12PlusTruthService", **kwargs):
179 AtlasRegion = ROOT.AtlasDetDescr.AtlasRegion
180 kwargs.setdefault("ForceEndVtxInRegions", [AtlasRegion.fAtlasID] )
181 return MC12TruthServiceCfg(flags, name, **kwargs)
182
183
184# MC15 Truth Service Configurations

◆ MC12TruthServiceCfg()

ISF_ServicesConfig.MC12TruthServiceCfg ( flags,
name = "ISF_MC12TruthService",
** kwargs )

Definition at line 146 of file ISF_ServicesConfig.py.

146def MC12TruthServiceCfg(flags, name="ISF_MC12TruthService", **kwargs):
147 result = ComponentAccumulator()
148 if "TruthStrategies" not in kwargs:
149 truthCfgs = [
150 TruthStrategyGroupIDCfg,
151 TruthStrategyGroupIDHadIntCfg,
152 TruthStrategyGroupCaloMuBremCfg,
153 ]
154 truthStrats = [result.popToolsAndMerge(cfg(flags)) for cfg in truthCfgs]
155 kwargs.setdefault("TruthStrategies", truthStrats)
156 kwargs.setdefault("IgnoreUndefinedBarcodes", False)
157 kwargs.setdefault("PassWholeVertices", True)
158 truthService = result.getPrimaryAndMerge(GenericTruthServiceCfg(flags, name, **kwargs))
159 result.addService(truthService, primary=True)
160 return result
161
162

◆ MC15aPlusLLPTruthServiceCfg()

ISF_ServicesConfig.MC15aPlusLLPTruthServiceCfg ( flags,
name = "ISF_MC15aPlusLLPTruthService",
** kwargs )

Definition at line 236 of file ISF_ServicesConfig.py.

236def MC15aPlusLLPTruthServiceCfg(flags, name="ISF_MC15aPlusLLPTruthService", **kwargs):
237 result = ComponentAccumulator()
238 truthCfgs = [
239 KeepLLPDecayChildrenStrategyCfg,
240 KeepLLPHadronicInteractionChildrenStrategyCfg,
241 TruthStrategyGroupID_MC15Cfg,
242 TruthStrategyGroupIDHadInt_MC15Cfg,
243 TruthStrategyGroupCaloMuBremCfg, # FIXME - should be TruthStrategyGroupCaloDecay_MC15Cfg but keeping this for consistency with old style
244 TruthStrategyGroupCaloDecay_MC15Cfg,
245 LLPTruthStrategyCfg,
246 ]
247 truthStrats = [result.popToolsAndMerge(cfg(flags)) for cfg in truthCfgs]
248 kwargs.setdefault("TruthStrategies", truthStrats)
249 truthService = result.getPrimaryAndMerge(MC15aPlusTruthServiceCfg(flags, name, **kwargs))
250 result.addService(truthService, primary = True)
251 return result
252
253
254# MC16 Truth Service Configurations

◆ MC15aPlusTruthServiceCfg()

ISF_ServicesConfig.MC15aPlusTruthServiceCfg ( flags,
name = "ISF_MC15aPlusTruthService",
** kwargs )

Definition at line 229 of file ISF_ServicesConfig.py.

229def MC15aPlusTruthServiceCfg(flags, name="ISF_MC15aPlusTruthService", **kwargs):
230 AtlasRegion = ROOT.AtlasDetDescr.AtlasRegion
231
232 kwargs.setdefault("ForceEndVtxInRegions", [AtlasRegion.fAtlasID])
233 return MC15TruthServiceCfg(flags, name, **kwargs)
234
235

◆ MC15aTruthServiceCfg()

ISF_ServicesConfig.MC15aTruthServiceCfg ( flags,
name = "ISF_MC15aTruthService",
** kwargs )

Definition at line 224 of file ISF_ServicesConfig.py.

224def MC15aTruthServiceCfg(flags, name="ISF_MC15aTruthService", **kwargs):
225 kwargs.setdefault("ForceEndVtxInRegions", [])
226 return MC15TruthServiceCfg(flags, name, **kwargs)
227
228

◆ MC15BeamPipeTruthStrategies()

ISF_ServicesConfig.MC15BeamPipeTruthStrategies ( )

Definition at line 185 of file ISF_ServicesConfig.py.

185def MC15BeamPipeTruthStrategies():
186 return ["ISF_MCTruthStrategyGroupID_MC15"]
187
188

◆ MC15CaloTruthStrategies()

ISF_ServicesConfig.MC15CaloTruthStrategies ( )

Definition at line 193 of file ISF_ServicesConfig.py.

193def MC15CaloTruthStrategies():
194 return ["ISF_MCTruthStrategyGroupCaloMuBrem", "ISF_MCTruthStrategyGroupCaloMuBrem_MC15"]
195

◆ MC15IDTruthStrategies()

ISF_ServicesConfig.MC15IDTruthStrategies ( )

Definition at line 189 of file ISF_ServicesConfig.py.

189def MC15IDTruthStrategies():
190 return ["ISF_MCTruthStrategyGroupID_MC15", "ISF_MCTruthStrategyGroupIDHadInt_MC15"]
191
192

◆ MC15MSTruthStrategies()

ISF_ServicesConfig.MC15MSTruthStrategies ( )

Definition at line 196 of file ISF_ServicesConfig.py.

196def MC15MSTruthStrategies():
197 return []
198
199

◆ MC15TruthServiceCfg()

ISF_ServicesConfig.MC15TruthServiceCfg ( flags,
name = "ISF_MC15TruthService",
** kwargs )

Definition at line 200 of file ISF_ServicesConfig.py.

200def MC15TruthServiceCfg(flags, name="ISF_MC15TruthService", **kwargs):
201 result = ComponentAccumulator()
202 AtlasRegion = ROOT.AtlasDetDescr.AtlasRegion
203
204 if "TruthStrategies" not in kwargs:
205 truthCfgs = [
206 TruthStrategyGroupID_MC15Cfg,
207 TruthStrategyGroupIDHadInt_MC15Cfg,
208 TruthStrategyGroupCaloMuBremCfg, # FIXME - should be TruthStrategyGroupCaloMuBrem_MC15Cfg but keeping this for consistency with old style
209 TruthStrategyGroupCaloDecay_MC15Cfg ]
210 if flags.Sim.RecordStepInfo:
211 # Override Truth strategies for FCS Parameterization input samples
212 truthCfgs = [ FCSParamTruthStrategyCfg ]
213 truthStrats = [result.popToolsAndMerge(cfg(flags)) for cfg in truthCfgs]
214 kwargs.setdefault("TruthStrategies", truthStrats)
215
216 kwargs.setdefault("IgnoreUndefinedBarcodes", False)
217 kwargs.setdefault("PassWholeVertices", False) # new for MC15 - can write out partial vertices.
218 kwargs.setdefault("ForceEndVtxInRegions", [AtlasRegion.fAtlasID])
219 truthService = result.getPrimaryAndMerge(GenericTruthServiceCfg(flags, name, **kwargs))
220 result.addService(truthService, primary=True)
221 return result
222
223

◆ MC16LLPTruthServiceCfg()

ISF_ServicesConfig.MC16LLPTruthServiceCfg ( flags,
name = "ISF_MC16LLPTruthService",
** kwargs )

Definition at line 259 of file ISF_ServicesConfig.py.

259def MC16LLPTruthServiceCfg(flags, name="ISF_MC16LLPTruthService", **kwargs):
260 return MC15aPlusLLPTruthServiceCfg(flags, name, **kwargs)
261
262
263# MC18 Truth Service Configurations

◆ MC16TruthServiceCfg()

ISF_ServicesConfig.MC16TruthServiceCfg ( flags,
name = "ISF_MC16TruthService",
** kwargs )

Definition at line 255 of file ISF_ServicesConfig.py.

255def MC16TruthServiceCfg(flags, name="ISF_MC16TruthService", **kwargs):
256 return MC15aPlusTruthServiceCfg(flags, name, **kwargs)
257
258

◆ MC18LLPTruthServiceCfg()

ISF_ServicesConfig.MC18LLPTruthServiceCfg ( flags,
name = "ISF_MC18LLPTruthService",
** kwargs )

Definition at line 268 of file ISF_ServicesConfig.py.

268def MC18LLPTruthServiceCfg(flags, name="ISF_MC18LLPTruthService", **kwargs):
269 return MC15aPlusLLPTruthServiceCfg(flags, name, **kwargs)

◆ MC18TruthServiceCfg()

ISF_ServicesConfig.MC18TruthServiceCfg ( flags,
name = "ISF_MC18TruthService",
** kwargs )

Definition at line 264 of file ISF_ServicesConfig.py.

264def MC18TruthServiceCfg(flags, name="ISF_MC18TruthService", **kwargs):
265 return MC15aPlusTruthServiceCfg(flags, name, **kwargs)
266
267

◆ ParticleBrokerSvcCfg()

ISF_ServicesConfig.ParticleBrokerSvcCfg ( flags,
name = "ISF_ParticleBrokerSvc",
** kwargs )

Definition at line 60 of file ISF_ServicesConfig.py.

60def ParticleBrokerSvcCfg(flags, name="ISF_ParticleBrokerSvc", **kwargs):
61 # comment copied from old config
62 #kwargs.setdefault("ParticleOrderingTool", "ISF_InToOutSubDetOrderingTool")
63 result = ComponentAccumulator()
64 kwargs.setdefault("ParticleOrderingTool", result.popToolsAndMerge(ParticleOrderingToolCfg(flags)))
65 pbsvc = result.getPrimaryAndMerge(ParticleBrokerSvcNoOrderingCfg(flags, name, **kwargs))
66 result.addService(pbsvc, primary = True)
67 return result
68
69

◆ ParticleBrokerSvcNoOrderingCfg()

ISF_ServicesConfig.ParticleBrokerSvcNoOrderingCfg ( flags,
name = "ISF_ParticleBrokerSvcNoOrdering",
** kwargs )

Definition at line 45 of file ISF_ServicesConfig.py.

45def ParticleBrokerSvcNoOrderingCfg(flags, name="ISF_ParticleBrokerSvcNoOrdering", **kwargs):
46 result = ComponentAccumulator()
47 if "EntryLayerTool" not in kwargs:
48 kwargs.setdefault("EntryLayerTool", result.addPublicTool(result.popToolsAndMerge(EntryLayerToolCfg(flags))))
49 kwargs.setdefault("GeoIDSvc", result.getService("ISF_GeoIDSvc")) # FIXME
50 # assume "GeoIDSvc" has been set alongside "EntryLayerTool"
51 kwargs.setdefault("AlwaysUseGeoIDSvc", False)
52 kwargs.setdefault("ValidateGeoIDs", flags.Sim.ISF.ValidationMode)
53 kwargs.setdefault("ValidationOutput", flags.Sim.ISF.ValidationMode)
54 kwargs.setdefault("ValidationStreamName", "ParticleBroker")
55
56 result.addService(CompFactory.ISF.ParticleBrokerDynamicOnReadIn(name, **kwargs), primary = True)
57 return result
58
59

◆ TruthServiceCfg()

ISF_ServicesConfig.TruthServiceCfg ( flags,
** kwargs )
Return the TruthService config flagged by Sim.TruthStrategy

Definition at line 80 of file ISF_ServicesConfig.py.

80def TruthServiceCfg(flags, **kwargs):
81 """Return the TruthService config flagged by Sim.TruthStrategy"""
82 stratmap = {
83 TruthStrategy.MC12: MC12TruthServiceCfg,
84 TruthStrategy.MC12LLP: MC12LLPTruthServiceCfg,
85 TruthStrategy.MC12Plus: MC12PlusTruthServiceCfg,
86 TruthStrategy.MC15: MC15TruthServiceCfg,
87 TruthStrategy.MC15a: MC15aTruthServiceCfg,
88 TruthStrategy.MC15aPlus: MC15aPlusTruthServiceCfg,
89 TruthStrategy.MC15aPlusLLP: MC15aPlusLLPTruthServiceCfg,
90 TruthStrategy.MC16: MC16TruthServiceCfg,
91 TruthStrategy.MC16LLP: MC16LLPTruthServiceCfg,
92 TruthStrategy.MC18: MC18TruthServiceCfg,
93 TruthStrategy.MC18LLP: MC18LLPTruthServiceCfg,
94 # TruthStrategy.PhysicsProcess: PhysicsProcessTruthServiceCfg,
95 # TruthStrategy.Global: GlobalTruthServiceCfg,
96 TruthStrategy.Validation: ValidationTruthServiceCfg,
97 # TruthStrategy.Cosmic: CosmicTruthServiceCfg,
98 }
99 xCfg = stratmap[flags.Sim.TruthStrategy]
100 return xCfg(flags, **kwargs)
101
102

◆ ValidationTruthServiceCfg()

ISF_ServicesConfig.ValidationTruthServiceCfg ( flags,
name = "ISF_ValidationTruthService",
** kwargs )

Definition at line 119 of file ISF_ServicesConfig.py.

119def ValidationTruthServiceCfg(flags, name="ISF_ValidationTruthService", **kwargs):
120 result = ComponentAccumulator()
121 kwargs.setdefault("TruthStrategies", [result.popToolsAndMerge(ValidationTruthStrategyCfg(flags))] )
122 kwargs.setdefault("IgnoreUndefinedBarcodes", True)
123 kwargs.setdefault("PassWholeVertices", True)
124 truthService = result.getPrimaryAndMerge(GenericTruthServiceCfg(flags, name, **kwargs))
125 result.addService(truthService, primary=True)
126 return result
127
128
129# MC12 Truth Service Configurations