1 """ComponentAccumulator run dependent service configuration
3 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
10 """Return the largest minbias pileup value, for PileUpEvtLoopMgr caches"""
12 pDicts = flags.Input.RunAndLumiOverrideList
13 return max(element[
"mu"]
for element
in pDicts)
20 pDicts = flags.Input.RunAndLumiOverrideList
22 for element
in pDicts:
26 iovt = (run << 32) + lbk
28 if MaxCollisionsPerXing > 0:
29 scaleFactorList += [mu/MaxCollisionsPerXing]
31 scaleFactorList += [1.0]
32 return runLumiList, scaleFactorList
40 kwargs.setdefault(
"RunLumiList", runLumiList)
41 kwargs.setdefault(
"ScaleFactorList", scaleFactorList)
42 acc.addService(CompFactory.LumiProfileSvc(name, **kwargs), primary=
True)
48 acc.addService(CompFactory.NoProfileSvc(name, **kwargs), primary=
True)