9 from typing
import List
11 from AthenaCommon.Logging
import logging
12 logging.getLogger().
info(f
'Importing {__name__}')
13 log = logging.getLogger(__name__)
15 from TriggerMenuMT.HLT.Config.ChainConfigurationBase
import ChainConfigurationBase
17 from .TauMenuSequences
import (
18 tauCaloMVAMenuSequenceGenCfg,
19 tauFTFTauCoreSequenceGenCfg, tauFTFTauLRTSequenceGenCfg,
20 tauFTFTauIsoSequenceGenCfg,
21 tauPrecTrackIsoSequenceGenCfg, tauPrecTrackLRTSequenceGenCfg,
22 tauPrecisionSequenceGenCfg, tauPrecisionLRTSequenceGenCfg)
24 from .TauConfigurationTools
import getChainSequenceConfigName, getChainPrecisionSeqName
33 ChainConfigurationBase.__init__(self, chainDict)
36 log.debug(f
'Assembling chain for {self.chainName}')
43 'ptonly' : [
'getCaloMVA',
'getFTFCoreEmpty',
'getFTFIsoEmpty',
'getPrecTrackEmpty',
'getPrecisionEmpty'],
46 'tracktwoMVA' : [
'getCaloMVA',
'getFTFCore' ,
'getFTFIso' ,
'getPrecTrackIso' ,
'getPrecision' ],
47 'tracktwoLLP' : [
'getCaloMVA',
'getFTFCore' ,
'getFTFIso' ,
'getPrecTrackIso' ,
'getPrecision' ],
50 'trackLRT' : [
'getCaloMVA',
'getFTFLRT' ,
'getFTFIsoEmpty',
'getPrecTrackLRT' ,
'getPrecisionLRT' ],
56 chain_step = getattr(self, step)(flags)
58 is_probe_leg = self.chainPart[
'tnpInfo']==
'probe'
59 chain_step = getattr(self, step)(flags, is_probe_leg=is_probe_leg)
61 chain_steps.append(chain_step)
63 return self.buildChain(chain_steps)
70 stepName =
'CaloMVA_tau'
71 return self.getStep(flags, stepName, [tauCaloMVAMenuSequenceGenCfg], is_probe_leg=is_probe_leg)
78 stepName =
'FTFCore_tau'
79 return self.getStep(flags, stepName, [tauFTFTauCoreSequenceGenCfg], is_probe_leg=is_probe_leg)
82 stepName =
'FTFLRT_tau'
83 return self.getStep(flags, stepName, [tauFTFTauLRTSequenceGenCfg], is_probe_leg=is_probe_leg)
86 stepName =
'FTFCoreEmpty_tau'
87 return self.getEmptyStep(2, stepName)
94 stepName =
'FTFIso_tau'
95 return self.getStep(flags, stepName, [tauFTFTauIsoSequenceGenCfg], is_probe_leg=is_probe_leg)
98 stepName =
'FTFIsoEmpty_tau'
99 return self.getEmptyStep(3, stepName)
106 stepName =
'PrecTrkIso_tau'
107 return self.getStep(flags, stepName, [tauPrecTrackIsoSequenceGenCfg], is_probe_leg=is_probe_leg)
110 stepName =
'PrecTrkLRT_tau'
111 return self.getStep(flags, stepName, [tauPrecTrackLRTSequenceGenCfg], is_probe_leg=is_probe_leg)
114 stepName =
'PrecTrkEmpty_tau'
115 return self.getEmptyStep(4, stepName)
123 stepName = f
'Precision_{sequenceName}_tau'
127 [tauPrecisionSequenceGenCfg],
128 seq_name=sequenceName,
129 is_probe_leg=is_probe_leg,
134 stepName = f
'Precision_{sequenceName}_tau'
138 [tauPrecisionLRTSequenceGenCfg],
139 seq_name=sequenceName,
140 is_probe_leg=is_probe_leg,
144 stepName =
'PrecisionEmpty_tau'
145 return self.getEmptyStep(5, stepName)