ATLAS Offline Software
Functions
InDetMatchingConfig Namespace Reference

Functions

def DeltaRMatchingTool_trkTruthCfg (flags, name="DeltaRMatchingTool_trkTruth", **kwargs)
 
def DeltaRMatchingTool_truthTrkCfg (flags, name="DeltaRMatchingTool_truthTrk", **kwargs)
 
def DeltaRMatchingTool_trkCfg (flags, name="DeltaRMatchingTool_trk", **kwargs)
 
def TrackTruthMatchingToolCfg (flags, name="TrackTruthMatchingTool", **kwargs)
 
def TruthTrackMatchingToolCfg (flags, name="TruthTrackMatchingTool", **kwargs)
 
def EFTrackMatchingToolCfg (flags, name="EFTrackMatchingTool", **kwargs)
 
def TrackMatchingToolCfg (flags, **kwargs)
 

Function Documentation

◆ DeltaRMatchingTool_trkCfg()

def InDetMatchingConfig.DeltaRMatchingTool_trkCfg (   flags,
  name = "DeltaRMatchingTool_trk",
**  kwargs 
)
Tool for Track->Track matching via DeltaR (and/or pT resolution)

Definition at line 44 of file InDetMatchingConfig.py.

44 def DeltaRMatchingTool_trkCfg( flags, name="DeltaRMatchingTool_trk", **kwargs ):
45  '''
46  Tool for Track->Track matching via DeltaR (and/or pT resolution)
47  '''
48  acc = ComponentAccumulator()
49 
50  kwargs.setdefault( "dRmax", flags.PhysVal.IDTPM.currentTrkAna.dRmax )
51  kwargs.setdefault( "pTResMax", flags.PhysVal.IDTPM.currentTrkAna.pTResMax )
52 
53  acc.setPrivateTools(
54  CompFactory.IDTPM.DeltaRMatchingTool_trk( name, **kwargs ) )
55  return acc
56 
57 

◆ DeltaRMatchingTool_trkTruthCfg()

def InDetMatchingConfig.DeltaRMatchingTool_trkTruthCfg (   flags,
  name = "DeltaRMatchingTool_trkTruth",
**  kwargs 
)
Tool for Track->Truth matching via DeltaR (and/or pT resolution)

Definition at line 16 of file InDetMatchingConfig.py.

16 def DeltaRMatchingTool_trkTruthCfg( flags, name="DeltaRMatchingTool_trkTruth", **kwargs ):
17  '''
18  Tool for Track->Truth matching via DeltaR (and/or pT resolution)
19  '''
20  acc = ComponentAccumulator()
21 
22  kwargs.setdefault( "dRmax", flags.PhysVal.IDTPM.currentTrkAna.dRmax )
23  kwargs.setdefault( "pTResMax", flags.PhysVal.IDTPM.currentTrkAna.pTResMax )
24 
25  acc.setPrivateTools(
26  CompFactory.IDTPM.DeltaRMatchingTool_trkTruth( name, **kwargs ) )
27  return acc
28 
29 

◆ DeltaRMatchingTool_truthTrkCfg()

def InDetMatchingConfig.DeltaRMatchingTool_truthTrkCfg (   flags,
  name = "DeltaRMatchingTool_truthTrk",
**  kwargs 
)
Tool for Truth->Track matching via DeltaR (and/or pT resolution)

Definition at line 30 of file InDetMatchingConfig.py.

30 def DeltaRMatchingTool_truthTrkCfg( flags, name="DeltaRMatchingTool_truthTrk", **kwargs ):
31  '''
32  Tool for Truth->Track matching via DeltaR (and/or pT resolution)
33  '''
34  acc = ComponentAccumulator()
35 
36  kwargs.setdefault( "dRmax", flags.PhysVal.IDTPM.currentTrkAna.dRmax )
37  kwargs.setdefault( "pTResMax", flags.PhysVal.IDTPM.currentTrkAna.pTResMax )
38 
39  acc.setPrivateTools(
40  CompFactory.IDTPM.DeltaRMatchingTool_truthTrk( name, **kwargs ) )
41  return acc
42 
43 

