ATLAS Offline Software
MuonsToolsConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def MuonJetDrToolCfg(ConfigFlags, name):
8  muonJetDrTool = CompFactory.DerivationFramework.MuonJetDrTool(name)
9  acc.addPublicTool(muonJetDrTool, primary=True)
10  return acc
11 
12 
13 def MuonTPExtrapolationAlgCfg(ConfigFlags, name = "MuonTPExtrapolationAlg", **kwargs):
15  from TrkConfig.AtlasExtrapolatorConfig import MuonExtrapolatorCfg
16  kwargs.setdefault("Extrapolator", acc.popToolsAndMerge(MuonExtrapolatorCfg(ConfigFlags)))
17  the_alg = CompFactory.DerivationFramework.MuonTPExtrapolationAlg(name = name,**kwargs)
18  acc.addEventAlgo(the_alg, primary = True)
19  return acc
20 
22 def MuonCaloDepositAlgCfg(ConfigFlags, name= "MuonCaloDepositAlg", **kwargs):
23  acc = ComponentAccumulator()
24  from MuonCombinedConfig.MuonCombinedRecToolsConfig import TrackDepositInCaloToolCfg
25  kwargs.setdefault("TrackDepositInCaloTool", acc.popToolsAndMerge(TrackDepositInCaloToolCfg(ConfigFlags)))
26  the_alg = CompFactory.DerivationFramework.IDTrackCaloDepositsDecoratorAlg(name, **kwargs)
27  acc.addEventAlgo(the_alg, primary = True)
28  return acc
29 
30 
31 def AnalysisMuonThinningAlgCfg(ConfigFlags, name="AnalysisMuonThinningAlg", **kwargs):
32  acc = ComponentAccumulator()
33  from MuonSelectorTools.MuonSelectorToolsConfig import MuonSelectionToolCfg
34  kwargs.setdefault("SelectionTool", acc.popToolsAndMerge(MuonSelectionToolCfg(ConfigFlags,
35  name="MuonSelThinningTool")))
36  the_alg = CompFactory.DerivationFramework.AnalysisMuonThinningAlg(name, **kwargs)
37  acc.addEventAlgo(the_alg, primary = True)
38  return acc
39 
40 
41 
42 def DiMuonTaggingAlgCfg(ConfigFlags, name="DiMuonTaggingTool", **kwargs):
43  acc = ComponentAccumulator()
44 
45  kwargs.setdefault("applyTrigger",True)
46  if kwargs["applyTrigger"]:
47  from TriggerMatchingTool.TriggerMatchingToolConfig import TriggerMatchingToolCfg
48  kwargs.setdefault("TrigMatchingTool", acc.popToolsAndMerge(
49  TriggerMatchingToolCfg(ConfigFlags)))
50 
51  from MuonSelectorTools.MuonSelectorToolsConfig import MuonSelectionToolCfg
52  kwargs.setdefault("SelectionTool", acc.popToolsAndMerge(MuonSelectionToolCfg(ConfigFlags)))
53  kwargs.setdefault("isMC", ConfigFlags.Input.isMC)
54  the_alg = CompFactory.DerivationFramework.DiMuonTaggingAlg(name, **kwargs)
55  acc.addEventAlgo(the_alg, primary = True)
56  return acc
57 
python.MuonsToolsConfig.MuonTPExtrapolationAlgCfg
def MuonTPExtrapolationAlgCfg(ConfigFlags, name="MuonTPExtrapolationAlg", **kwargs)
Configuration for the MuonTPExtrapolation tool.
Definition: MuonsToolsConfig.py:13
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.MuonsToolsConfig.MuonJetDrToolCfg
def MuonJetDrToolCfg(ConfigFlags, name)
Definition: MuonsToolsConfig.py:6
python.MuonsToolsConfig.DiMuonTaggingAlgCfg
def DiMuonTaggingAlgCfg(ConfigFlags, name="DiMuonTaggingTool", **kwargs)
Di-muon tagging tool, for T&P studies.
Definition: MuonsToolsConfig.py:42
TriggerMatchingToolConfig.TriggerMatchingToolCfg
def TriggerMatchingToolCfg(ConfigFlags, name, UseTypedScoringTool=False, **kwargs)
Definition: PhysicsAnalysis/DerivationFramework/DerivationFrameworkTrigger/python/TriggerMatchingToolConfig.py:19
python.AtlasExtrapolatorConfig.MuonExtrapolatorCfg
def MuonExtrapolatorCfg(flags, name="MuonExtrapolator", **kwargs)
Definition: AtlasExtrapolatorConfig.py:376
python.MuonSelectorToolsConfig.MuonSelectionToolCfg
def MuonSelectionToolCfg(flags, name="MuonSelectionTool", **kwargs)
Standard configuration of the MuonSelectionTool used in reconstruction & validation jobs The snippet ...
Definition: MuonSelectorToolsConfig.py:16
python.MuonsToolsConfig.MuonCaloDepositAlgCfg
def MuonCaloDepositAlgCfg(ConfigFlags, name="MuonCaloDepositAlg", **kwargs)
Algorithm that decorates the calorimeter deposits in form of 3 vectors to the muon.
Definition: MuonsToolsConfig.py:22
python.MuonCombinedRecToolsConfig.TrackDepositInCaloToolCfg
def TrackDepositInCaloToolCfg(flags, name='TrackDepositInCaloTool', **kwargs)
Definition: MuonCombinedRecToolsConfig.py:899
python.MuonsToolsConfig.AnalysisMuonThinningAlgCfg
def AnalysisMuonThinningAlgCfg(ConfigFlags, name="AnalysisMuonThinningAlg", **kwargs)
Algorithm used to thin bad muons from the analysis stream.
Definition: MuonsToolsConfig.py:31