ATLAS Offline Software
Loading...
Searching...
No Matches
FlowAfterburnerConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5from GeneratorConfig.Sequences import EvgenSequence, EvgenSequenceFactory
6
7# Get logger
8from AthenaCommon.Logging import logging
9log = logging.getLogger("FlowAfterburnerConfig")
10
11
12def AddFlowByShiftingCfg(flags, name="AddFlowByShifting", **kwargs):
13 """
14 Configuration fragment that sets up the AddFlowByShifting
15 algorithm and returns a CA instance.
16 """
17
18 # Create CA object
19 ca = ComponentAccumulator(EvgenSequenceFactory(EvgenSequence.Generator))
20 ca.addEventAlgo(
21 CompFactory.AddFlowByShifting(name, **kwargs)
22 )
23
24 # Announce generator to service
25 from GeneratorConfig.GeneratorInfoSvcConfig import GeneratorInfoSvcCfg
26 ca.merge(GeneratorInfoSvcCfg(flags, Generators=["AddFlowByShifting"]), sequenceName=EvgenSequence.Generator.value)
27
28 return ca
AddFlowByShiftingCfg(flags, name="AddFlowByShifting", **kwargs)