◆ EFTrackMatchingToolCfg()

def InDetMatchingConfig.EFTrackMatchingToolCfg (   flags,
  name = "EFTrackMatchingTool",
**  kwargs 
)
Tool for Track->Truth matching via 'truthParticleLink' decorations

Definition at line 84 of file InDetMatchingConfig.py.

84 def EFTrackMatchingToolCfg( flags, name="EFTrackMatchingTool", **kwargs ):
85  '''
86  Tool for Track->Truth matching via 'truthParticleLink' decorations
87  '''
88  acc = ComponentAccumulator()
89 
90  kwargs.setdefault( "MatchingTruthProb", flags.PhysVal.IDTPM.currentTrkAna.truthProbCut )
91 
92  acc.setPrivateTools(
93  CompFactory.IDTPM.EFTrackMatchingTool( name, **kwargs ) )
94  return acc
95 
96 

◆ TrackMatchingToolCfg()

def InDetMatchingConfig.TrackMatchingToolCfg (   flags,
**  kwargs 
)
CA-based configuration for the test-reference matching Tool 

Definition at line 97 of file InDetMatchingConfig.py.

97 def TrackMatchingToolCfg( flags, **kwargs ):
98  '''
99  CA-based configuration for the test-reference matching Tool
100  '''
101  log = logging.getLogger( "TrackMatchingToolCfg" )
102 
103 
104  if flags.PhysVal.IDTPM.currentTrkAna.MatchingType == "DeltaRMatch":
105 
106 
107  if "Truth" in flags.PhysVal.IDTPM.currentTrkAna.RefType :
109  flags, name = "DeltaRMatchingTool_trkTruth" +
110  flags.PhysVal.IDTPM.currentTrkAna.anaTag, **kwargs )
111 
112 
113  if "Truth" in flags.PhysVal.IDTPM.currentTrkAna.TestType :
115  flags, name = "DeltaRMatchingTool_truthTrk" +
116  flags.PhysVal.IDTPM.currentTrkAna.anaTag, **kwargs )
117 
118 
120  flags, name="DeltaRMatchingTool_trk" +
121  flags.PhysVal.IDTPM.currentTrkAna.anaTag, **kwargs )
122 
123 
124  if flags.PhysVal.IDTPM.currentTrkAna.MatchingType == "TruthMatch":
125 
126 
127  if "Truth" in flags.PhysVal.IDTPM.currentTrkAna.RefType :
129  flags, name="TrackTruthMatchingTool" +
130  flags.PhysVal.IDTPM.currentTrkAna.anaTag, **kwargs )
131 
132 
133  if "Truth" in flags.PhysVal.IDTPM.currentTrkAna.TestType :
135  flags, name="TruthTrackMatchingTool" +
136  flags.PhysVal.IDTPM.currentTrkAna.anaTag, **kwargs )
137 
138  log.warning( "TruthMatch via decorations not configurable if Test or Ref isn't Truth" )
139  log.warning( "Matching will not be executed for TrkAnalysis %s",
140  flags.PhysVal.IDTPM.currentTrkAna.anaTag )
141  return None
142 
143 
144  if flags.PhysVal.IDTPM.currentTrkAna.MatchingType == "EFTruthMatch":
145  if "EFTrigger" in flags.PhysVal.IDTPM.currentTrkAna.TestType and "Offline" in flags.PhysVal.IDTPM.currentTrkAna.RefType:
146  return EFTrackMatchingToolCfg(
147  flags, name="EFTrackMatchingTool" +
148  flags.PhysVal.IDTPM.currentTrkAna.anaTag, **kwargs )
149  log.warning( "EFTruthMatch via decorations configurable only with EFTrigger as Test Offline as Ref" )
150  log.warning( "Matching will not be executed for TrkAnalysis %s",
151  flags.PhysVal.IDTPM.currentTrkAna.anaTag )
152  return None
153 
154  log.warning( "Requested not supported matching type: %s",
155  flags.PhysVal.IDTPM.currentTrkAna.MatchingType )
156  log.warning( "Matching will not be executed for TrkAnalysis %s",
157  flags.PhysVal.IDTPM.currentTrkAna.anaTag )
158  return None

