ATLAS Offline Software
Loading...
Searching...
No Matches
BjetChainConfiguration.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__)
6
7from ..Config.ChainConfigurationBase import ChainConfigurationBase
8from .BjetMenuSequences import getBJetSequenceGenCfg
9
10
11#----------------------------------------------------------------
12# Class to configure chain
13#----------------------------------------------------------------
14class BjetChainConfiguration(ChainConfigurationBase):
15
16 def __init__(self, chainDict, jc_name):
17 ChainConfigurationBase.__init__(self, chainDict)
18
19 self.jc_name = jc_name
20
21 # ----------------------
22 # Assemble the chain depending on information from chainName
23 # ----------------------
24 def assembleChainImpl(self, flags):
25 log.debug("Assembling chain for %s", self.chainName)
26
27 stepName = f"{self.jc_name}_bjet"
28 chainSteps = [self.getStep(flags, stepName, [getBJetSequenceGenCfg], jc_name=self.jc_name)]
29
30 myChain = self.buildChain(chainSteps)
31 return myChain
32