ATLAS Offline Software
Loading...
Searching...
No Matches
JetResponseToolConfig Namespace Reference

Functions

 getJetResponseTool (jetdef, modspec='')

Detailed Description

 JetResponseToolsConfig: A helper module for configuring jet moment
 tools, in support of JetRecConfig.JetModConfig. 
 Author: TJ Khoo                                                      


IMPORTANT : all the getXYZTool(jetdef, modspec) functions are meant to be used as callback from the main JetRecConfig module 
when we need to convert definitions of tools into the actual tools. At this point the functions are invoked as 
 func(jetdef, modspec)
Hence they have jetdef and modspec arguments even if not needed in every case.

Function Documentation

◆ getJetResponseTool()

JetResponseToolConfig.getJetResponseTool ( jetdef,
modspec = '' )

Definition at line 18 of file JetResponseToolConfig.py.

18def getJetResponseTool(jetdef, modspec=''):
19
20 from JetRecConfig.JetDefinition import buildJetAlgName
21
22 label = modspec
23 prefix, suffix = {
24 'R4TruthLabel': ('',''),
25 'R4TruthDressedWZLabel': ('','DressedWZ'),
26 'R4InTimeTruthLabel': ('InTime','')
27 }[modspec]
28 truthJetAlg = prefix+buildJetAlgName(jetdef.algorithm, jetdef.radius)+'Truth'+suffix+'Jets'
29
30 jetPtAssociation = CompFactory.JetResponseTool(
31 'jetResponse',
32 JetMatchedTruthJetName = f'{label}_MatchedTruthJet',
33 TruthJetContainer = truthJetAlg,
34 )
35
36 return jetPtAssociation