ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
FlowAfterburner
python
FlowAfterburnerConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
GeneratorConfig.Sequences
import
EvgenSequence, EvgenSequenceFactory
6
7
# Get logger
8
from
AthenaCommon.Logging
import
logging
9
log = logging.getLogger(
"FlowAfterburnerConfig"
)
10
11
12
def
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
FlowAfterburnerConfig.AddFlowByShiftingCfg
AddFlowByShiftingCfg(flags, name="AddFlowByShifting", **kwargs)
Definition
FlowAfterburnerConfig.py:12
Generated on
for ATLAS Offline Software by
1.17.0