◆ TrackTruthMatchingToolCfg()

def InDetMatchingConfig.TrackTruthMatchingToolCfg (   flags,
  name = "TrackTruthMatchingTool",
**  kwargs 
)
Tool for Track->Truth matching via 'truthParticleLink' decorations

Definition at line 58 of file InDetMatchingConfig.py.

58 def TrackTruthMatchingToolCfg( flags, name="TrackTruthMatchingTool", **kwargs ):
59  '''
60  Tool for Track->Truth matching via 'truthParticleLink' decorations
61  '''
62  acc = ComponentAccumulator()
63 
64  kwargs.setdefault( "MatchingTruthProb", flags.PhysVal.IDTPM.currentTrkAna.truthProbCut )
65 
66  acc.setPrivateTools(
67  CompFactory.IDTPM.TrackTruthMatchingTool( name, **kwargs ) )
68  return acc
69 
70 

◆ TruthTrackMatchingToolCfg()

def InDetMatchingConfig.TruthTrackMatchingToolCfg (   flags,
  name = "TruthTrackMatchingTool",
**  kwargs 
)
Tool for Truth->Track matching via 'truthParticleLink' decorations

Definition at line 71 of file InDetMatchingConfig.py.

71 def TruthTrackMatchingToolCfg( flags, name="TruthTrackMatchingTool", **kwargs ):
72  '''
73  Tool for Truth->Track matching via 'truthParticleLink' decorations
74  '''
75  acc = ComponentAccumulator()
76 
77  kwargs.setdefault( "MatchingTruthProb", flags.PhysVal.IDTPM.currentTrkAna.truthProbCut )
78 
79  acc.setPrivateTools(
80  CompFactory.IDTPM.TruthTrackMatchingTool( name, **kwargs ) )
81  return acc
82 
83 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
InDetMatchingConfig.TruthTrackMatchingToolCfg
def TruthTrackMatchingToolCfg(flags, name="TruthTrackMatchingTool", **kwargs)
Definition: InDetMatchingConfig.py:71
InDetMatchingConfig.TrackMatchingToolCfg
def TrackMatchingToolCfg(flags, **kwargs)
Definition: InDetMatchingConfig.py:97
InDetMatchingConfig.DeltaRMatchingTool_trkTruthCfg
def DeltaRMatchingTool_trkTruthCfg(flags, name="DeltaRMatchingTool_trkTruth", **kwargs)
Definition: InDetMatchingConfig.py:16
InDetMatchingConfig.EFTrackMatchingToolCfg
def EFTrackMatchingToolCfg(flags, name="EFTrackMatchingTool", **kwargs)
Definition: InDetMatchingConfig.py:84
InDetMatchingConfig.DeltaRMatchingTool_truthTrkCfg
def DeltaRMatchingTool_truthTrkCfg(flags, name="DeltaRMatchingTool_truthTrk", **kwargs)
Definition: InDetMatchingConfig.py:30
InDetMatchingConfig.DeltaRMatchingTool_trkCfg
def DeltaRMatchingTool_trkCfg(flags, name="DeltaRMatchingTool_trk", **kwargs)
Definition: InDetMatchingConfig.py:44
InDetMatchingConfig.TrackTruthMatchingToolCfg
def TrackTruthMatchingToolCfg(flags, name="TrackTruthMatchingTool", **kwargs)
Definition: InDetMatchingConfig.py:58