ATLAS Offline Software
Functions
TriggerMatchingToolConfig Namespace Reference

Functions

def IParticleRetrievalToolCfg (ConfigFlags)
 
def TriggerMatchingToolCfg (ConfigFlags, name, UseTypedScoringTool=False, **kwargs)
 

Function Documentation

◆ IParticleRetrievalToolCfg()

def TriggerMatchingToolConfig.IParticleRetrievalToolCfg (   ConfigFlags)
Configure the IParticle retrieval tool, depends on R1/R2 or R3 trigger

Definition at line 6 of file PhysicsAnalysis/DerivationFramework/DerivationFrameworkTrigger/python/TriggerMatchingToolConfig.py.

6 def IParticleRetrievalToolCfg(ConfigFlags):
7  """Configure the IParticle retrieval tool, depends on R1/R2 or R3 trigger"""
9  from TrigDecisionTool.TrigDecisionToolConfig import TrigDecisionToolCfg
10  tdt = acc.getPrimaryAndMerge(TrigDecisionToolCfg(ConfigFlags))
11  if ConfigFlags.Trigger.EDMVersion == 3:
12  IParticleRetrievalTool = CompFactory.Trig.R3IParticleRetrievalTool
13  else:
14  IParticleRetrievalTool = CompFactory.Trig.IParticleRetrievalTool
15  acc.addPublicTool(IParticleRetrievalTool("OnlineParticleTool", TrigDecisionTool = tdt),
16  primary = True)
17  return(acc)
18 

◆ TriggerMatchingToolCfg()

def TriggerMatchingToolConfig.TriggerMatchingToolCfg (   ConfigFlags,
  name,
  UseTypedScoringTool = False,
**  kwargs 
)
Config fragment for the trigger matching tool used in DAOD production

Definition at line 19 of file PhysicsAnalysis/DerivationFramework/DerivationFrameworkTrigger/python/TriggerMatchingToolConfig.py.

19 def TriggerMatchingToolCfg(ConfigFlags, name, UseTypedScoringTool=False, **kwargs):
20  """Config fragment for the trigger matching tool used in DAOD production"""
21  acc = ComponentAccumulator()
22 
23  # Option to use typed scoring tool
24  if UseTypedScoringTool:
25  from xAODBase.xAODType import xAODType
26  drST = CompFactory.Trig.DRScoringTool("DRScoringTool")
27  emST = CompFactory.Trig.EgammaDRScoringTool("EgammaDRScoringTool",
28  UseClusterDecorator = False)
29 
30  tst = CompFactory.Trig.TypedScoringTool("TypedScoringTool",
31  DefaultScoringTool = drST,
32  TypedScoringTools = [emST],
33  ToolTypes = [xAODType.Electron])
34  kwargs["ScoringTool"] = tst
35 
36  OnlineParticleTool = acc.getPrimaryAndMerge(IParticleRetrievalToolCfg(ConfigFlags))
37  kwargs['OnlineParticleTool'] = OnlineParticleTool
38  TriggerMatchingTool = CompFactory.DerivationFramework.TriggerMatchingTool
39  acc.addPublicTool(TriggerMatchingTool(name, **kwargs),
40  primary = True)
41  return(acc)
42 
43 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TriggerMatchingToolConfig.TriggerMatchingToolCfg
def TriggerMatchingToolCfg(ConfigFlags, name, UseTypedScoringTool=False, **kwargs)
Definition: PhysicsAnalysis/DerivationFramework/DerivationFrameworkTrigger/python/TriggerMatchingToolConfig.py:19
TriggerMatchingToolConfig.IParticleRetrievalToolCfg
def IParticleRetrievalToolCfg(ConfigFlags)
Definition: PhysicsAnalysis/DerivationFramework/DerivationFrameworkTrigger/python/TriggerMatchingToolConfig.py:6
python.TriggerInterface.TrigDecisionToolCfg
def TrigDecisionToolCfg(flags)
Definition: TriggerInterface.py:14