5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from TrigEDMConfig.TriggerEDM
import recordable
15 trigTauJetOutputContainer =
recordable(
"HLT_TrigTauRecMerged_MVA")
16 trigTauTrackOutputContainer =
recordable(
"HLT_tautrack_MVA")
19 trigTauJetOutputContainer =
recordable(
"HLT_TrigTauRecMerged_LLP")
20 trigTauTrackOutputContainer =
recordable(
"HLT_tautrack_LLP")
24 trigTauJetOutputContainer =
recordable(
"HLT_TrigTauRecMerged_LRT")
25 trigTauTrackOutputContainer =
recordable(
"HLT_tautrack_LRT")
28 raise Exception(
"algTauPrecision : called with incorrect non existent name: "+name )
39 from TrigTauRec.TrigTauToolsConfig
import (trigTauVertexFinderCfg, trigTauTrackFinderCfg, tauVertexVariablesCfg, trigTauJetRNNEvaluatorCfg, trigTauWPDecoratorJetRNNCfg)
45 tools.append(CompFactory.TauAxisSetter(name=
'TrigTau_TauAxis',VertexCorrection =
False))
48 tftools.append(acc.popToolsAndMerge(
trigTauTrackFinderCfg(flags,name=
'TrigTauTightDZ_TauTrackFinder',TrackParticlesContainer=tracks)))
51 tools.append(CompFactory.TauClusterFinder(name=
'TrigTau_TauClusterFinder',UseOriginalCluster =
False))
52 tools.append(CompFactory.TauVertexedClusterDecorator(name=
'TrigTau_TauVertexedClusterDecorator',SeedJet =
''))
55 tools.append(CompFactory.TauCellVariables(name=
'TrigTau_CellVariables',VertexCorrection =
False))
58 tools.append(CompFactory.MvaTESVariableDecorator(name=
'TrigTau_MvaTESVariableDecorator',
59 Key_vertexInputContainer=
'',
61 VertexCorrection =
False))
62 acc.addPublicTool(tools[-1])
63 tools.append(CompFactory.MvaTESEvaluator(name=
'TrigTau_MvaTESEvaluator',
64 WeightFileName = flags.Trigger.Offline.Tau.MvaTESConfig))
65 acc.addPublicTool(tools[-1])
70 idtools.append(CompFactory.TauCommonCalcVars(name=
'TrigTau_TauCommonCalcVars'))
73 idtools.append(CompFactory.TauSubstructureVariables(name=
'TrigTau_TauSubstructure',VertexCorrection =
False))
77 acc.addPublicTool(idtools[-1])
81 acc.addPublicTool(idtools[-1])
83 for tool
in (tools + vftools + tftools + vvtools + idtools):
85 tool.calibFolder = flags.Trigger.Offline.Tau.tauRecToolsCVMFSPath
87 from TrigTauRec.TrigTauRecMonitoring
import tauMonitoringPrecisionMVA
89 alg = CompFactory.TrigTauRecMerged(
"TrigTauRecMerged_TauPrecision_Precision"+postfix,
96 Key_trigTauTrackInputContainer =
"HLT_tautrack_dummy",
97 Key_trigTauJetInputContainer =
"HLT_TrigTauRecMerged_CaloMVAOnly",
98 Key_trigJetSeedOutputKey =
recordable(
"HLT_jet_seed"),
99 RoIInputKey = inputRoIs,
101 Key_vertexInputContainer = flags.Tracking.ActiveConfig.vertex,
102 Key_trackPartInputContainer = tracks,
103 Key_trigTauJetOutputContainer = trigTauJetOutputContainer,
104 Key_trigTauTrackOutputContainer = trigTauTrackOutputContainer
107 acc.addEventAlgo(alg)
113 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
114 from AthenaConfiguration.ComponentFactory
import CompFactory
119 tools.append(CompFactory.JetSeedBuilder())
122 tools.append(CompFactory.TauAxisSetter(ClusterCone = 0.2,
123 VertexCorrection =
False))
125 tools.append(CompFactory.TauClusterFinder(UseOriginalCluster =
False))
127 tools.append(CompFactory.TauVertexedClusterDecorator(SeedJet =
''))
131 tools.append(CompFactory.TauCellVariables(StripEthreshold = 0.2*GeV,
133 VertexCorrection =
False))
135 tools.append(CompFactory.MvaTESVariableDecorator(Key_vertexInputContainer=
'',
137 VertexCorrection =
False))
138 acc.addPublicTool(tools[-1])
139 tools.append(CompFactory.MvaTESEvaluator(WeightFileName = flags.Trigger.Offline.Tau.MvaTESConfig))
140 acc.addPublicTool(tools[-1])
143 tool.inTrigger =
True
144 tool.calibFolder = flags.Trigger.Offline.Tau.tauRecToolsCVMFSPath
146 from TrigTauRec.TrigTauRecMonitoring
import tauMonitoringCaloOnlyMVA
148 alg = CompFactory.TrigTauRecMerged(
"TrigTauRecMerged_TauCaloOnlyMVA",
151 Key_trackPartInputContainer =
'',
152 Key_trigJetSeedOutputKey =
'HLT_jet_seed',
153 Key_trigTauJetInputContainer =
'',
154 Key_trigTauJetOutputContainer =
'HLT_TrigTauRecMerged_CaloMVAOnly',
155 Key_trigTauTrackInputContainer =
'',
156 Key_trigTauTrackOutputContainer =
'HLT_tautrack_dummy',
157 Key_vertexInputContainer =
'',
158 clustersKey =
'HLT_TopoCaloClustersLC',
159 RoIInputKey =
'UpdatedCaloRoI')
160 acc.addEventAlgo(alg)
165 if __name__ ==
"__main__":
166 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
167 from AthenaConfiguration.TestDefaults
import defaultTestFiles
169 flags.Input.Files = defaultTestFiles.RAW_RUN2
173 acc.printConfig(withDetails=
True, summariseProps=
True)