17 if flags.Beam.Type
is BeamType.Cosmics
or flags.Input.isMC:
20 from LumiBlockComps.LuminosityCondAlgConfig
import LuminosityCondAlgCfg
21 result.merge (LuminosityCondAlgCfg (flags))
22 condkey = result.getCondAlgo (
'LuminosityCondAlg').LuminosityOutputKey
24 from AthenaConfiguration.Enums
import ProductionStep
26 if flags.Common.ProductionStep
in [ProductionStep.PileUpPretracking, ProductionStep.MinbiasPreprocessing]:
27 actualLumiKey=f
"{flags.Overlay.BkgPrefix}EventInfo.actualInteractionsPerCrossing"
28 averageLumiKey=f
"{flags.Overlay.BkgPrefix}EventInfo.averageInteractionsPerCrossing"
30 kwargs.update({
"actualInteractionsPerCrossingKey" : actualLumiKey,
31 "averageInteractionsPerCrossingKey": averageLumiKey})
33 LumiBlockMuWriter = CompFactory.LumiBlockMuWriter
34 alg = LumiBlockMuWriter (name,
35 LumiDataKey = condkey,
38 if flags.Trigger.doHLT:
39 result.addEventAlgo(alg)
42 result.addCondAlgo(alg)