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
20def TauResolutionToolCfg(flags, name, **kwargs):
21 acc = ComponentAccumulator()
22 tool = CompFactory.TauAnalysisTools.TauResolutionTool(name, **kwargs)
23 acc.setPrivateTools(tool)
24 return acc
25
26def BuildTruthTausCfg(flags, name, **kwargs):
27 """Configure the BuildTruthTaus tool"""
28 acc = ComponentAccumulator()
29 acc.setPrivateTools(CompFactory.TauAnalysisTools.BuildTruthTaus(name, **kwargs))
30 return acc
31
32
34 """Configre an alg to build truth taus"""
35 acc = ComponentAccumulator()
36 acc.addEventAlgo(
37 CompFactory.TauAnalysisTools.BuildTruthTausAlg(
38 "BuildTruthTausAlg",
39 BuildTruthTaus=CompFactory.TauAnalysisTools.BuildTruthTaus(
40 "BuildTruthTaus",
41 WriteInvisibleFourMomentum=True,
42 WriteVisibleNeutralFourMomentum=True,
43 ),
44 ExtraOutputs={
45 ( 'xAOD::TruthParticleContainer' , 'StoreGateSvc+TruthTaus' )
46 },
47 )
48 )
49 return acc
TauSelectionToolCfg(flags, name, **kwargs)
TauTruthMatchingToolCfg(flags, name, **kwargs)
TauResolutionToolCfg(flags, name, **kwargs)
BuildTruthTausCfg(flags, name, **kwargs)