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)
 MSLLPValidationTruthServiceCfg (flags, name="ISF_MSLLPValidationTruthService", **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 72 of file ISF_ServicesConfig.py.

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

◆ GenericTruthServiceCfg()

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

Definition at line 106 of file ISF_ServicesConfig.py.

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

◆ InputConverterCfg()

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

Definition at line 35 of file ISF_ServicesConfig.py.

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

◆ MC12BeamPipeTruthStrategies()

ISF_ServicesConfig.MC12BeamPipeTruthStrategies ( )

Definition at line 133 of file ISF_ServicesConfig.py.

133def MC12BeamPipeTruthStrategies():
134 return ["ISF_MCTruthStrategyGroupID"]
135
136

◆ MC12CaloTruthStrategies()

ISF_ServicesConfig.MC12CaloTruthStrategies ( )

Definition at line 141 of file ISF_ServicesConfig.py.

141def MC12CaloTruthStrategies():
142 return ["ISF_MCTruthStrategyGroupCaloMuBrem"]
143
144

◆ MC12IDTruthStrategies()

ISF_ServicesConfig.MC12IDTruthStrategies ( )

Definition at line 137 of file ISF_ServicesConfig.py.

137def MC12IDTruthStrategies():
138 return ["ISF_MCTruthStrategyGroupID", "ISF_MCTruthStrategyGroupIDHadInt"]
139
140

◆ MC12LLPTruthServiceCfg()

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

Definition at line 166 of file ISF_ServicesConfig.py.

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

◆ MC12MSTruthStrategies()

ISF_ServicesConfig.MC12MSTruthStrategies ( )

Definition at line 145 of file ISF_ServicesConfig.py.

145def MC12MSTruthStrategies():
146 return []
147
148

◆ MC12PlusTruthServiceCfg()

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

Definition at line 181 of file ISF_ServicesConfig.py.

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

◆ MC12TruthServiceCfg()

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

Definition at line 149 of file ISF_ServicesConfig.py.

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

◆ MC15aPlusLLPTruthServiceCfg()

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

Definition at line 239 of file ISF_ServicesConfig.py.

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

◆ MC15aPlusTruthServiceCfg()

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

Definition at line 232 of file ISF_ServicesConfig.py.

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

◆ MC15aTruthServiceCfg()

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

Definition at line 227 of file ISF_ServicesConfig.py.

227def MC15aTruthServiceCfg(flags, name="ISF_MC15aTruthService", **kwargs):
228 kwargs.setdefault("ForceEndVtxInRegions", [])
229 return MC15TruthServiceCfg(flags, name, **kwargs)
230
231

◆ MC15BeamPipeTruthStrategies()

ISF_ServicesConfig.MC15BeamPipeTruthStrategies ( )

Definition at line 188 of file ISF_ServicesConfig.py.

188def MC15BeamPipeTruthStrategies():
189 return ["ISF_MCTruthStrategyGroupID_MC15"]
190
191

◆ MC15CaloTruthStrategies()

ISF_ServicesConfig.MC15CaloTruthStrategies ( )

Definition at line 196 of file ISF_ServicesConfig.py.

196def MC15CaloTruthStrategies():
197 return ["ISF_MCTruthStrategyGroupCaloMuBrem", "ISF_MCTruthStrategyGroupCaloMuBrem_MC15"]
198

◆ MC15IDTruthStrategies()

ISF_ServicesConfig.MC15IDTruthStrategies ( )

Definition at line 192 of file ISF_ServicesConfig.py.

192def MC15IDTruthStrategies():
193 return ["ISF_MCTruthStrategyGroupID_MC15", "ISF_MCTruthStrategyGroupIDHadInt_MC15"]
194
195

◆ MC15MSTruthStrategies()

ISF_ServicesConfig.MC15MSTruthStrategies ( )

Definition at line 199 of file ISF_ServicesConfig.py.

199def MC15MSTruthStrategies():
200 return []
201
202

◆ MC15TruthServiceCfg()

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

Definition at line 203 of file ISF_ServicesConfig.py.

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

◆ MC16LLPTruthServiceCfg()

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

Definition at line 262 of file ISF_ServicesConfig.py.

262def MC16LLPTruthServiceCfg(flags, name="ISF_MC16LLPTruthService", **kwargs):
263 return MC15aPlusLLPTruthServiceCfg(flags, name, **kwargs)
264
265
266# MC18 Truth Service Configurations

◆ MC16TruthServiceCfg()

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

Definition at line 258 of file ISF_ServicesConfig.py.

258def MC16TruthServiceCfg(flags, name="ISF_MC16TruthService", **kwargs):
259 return MC15aPlusTruthServiceCfg(flags, name, **kwargs)
260
261

◆ MC18LLPTruthServiceCfg()

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

Definition at line 271 of file ISF_ServicesConfig.py.

271def MC18LLPTruthServiceCfg(flags, name="ISF_MC18LLPTruthService", **kwargs):
272 return MC15aPlusLLPTruthServiceCfg(flags, name, **kwargs)
273
274
275# MSLLPValidation Truth Service Configuration

◆ MC18TruthServiceCfg()

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

Definition at line 267 of file ISF_ServicesConfig.py.

267def MC18TruthServiceCfg(flags, name="ISF_MC18TruthService", **kwargs):
268 return MC15aPlusTruthServiceCfg(flags, name, **kwargs)
269
270

◆ MSLLPValidationTruthServiceCfg()

ISF_ServicesConfig.MSLLPValidationTruthServiceCfg ( flags,
name = "ISF_MSLLPValidationTruthService",
** kwargs )

Definition at line 276 of file ISF_ServicesConfig.py.

276def MSLLPValidationTruthServiceCfg(flags, name="ISF_MSLLPValidationTruthService", **kwargs):
277 result = ComponentAccumulator()
278 AtlasRegion = ROOT.AtlasDetDescr.AtlasRegion
279
280 if "TruthStrategies" not in kwargs:
281 truthCfgs = [
282 # MC15aPlusLLP strategies
283 KeepLLPDecayChildrenStrategyCfg,
284 KeepLLPHadronicInteractionChildrenStrategyCfg,
285 TruthStrategyGroupID_MC15Cfg,
286 TruthStrategyGroupIDHadInt_MC15Cfg,
287 TruthStrategyGroupCaloMuBremCfg,
288 TruthStrategyGroupCaloDecay_MC15Cfg,
289 LLPTruthStrategyCfg,
290 # Broad Calo+MS strategies (500 MeV pT threshold)
291 TruthStrategyGroupCaloMSBroadCfg,
292 TruthStrategyGroupCaloMSHadIntCfg,
293 ]
294 truthStrats = [result.popToolsAndMerge(cfg(flags)) for cfg in truthCfgs]
295 kwargs.setdefault("TruthStrategies", truthStrats)
296
297 kwargs.setdefault("ForceEndVtxInRegions",
298 [AtlasRegion.fAtlasID, AtlasRegion.fAtlasCalo, AtlasRegion.fAtlasMS])
299 truthService = result.getPrimaryAndMerge(
300 MC15aPlusTruthServiceCfg(flags, name, **kwargs))
301 result.addService(truthService, primary=True)
302 return result

◆ ParticleBrokerSvcCfg()

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

Definition at line 62 of file ISF_ServicesConfig.py.

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

◆ ParticleBrokerSvcNoOrderingCfg()

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

Definition at line 47 of file ISF_ServicesConfig.py.

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

◆ TruthServiceCfg()

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

Definition at line 82 of file ISF_ServicesConfig.py.

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

◆ ValidationTruthServiceCfg()

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

Definition at line 122 of file ISF_ServicesConfig.py.

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