ATLAS Offline Software
Loading...
Searching...
No Matches
HeavyIonChainConfiguration.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaCommon.Logging import logging
4logging.getLogger().info('Importing %s', __name__)
5log = logging.getLogger(__name__)
6from ..Config.ChainConfigurationBase import ChainConfigurationBase
7from ..HeavyIon.HeavyIonMenuSequences import HIFwdGapMenuSequenceGenCfg
8from ..HeavyIon.HeavyIonMenuSequences import HIUCCMenuSequenceGenCfg
9
10
11class HeavyIonChainConfig(ChainConfigurationBase):
12
13 def __init__(self, chainDict):
14 ChainConfigurationBase.__init__(self, chainDict)
15
16 # ----------------------
17 # Assemble the chain depending on information from chainName
18 # ----------------------
19 def assembleChainImpl(self, flags):
20 log.debug('Assembling chain for %s', self.chainName)
21 steps = []
22 if 'Fgap' in self.chainName:
23 steps.append(self.getStep(flags, 'Fgap', [HIFwdGapMenuSequenceGenCfg]))
24 if 'ucc' in self.chainName:
25 steps.append(self.getStep(flags, 'ucc', [HIUCCMenuSequenceGenCfg]))
26 return self.buildChain(steps)