|
ATLAS Offline Software
|
|
def | PileUpConfigdSFMT (name) |
|
def | StepArrayBMCfg (flags, name="StepArrayBM", **kwargs) |
|
def | FixedArrayBMCfg (flags, name="FixedArrayBM", **kwargs) |
|
def | ArrayBMCfg (flags, name="ArrayBM", **kwargs) |
|
def | GenericBackgroundEventSelectorCfg (flags, name="GenericBackgroundEventSelector", **kwargs) |
|
def | LowPtMinBiasEventSelectorCfg (flags, name="LowPtMinBiasEventSelector", **kwargs) |
|
def | HighPtMinBiasEventSelectorCfg (flags, name="HighPtMinBiasEventSelector", **kwargs) |
|
def | CavernEventSelectorCfg (flags, name="cavernEventSelector", **kwargs) |
|
def | BeamGasEventSelectorCfg (flags, name="BeamGasEventSelector", **kwargs) |
|
def | BeamHaloEventSelectorCfg (flags, name="BeamHaloEventSelector", **kwargs) |
|
def | MinBiasCacheCfg (flags, name="MinBiasCache", **kwargs) |
|
def | LowPtMinBiasCacheCfg (flags, name="LowPtMinBiasCache", **kwargs) |
|
def | HighPtMinBiasCacheCfg (flags, name="HighPtMinBiasCache", **kwargs) |
|
def | CavernCacheCfg (flags, name="CavernCache", **kwargs) |
|
def | BeamGasCacheCfg (flags, name="BeamGasCache", **kwargs) |
|
def | BeamHaloCacheCfg (flags, name="BeamHaloCache", **kwargs) |
|
def | PileUpEventLoopMgrCfg (flags, name="PileUpEventLoopMgr", **kwargs) |
|
def | NoPileUpMuWriterCfg (flags, name="NoPileUpMuWriter", **kwargs) |
|
ComponentAccumulator confguration for pileup digitization
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
◆ ArrayBMCfg()
def python.PileUpConfig.ArrayBMCfg |
( |
|
flags, |
|
|
|
name = "ArrayBM" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 43 of file PileUpConfig.py.
43 def ArrayBMCfg(flags, name="ArrayBM", **kwargs):
45 kwargs.setdefault(
"IntensityPattern", flags.Digitization.PU.BeamIntensityPattern)
46 kwargs.setdefault(
"RandomSvc", acc.getPrimaryAndMerge(
AthRNGSvcCfg(flags)).name)
47 acc.addService(CompFactory.ArrayBM(name, **kwargs), primary=
True)
◆ BeamGasCacheCfg()
def python.PileUpConfig.BeamGasCacheCfg |
( |
|
flags, |
|
|
|
name = "BeamGasCache" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 196 of file PileUpConfig.py.
198 kwargs.setdefault(
"IgnoreBeamLumi",
True)
199 kwargs.setdefault(
"CollPerXing", flags.Digitization.PU.NumberOfBeamGas)
200 kwargs.setdefault(
"PileUpEventType", PileUpEventType.HaloGas)
201 kwargs.setdefault(
"CollDistribution",
"Poisson")
202 kwargs.setdefault(
"ReadDownscaleFactor", 1)
206 RndmStreamName =
"PileUpCollXingStream"
208 kwargs.setdefault(
"RndmGenSvc", acc.getService(
"AtDSFMTGenSvc"))
209 kwargs.setdefault(
"RndmStreamName", RndmStreamName)
212 if flags.Digitization.PU.SignalPatternForSteppingCache:
214 tool = CompFactory.BkgStreamsStepCache(name, **kwargs)
216 tool = CompFactory.BkgStreamsCache(name, **kwargs)
218 acc.setPrivateTools(tool)
◆ BeamGasEventSelectorCfg()
def python.PileUpConfig.BeamGasEventSelectorCfg |
( |
|
flags, |
|
|
|
name = "BeamGasEventSelector" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 75 of file PileUpConfig.py.
76 kwargs.setdefault(
"InputCollections", flags.Digitization.PU.BeamGasInputCols)
◆ BeamHaloCacheCfg()
def python.PileUpConfig.BeamHaloCacheCfg |
( |
|
flags, |
|
|
|
name = "BeamHaloCache" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 222 of file PileUpConfig.py.
224 kwargs.setdefault(
"IgnoreBeamLumi",
True)
225 kwargs.setdefault(
"CollPerXing", flags.Digitization.PU.NumberOfBeamHalo)
226 kwargs.setdefault(
"PileUpEventType", PileUpEventType.HaloGas)
227 kwargs.setdefault(
"CollDistribution",
"Poisson")
228 kwargs.setdefault(
"ReadDownscaleFactor", 1)
232 RndmStreamName =
"PileUpCollXingStream"
234 kwargs.setdefault(
"RndmGenSvc", acc.getService(
"AtDSFMTGenSvc"))
235 kwargs.setdefault(
"RndmStreamName", RndmStreamName)
238 if flags.Digitization.PU.SignalPatternForSteppingCache:
240 tool = CompFactory.BkgStreamsStepCache(name, **kwargs)
242 tool = CompFactory.BkgStreamsCache(name, **kwargs)
244 acc.setPrivateTools(tool)
◆ BeamHaloEventSelectorCfg()
def python.PileUpConfig.BeamHaloEventSelectorCfg |
( |
|
flags, |
|
|
|
name = "BeamHaloEventSelector" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 80 of file PileUpConfig.py.
81 kwargs.setdefault(
"InputCollections", flags.Digitization.PU.BeamHaloInputCols)
◆ CavernCacheCfg()
def python.PileUpConfig.CavernCacheCfg |
( |
|
flags, |
|
|
|
name = "CavernCache" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 164 of file PileUpConfig.py.
166 kwargs.setdefault(
"CollPerXing", flags.Digitization.PU.NumberOfCavern)
167 kwargs.setdefault(
"CollDistribution",
"Fixed")
168 kwargs.setdefault(
"PileUpEventType", PileUpEventType.Cavern)
169 if flags.Digitization.DoXingByXingPileUp
or flags.Digitization.PU.SignalPatternForSteppingCache:
170 kwargs.setdefault(
"ReadDownscaleFactor", 1)
172 OccupationFraction = (
float(flags.Digitization.PU.BunchSpacing)/
173 float(flags.Beam.BunchSpacing))
174 if flags.Digitization.PU.BeamIntensityPattern:
175 kwargs.setdefault(
"IgnoreBeamInt", flags.Digitization.PU.CavernIgnoresBeamInt)
176 if flags.Digitization.PU.CavernIgnoresBeamInt:
177 OccupationFraction = 1.0
178 kwargs.setdefault(
"OccupationFraction", OccupationFraction)
181 RndmStreamName =
"PileUpCollXingStream"
183 kwargs.setdefault(
"RndmGenSvc", acc.getService(
"AtDSFMTGenSvc"))
184 kwargs.setdefault(
"RndmStreamName", RndmStreamName)
187 if flags.Digitization.PU.SignalPatternForSteppingCache:
189 tool = CompFactory.BkgStreamsStepCache(name, **kwargs)
191 tool = CompFactory.BkgStreamsCache(name, **kwargs)
192 acc.setPrivateTools(tool)
◆ CavernEventSelectorCfg()
def python.PileUpConfig.CavernEventSelectorCfg |
( |
|
flags, |
|
|
|
name = "cavernEventSelector" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 70 of file PileUpConfig.py.
71 kwargs.setdefault(
"InputCollections", flags.Digitization.PU.CavernInputCols)
◆ FixedArrayBMCfg()
def python.PileUpConfig.FixedArrayBMCfg |
( |
|
flags, |
|
|
|
name = "FixedArrayBM" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 35 of file PileUpConfig.py.
37 kwargs.setdefault(
"IntensityPattern", flags.Digitization.PU.BeamIntensityPattern)
38 kwargs.setdefault(
"T0Offset", flags.Digitization.PU.FixedT0BunchCrossing)
39 acc.addService(CompFactory.FixedArrayBM(name, **kwargs), primary=
True)
◆ GenericBackgroundEventSelectorCfg()
def python.PileUpConfig.GenericBackgroundEventSelectorCfg |
( |
|
flags, |
|
|
|
name = "GenericBackgroundEventSelector" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 51 of file PileUpConfig.py.
53 kwargs.setdefault(
"KeepInputFilesOpen",
True)
54 kwargs.setdefault(
"ProcessMetadata",
False)
55 acc.addService(CompFactory.EventSelectorAthenaPool(name, **kwargs), primary=
True)
◆ HighPtMinBiasCacheCfg()
def python.PileUpConfig.HighPtMinBiasCacheCfg |
( |
|
flags, |
|
|
|
name = "HighPtMinBiasCache" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 138 of file PileUpConfig.py.
140 kwargs.setdefault(
"CollPerXing", flags.Digitization.PU.NumberOfHighPtMinBias)
142 kwargs.setdefault(
"PileUpEventType", PileUpEventType.HighPtMinimumBias)
143 kwargs.setdefault(
"ReadDownscaleFactor", 1)
145 kwargs.setdefault(
"OccupationFraction", (
float(flags.Digitization.PU.BunchSpacing)/
146 float(flags.Beam.BunchSpacing)))
148 RndmStreamName =
"PileUpCollXingStream"
150 kwargs.setdefault(
"RndmGenSvc", acc.getService(
"AtDSFMTGenSvc"))
151 kwargs.setdefault(
"RndmStreamName", RndmStreamName)
154 if flags.Digitization.PU.SignalPatternForSteppingCache:
156 tool = CompFactory.BkgStreamsStepCache(name, **kwargs)
158 tool = CompFactory.BkgStreamsCache(name, **kwargs)
160 acc.setPrivateTools(tool)
◆ HighPtMinBiasEventSelectorCfg()
def python.PileUpConfig.HighPtMinBiasEventSelectorCfg |
( |
|
flags, |
|
|
|
name = "HighPtMinBiasEventSelector" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 64 of file PileUpConfig.py.
65 kwargs.setdefault(
"InputCollections", flags.Digitization.PU.HighPtMinBiasInputCols)
66 kwargs.setdefault(
'SkipEvents', flags.Digitization.PU.HighPtMinBiasInputColOffset)
◆ LowPtMinBiasCacheCfg()
def python.PileUpConfig.LowPtMinBiasCacheCfg |
( |
|
flags, |
|
|
|
name = "LowPtMinBiasCache" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 111 of file PileUpConfig.py.
113 kwargs.setdefault(
"CollPerXing", flags.Digitization.PU.NumberOfLowPtMinBias)
115 kwargs.setdefault(
"PileUpEventType", PileUpEventType.MinimumBias)
116 if flags.Digitization.DoXingByXingPileUp
or flags.Digitization.PU.SignalPatternForSteppingCache:
117 kwargs.setdefault(
"ReadDownscaleFactor", 1)
119 kwargs.setdefault(
"OccupationFraction", (
float(flags.Digitization.PU.BunchSpacing)/
120 float(flags.Beam.BunchSpacing)))
122 RndmStreamName =
"PileUpCollXingStream"
124 kwargs.setdefault(
"RndmGenSvc", acc.getService(
"AtDSFMTGenSvc"))
125 kwargs.setdefault(
"RndmStreamName", RndmStreamName)
128 if flags.Digitization.PU.SignalPatternForSteppingCache:
130 tool = CompFactory.BkgStreamsStepCache(name, **kwargs)
132 tool = CompFactory.BkgStreamsCache(name, **kwargs)
134 acc.setPrivateTools(tool)
◆ LowPtMinBiasEventSelectorCfg()
def python.PileUpConfig.LowPtMinBiasEventSelectorCfg |
( |
|
flags, |
|
|
|
name = "LowPtMinBiasEventSelector" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 59 of file PileUpConfig.py.
60 kwargs.setdefault(
"InputCollections", flags.Digitization.PU.LowPtMinBiasInputCols)
◆ MinBiasCacheCfg()
def python.PileUpConfig.MinBiasCacheCfg |
( |
|
flags, |
|
|
|
name = "MinBiasCache" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 85 of file PileUpConfig.py.
87 kwargs.setdefault(
"CollPerXing", flags.Digitization.PU.NumberOfLowPtMinBias + flags.Digitization.PU.NumberOfHighPtMinBias)
88 kwargs.setdefault(
"FractionOfCache1Collisions", (flags.Digitization.PU.NumberOfLowPtMinBias/
89 (flags.Digitization.PU.NumberOfLowPtMinBias + flags.Digitization.PU.NumberOfHighPtMinBias)))
91 kwargs.setdefault(
"PileUpEventType", PileUpEventType.MinimumBias)
92 if flags.Digitization.DoXingByXingPileUp
or flags.Digitization.PU.SignalPatternForSteppingCache:
93 kwargs.setdefault(
"Cache1ReadDownscaleFactor", 1)
95 kwargs.setdefault(
"Cache2ReadDownscaleFactor", 1)
98 kwargs.setdefault(
"OccupationFraction", (
float(flags.Digitization.PU.BunchSpacing)/
99 float(flags.Beam.BunchSpacing)))
101 RndmStreamName =
"PileUpCollXingStream"
103 kwargs.setdefault(
"RndmGenSvc", acc.getService(
"AtDSFMTGenSvc"))
104 kwargs.setdefault(
"RndmStreamName", RndmStreamName)
107 acc.setPrivateTools(CompFactory.SplitBkgStreamsCache(name, **kwargs))
◆ NoPileUpMuWriterCfg()
def python.PileUpConfig.NoPileUpMuWriterCfg |
( |
|
flags, |
|
|
|
name = "NoPileUpMuWriter" , |
|
|
** |
kwargs |
|
) |
| |
NoPileUpMuWriter configuration.
Definition at line 319 of file PileUpConfig.py.
320 """NoPileUpMuWriter configuration."""
322 acc.addEventAlgo(CompFactory.NoPileUpMuWriter(name, **kwargs))
◆ PileUpConfigdSFMT()
def python.PileUpConfig.PileUpConfigdSFMT |
( |
|
name | ) |
|
Local wrapper for dSFMT RNG service
Definition at line 17 of file PileUpConfig.py.
18 """Local wrapper for dSFMT RNG service"""
19 seedOffset =
" OFFSET 340 123 345"
20 if name==
"PileUpCollXingStream":
21 seedOffset =
" OFFSET 340 123 345"
23 seedOffset =
" OFFSET 340 678 91011"
24 return dSFMT(name + seedOffset)
◆ PileUpEventLoopMgrCfg()
def python.PileUpConfig.PileUpEventLoopMgrCfg |
( |
|
flags, |
|
|
|
name = "PileUpEventLoopMgr" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 248 of file PileUpConfig.py.
252 kwargs.setdefault(
"XingByXing", flags.Digitization.DoXingByXingPileUp)
254 if flags.Digitization.PU.BeamIntensityPattern:
255 if flags.Digitization.PU.SignalPatternForSteppingCache:
257 kwargs.setdefault(
"BeamInt", acc.getPrimaryAndMerge(
StepArrayBMCfg(flags)).name)
258 elif flags.Digitization.PU.FixedT0BunchCrossing:
260 kwargs.setdefault(
"BeamInt", acc.getPrimaryAndMerge(
FixedArrayBMCfg(flags)).name)
263 kwargs.setdefault(
"BeamInt", acc.getPrimaryAndMerge(
ArrayBMCfg(flags)).name)
266 assert not flags.Input.SecondaryFiles, (
"Found ConfigFlags.Input.SecondaryFiles = %r; "
267 "double event selection is not supported "
268 "by PileUpEventLoopMgr" % (
not flags.Input.SecondaryFiles))
270 kwargs.setdefault(
"OrigSelector", acc.getService(
"EventSelector"))
271 BackgroundCaches = []
273 if flags.Digitization.PU.LowPtMinBiasInputCols:
275 if flags.Digitization.PU.HighPtMinBiasInputCols:
277 if flags.Digitization.PU.CavernInputCols:
279 if flags.Digitization.PU.BeamGasInputCols:
281 if flags.Digitization.PU.BeamHaloInputCols:
283 kwargs.setdefault(
"bkgCaches", BackgroundCaches)
285 kwargs.setdefault(
"XingFrequency", flags.Digitization.PU.BunchSpacing)
287 kwargs.setdefault(
"firstXing", flags.Digitization.PU.InitialBunchCrossing)
288 kwargs.setdefault(
"lastXing", flags.Digitization.PU.FinalBunchCrossing)
290 if flags.Input.RunAndLumiOverrideList:
292 kwargs.setdefault(
"BeamLuminosity", acc.getPrimaryAndMerge(
LumiProfileSvcCfg(flags)).name)
294 kwargs.setdefault(
"MaxMinBiasCollPerXing", flags.Digitization.PU.NumberOfCollisions)
295 kwargs.setdefault(
"BeamLuminosity", acc.getPrimaryAndMerge(
NoProfileSvcCfg(flags)).name)
297 from AthenaKernel.EventIdOverrideConfig
import EvtIdModifierSvcCfg
299 kwargs.setdefault(
"EventInfoName",
"Input_EventInfo")
304 if flags.Input.MCChannelNumber > 0:
305 kwargs.setdefault(
"MCChannelNumber", flags.Input.MCChannelNumber)
308 if flags.Output.doWriteRDO:
309 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
311 "xAOD::EventInfoContainer#PileUpEventInfo",
312 "xAOD::EventInfoAuxContainer#PileUpEventInfo*",
315 acc.addService(CompFactory.PileUpEventLoopMgr(name, **kwargs))
◆ StepArrayBMCfg()
def python.PileUpConfig.StepArrayBMCfg |
( |
|
flags, |
|
|
|
name = "StepArrayBM" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 27 of file PileUpConfig.py.
29 kwargs.setdefault(
"IntensityPattern", flags.Digitization.PU.BeamIntensityPattern)
30 kwargs.setdefault(
"SignalPattern", flags.Digitization.PU.SignalPatternForSteppingCache)
31 acc.addService(CompFactory.StepArrayBM(name, **kwargs), primary=
True)
def PileUpEventLoopMgrCfg(flags, name="PileUpEventLoopMgr", **kwargs)
def LowPtMinBiasCacheCfg(flags, name="LowPtMinBiasCache", **kwargs)
def dSFMT(seed, name="AtDSFMTGenSvc")
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
def HighPtMinBiasCacheCfg(flags, name="HighPtMinBiasCache", **kwargs)
def CavernCacheCfg(flags, name="CavernCache", **kwargs)
def LowPtMinBiasEventSelectorCfg(flags, name="LowPtMinBiasEventSelector", **kwargs)
def maxNevtsPerXing(flags)
def PileUpConfigdSFMT(name)
def CavernEventSelectorCfg(flags, name="cavernEventSelector", **kwargs)
def BeamHaloCacheCfg(flags, name="BeamHaloCache", **kwargs)
def GenericBackgroundEventSelectorCfg(flags, name="GenericBackgroundEventSelector", **kwargs)
def MinBiasCacheCfg(flags, name="MinBiasCache", **kwargs)
def BeamGasCacheCfg(flags, name="BeamGasCache", **kwargs)
def HighPtMinBiasEventSelectorCfg(flags, name="HighPtMinBiasEventSelector", **kwargs)
def StepArrayBMCfg(flags, name="StepArrayBM", **kwargs)
def BeamSpotFixerAlgCfg(flags, name="BeamSpotFixerAlg", **kwargs)
def BeamGasEventSelectorCfg(flags, name="BeamGasEventSelector", **kwargs)
def ArrayBMCfg(flags, name="ArrayBM", **kwargs)
def FixedArrayBMCfg(flags, name="FixedArrayBM", **kwargs)
def NoProfileSvcCfg(flags, name="NoProfileSvc", **kwargs)
def BeamHaloEventSelectorCfg(flags, name="BeamHaloEventSelector", **kwargs)
def LumiProfileSvcCfg(flags, name="LumiProfileSvc", **kwargs)
def EvtIdModifierSvcCfg(flags, name="EvtIdModifierSvc", **kwargs)
def NoPileUpMuWriterCfg(flags, name="NoPileUpMuWriter", **kwargs)
def AthRNGSvcCfg(flags, name="AthRNGSvc")