ATLAS Offline Software
Loading...
Searching...
No Matches
TauAnalysisToolsConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def TauSelectionToolCfg(flags, name, **kwargs):
7 """Configure the tau selection tool"""
8 acc = ComponentAccumulator()
9 TauSelectionTool = CompFactory.TauAnalysisTools.TauSelectionTool
10 acc.setPrivateTools(TauSelectionTool(name, **kwargs))
11 return acc
12
13
14def TauTruthMatchingToolCfg(flags, name, **kwargs):
15 acc = ComponentAccumulator()
16 tool = CompFactory.TauAnalysisTools.TauTruthMatchingTool(name, **kwargs)
17 acc.setPrivateTools(tool)
18 return acc
19
20
21def BuildTruthTausCfg(flags, name, **kwargs):
22 """Configure the BuildTruthTaus tool"""
23 acc = ComponentAccumulator()
24 acc.setPrivateTools(CompFactory.TauAnalysisTools.BuildTruthTaus(name, **kwargs))
25 return acc
26
27
29 """Configre an alg to build truth taus"""
30 acc = ComponentAccumulator()
31 acc.addEventAlgo(
32 CompFactory.TauAnalysisTools.BuildTruthTausAlg(
33 "BuildTruthTausAlg",
34 BuildTruthTaus=CompFactory.TauAnalysisTools.BuildTruthTaus(
35 "BuildTruthTaus",
36 WriteInvisibleFourMomentum=True,
37 WriteVisibleNeutralFourMomentum=True,
38 ),
39 ExtraOutputs={
40 ( 'xAOD::TruthParticleContainer' , 'StoreGateSvc+TruthTaus' )
41 },
42 )
43 )
44 return acc
TauSelectionToolCfg(flags, name, **kwargs)
TauTruthMatchingToolCfg(flags, name, **kwargs)
BuildTruthTausCfg(flags, name, **kwargs)