ATLAS Offline Software
MuonTrackPerformanceConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.ComponentFactory import CompFactory
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 
5 def TrajectoryBuilderCfg(flags, name = "MuonDecayTruthTrajectoryBuilder", **kwargs):
6  result = ComponentAccumulator()
7  the_tool = CompFactory.Muon.MuonDecayTruthTrajectoryBuilder(name, **kwargs)
8  result.setPrivateTools(the_tool)
9  return result
10 def MuonTrackTruthToolCfg(flags, name = "MuonTrackTruthTool", **kwargs):
11  result = ComponentAccumulator()
12  from MuonConfig.MuonRecToolsConfig import MuonEDMPrinterToolCfg
13  kwargs.setdefault("Printer", result.getPrimaryAndMerge(MuonEDMPrinterToolCfg(flags)))
14  kwargs.setdefault("TruthTrajectoryBuilder", result.popToolsAndMerge(TrajectoryBuilderCfg(flags)))
15  the_tool = CompFactory.Muon.MuonTrackTruthTool(name, **kwargs)
16  result.setPrivateTools(the_tool)
17  return result
18 
19 def MuonTrackPerformanceAlgCfg(flags, name = "MuonTrackPerformanceAlg", **kwargs):
20  result = ComponentAccumulator()
21  from MuonConfig.MuonRecToolsConfig import MuonEDMPrinterToolCfg, MuonTrackSummaryHelperToolCfg
22  kwargs.setdefault("Printer", result.getPrimaryAndMerge(MuonEDMPrinterToolCfg(flags)))
23  kwargs.setdefault("TrackTruthTool", result.popToolsAndMerge(MuonTrackTruthToolCfg(flags)))
24  kwargs.setdefault("SummaryHelperTool", result.popToolsAndMerge(MuonTrackSummaryHelperToolCfg(flags)))
25  kwargs.setdefault("DoTruth", flags.Input.isMC)
26  the_alg = CompFactory. MuonTrackPerformanceAlg(name, **kwargs)
27  result.addEventAlgo(the_alg, primary = True)
28  return result
29 
30 def MuonPerformanceAlgCfg(flags, name = "MuonPerformanceAlg", **kwargs):
31  result = ComponentAccumulator()
32  the_alg = CompFactory.MuonPerformanceAlg(name, **kwargs)
33  result.addEventAlgo(the_alg, primary = True)
34  return result
35 
36 def MuonSegmentPerformanceAlgCfg(flags, name = "MuonSegmentPerformanceAlg", **kwargs):
37  result = ComponentAccumulator()
38  the_alg = CompFactory.MuonSegmentPerformanceAlg(name, **kwargs)
39  result.addEventAlgo(the_alg, primary = True)
40  return result
41 
42 def MuonTrackStatisticsToolCfg(flags, name = "MuonTrackStatisticsTool", **kwargs):
43  result = ComponentAccumulator()
44  result.setPrivateTools(CompFactory.MuonTrackStatisticsTool(name, **kwargs))
45  return result
46 def MuonTrackStatisticsAlgCfg(flags, name = "MuonTrackStatisticsAlg", **kwargs):
47  result = ComponentAccumulator()
48  kwargs.setdefault("StatTool", result.popToolsAndMerge(MuonTrackStatisticsToolCfg(flags)))
49  return result
python.MuonRecToolsConfig.MuonTrackSummaryHelperToolCfg
def MuonTrackSummaryHelperToolCfg(flags, name="MuonTrackSummaryHelperTool", **kwargs)
Definition: MuonRecToolsConfig.py:123
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonTrackPerformanceConfig.MuonTrackStatisticsToolCfg
def MuonTrackStatisticsToolCfg(flags, name="MuonTrackStatisticsTool", **kwargs)
Definition: MuonTrackPerformanceConfig.py:42
python.MuonRecToolsConfig.MuonEDMPrinterToolCfg
def MuonEDMPrinterToolCfg(flags, name="MuonEDMPrinterTool", **kwargs)
Definition: MuonRecToolsConfig.py:10
MuonTrackPerformanceConfig.MuonTrackStatisticsAlgCfg
def MuonTrackStatisticsAlgCfg(flags, name="MuonTrackStatisticsAlg", **kwargs)
Definition: MuonTrackPerformanceConfig.py:46
MuonTrackPerformanceConfig.TrajectoryBuilderCfg
def TrajectoryBuilderCfg(flags, name="MuonDecayTruthTrajectoryBuilder", **kwargs)
Definition: MuonTrackPerformanceConfig.py:5
MuonTrackPerformanceConfig.MuonTrackTruthToolCfg
def MuonTrackTruthToolCfg(flags, name="MuonTrackTruthTool", **kwargs)
Definition: MuonTrackPerformanceConfig.py:10
MuonTrackPerformanceConfig.MuonSegmentPerformanceAlgCfg
def MuonSegmentPerformanceAlgCfg(flags, name="MuonSegmentPerformanceAlg", **kwargs)
Definition: MuonTrackPerformanceConfig.py:36
MuonTrackPerformanceConfig.MuonPerformanceAlgCfg
def MuonPerformanceAlgCfg(flags, name="MuonPerformanceAlg", **kwargs)
Definition: MuonTrackPerformanceConfig.py:30
MuonTrackPerformanceAlg
Definition: MuonTrackPerformanceAlg.h:50
MuonTrackPerformanceConfig.MuonTrackPerformanceAlgCfg
def MuonTrackPerformanceAlgCfg(flags, name="MuonTrackPerformanceAlg", **kwargs)
Definition: MuonTrackPerformanceConfig.py:19