ATLAS Offline Software
Loading...
Searching...
No Matches
DitauChainConfiguration.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 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 .DitauMenuSequences import ditauSequenceGenCfg
9
10
11#----------------------------------------------------------------
12# Class to configure chain
13#----------------------------------------------------------------
14class DitauChainConfiguration(ChainConfigurationBase):
15
16 def __init__(self, chainDict, jet_name):
17 self.jetName = jet_name
18 ChainConfigurationBase.__init__(self, chainDict)
19
20 # ----------------------
21 # Assemble the chain depending on information from chainName
22 # ----------------------
23 def assembleChainImpl(self, flags):
24 log.debug("Assembling chain for %s", self.chainName)
25 chainStep = self.getStep(
26 flags,
27 'ditau_step',
28 [ditauSequenceGenCfg],
29 seq_name = 'ditau',
30 jet_name = self.jetName
31 )
32
33 myChain = self.buildChain([chainStep])
34 return myChain
35