ATLAS Offline Software
Functions
TrigTauToolsConfig Namespace Reference

Functions

def trigTauVertexFinderCfg (flags, name='')
 
def trigTauTrackFinderCfg (flags, name='', TrackParticlesContainer='')
 
def tauVertexVariablesCfg (flags, name='')
 
def trigTauJetRNNEvaluatorCfg (flags, name='', LLP=False)
 
def trigTauWPDecoratorJetRNNCfg (flags, name='', LLP=False)
 

Function Documentation

◆ tauVertexVariablesCfg()

def TrigTauToolsConfig.tauVertexVariablesCfg (   flags,
  name = '' 
)

Definition at line 63 of file TrigTauToolsConfig.py.

63 def tauVertexVariablesCfg(flags,name=''):
64  acc = ComponentAccumulator()
65 
66  from TrkConfig.TrkVertexFittersConfig import TauAdaptiveVertexFitterCfg
67  TauAdaptiveVertexFitter = acc.popToolsAndMerge(
69 
70  from TrkConfig.TrkVertexSeedFinderToolsConfig import (
71  CrossDistancesSeedFinderCfg)
72  CrossDistancesSeedFinder = acc.popToolsAndMerge(
74 
75  TauVertexVariables = CompFactory.TauVertexVariables(name=name,
76  VertexFitter = TauAdaptiveVertexFitter ,
77  SeedFinder = CrossDistancesSeedFinder )
78  acc.setPrivateTools(TauVertexVariables)
79  return acc
80 

◆ trigTauJetRNNEvaluatorCfg()

def TrigTauToolsConfig.trigTauJetRNNEvaluatorCfg (   flags,
  name = '',
  LLP = False 
)

Definition at line 81 of file TrigTauToolsConfig.py.

81 def trigTauJetRNNEvaluatorCfg(flags,name='',LLP = False):
82 
83  acc = ComponentAccumulator()
84 
85  name += '_LLP' if LLP else ''
86 
87  (NetworkFile0P, NetworkFile1P, NetworkFile3P) = \
88  flags.Trigger.Offline.Tau.TauJetRNNConfigLLP if LLP \
89  else flags.Trigger.Offline.Tau.TauJetRNNConfig
90 
91 
92  MyTauJetRNNEvaluator = CompFactory.TauJetRNNEvaluator(name = name,
93  NetworkFile0P = NetworkFile0P,
94  NetworkFile1P = NetworkFile1P,
95  NetworkFile3P = NetworkFile3P,
96  OutputVarname = "RNNJetScore",
97  MaxTracks = 10,
98  MaxClusters = 6,
99  MaxClusterDR = 1.0,
100  VertexCorrection = False,
101  TrackClassification = False,
102  InputLayerScalar = "scalar",
103  InputLayerTracks = "tracks",
104  InputLayerClusters = "clusters",
105  OutputLayer = "rnnid_output",
106  OutputNode = "sig_prob")
107 
108 
109  acc.setPrivateTools(MyTauJetRNNEvaluator)
110  return acc
111 

◆ trigTauTrackFinderCfg()

def TrigTauToolsConfig.trigTauTrackFinderCfg (   flags,
  name = '',
  TrackParticlesContainer = '' 
)

Definition at line 23 of file TrigTauToolsConfig.py.

23 def trigTauTrackFinderCfg(flags,name='',TrackParticlesContainer=''):
24  acc = ComponentAccumulator()
25 
26  from TrkConfig.TrkVertexFitterUtilsConfig import (
27  AtlasTrackToVertexIPEstimatorCfg)
28  AtlasTrackToVertexIPEstimator = acc.popToolsAndMerge(
30 
31  from TrackToVertex.TrackToVertexConfig import TrackToVertexCfg
32  TrackToVertexTool = acc.popToolsAndMerge(TrackToVertexCfg(flags))
33 
34  from TrackToCalo.TrackToCaloConfig import ParticleCaloExtensionToolCfg
35  ParticleCaloExtensionTool = acc.popToolsAndMerge(
37 
38  from InDetConfig.InDetTrackSelectorToolConfig import (
39  TrigTauInDetTrackSelectorToolCfg)
40  TrigTauInDetTrackSelectorTool = acc.popToolsAndMerge(
42 
43 
44  TauTrackFinder = CompFactory.TauTrackFinder(name=name,
45  MaxJetDrTau = 0.2,
46  MaxJetDrWide = 0.4,
47  TrackSelectorToolTau = TrigTauInDetTrackSelectorTool,
48  TrackToVertexTool = TrackToVertexTool,
49  Key_trackPartInputContainer = TrackParticlesContainer,
50  maxDeltaZ0wrtLeadTrk = 0.75*mm, #in mm
51  removeTracksOutsideZ0wrtLeadTrk = True,
52  ParticleCaloExtensionTool = ParticleCaloExtensionTool,
53  BypassSelector = False,
54  BypassExtrapolator = True,
55  tauParticleCache = "",
56  TrackToVertexIPEstimator = AtlasTrackToVertexIPEstimator,
57  )
58 
59 
60  acc.setPrivateTools(TauTrackFinder)
61  return acc
62 

◆ trigTauVertexFinderCfg()

def TrigTauToolsConfig.trigTauVertexFinderCfg (   flags,
  name = '' 
)

Definition at line 7 of file TrigTauToolsConfig.py.

7 def trigTauVertexFinderCfg(flags,name=''):
9 
10  # Algorithm that overwrites numTrack() and charge() of tauJets in container
11  TauVertexFinder = CompFactory.TauVertexFinder(name=name,
12  UseTJVA = False,
13  AssociatedTracks = "GhostTrack",
14  InDetTrackSelectionToolForTJVA = "",
15  Key_trackPartInputContainer = "",
16  Key_vertexInputContainer = "",
17  TVATool = "",
18  )
19 
20  acc.setPrivateTools(TauVertexFinder)
21  return acc
22 

◆ trigTauWPDecoratorJetRNNCfg()

def TrigTauToolsConfig.trigTauWPDecoratorJetRNNCfg (   flags,
  name = '',
  LLP = False 
)

Definition at line 112 of file TrigTauToolsConfig.py.

112 def trigTauWPDecoratorJetRNNCfg(flags,name='',LLP = False):
113  import PyUtils.RootUtils as ru
114  ROOT = ru.import_root()
115  import cppyy
116  cppyy.load_library('libxAODTau_cDict')
117 
118  acc = ComponentAccumulator()
119  name += '_LLP' if LLP else ''
120 
121  # currently the target efficiencies are the same for regular tau ID and LLP tau ID
122  # if we need different WPs, we can define new flags
123 
124  (flatteningFile0Prong, flatteningFile1Prong, flatteningFile3Prong) = \
125  flags.Trigger.Offline.Tau.TauJetRNNWPConfigLLP if LLP \
126  else flags.Trigger.Offline.Tau.TauJetRNNWPConfig
127 
128  (targetEff0Prong, targetEff1Prong, targetEff3Prong) = \
129  flags.Trigger.Offline.Tau.TauJetRNNLLPTargetEff if LLP \
130  else flags.Trigger.Offline.Tau.TauJetRNNTargetEff
131 
132  MyTauWPDecorator =CompFactory.TauWPDecorator( name=name,
133  flatteningFile0Prong = flatteningFile0Prong,
134  flatteningFile1Prong = flatteningFile1Prong,
135  flatteningFile3Prong = flatteningFile3Prong,
136  CutEnumVals =
137  [ ROOT.xAOD.TauJetParameters.IsTauFlag.JetRNNSigVeryLoose, ROOT.xAOD.TauJetParameters.IsTauFlag.JetRNNSigLoose,
138  ROOT.xAOD.TauJetParameters.IsTauFlag.JetRNNSigMedium, ROOT.xAOD.TauJetParameters.IsTauFlag.JetRNNSigTight ],
139  SigEff0P = targetEff0Prong,
140  SigEff1P = targetEff1Prong,
141  SigEff3P = targetEff3Prong,
142  ScoreName = "RNNJetScore",
143  NewScoreName = "RNNJetScoreSigTrans",
144  DefineWPs = True )
145 
146  acc.setPrivateTools(MyTauWPDecorator)
147  return acc
python.TrkVertexFittersConfig.TauAdaptiveVertexFitterCfg
def TauAdaptiveVertexFitterCfg(flags, name="TauAdaptiveVertexFitter", **kwargs)
Definition: TrkVertexFittersConfig.py:97
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TrkVertexFitterUtilsConfig.AtlasTrackToVertexIPEstimatorCfg
def AtlasTrackToVertexIPEstimatorCfg(flags, name='AtlasTrackToVertexIPEstimator', **kwargs)
Definition: TrkVertexFitterUtilsConfig.py:63
TrigTauToolsConfig.trigTauJetRNNEvaluatorCfg
def trigTauJetRNNEvaluatorCfg(flags, name='', LLP=False)
Definition: TrigTauToolsConfig.py:81
TrigTauToolsConfig.trigTauWPDecoratorJetRNNCfg
def trigTauWPDecoratorJetRNNCfg(flags, name='', LLP=False)
Definition: TrigTauToolsConfig.py:112
TrigTauToolsConfig.trigTauTrackFinderCfg
def trigTauTrackFinderCfg(flags, name='', TrackParticlesContainer='')
Definition: TrigTauToolsConfig.py:23
TrigTauToolsConfig.tauVertexVariablesCfg
def tauVertexVariablesCfg(flags, name='')
Definition: TrigTauToolsConfig.py:63
TrigTauToolsConfig.trigTauVertexFinderCfg
def trigTauVertexFinderCfg(flags, name='')
Definition: TrigTauToolsConfig.py:7
python.InDetTrackSelectorToolConfig.TrigTauInDetTrackSelectorToolCfg
def TrigTauInDetTrackSelectorToolCfg(flags, name="TrigTau_InDetTrackSelectorTool", **kwargs)
Definition: InDetTrackSelectorToolConfig.py:294
TrackToVertexConfig.TrackToVertexCfg
def TrackToVertexCfg(flags, name="AtlasTrackToVertexTool", **kwargs)
Definition: TrackToVertexConfig.py:6
python.TrkVertexSeedFinderToolsConfig.CrossDistancesSeedFinderCfg
def CrossDistancesSeedFinderCfg(flags, name="CrossDistancesSeedFinder", **kwargs)
Definition: TrkVertexSeedFinderToolsConfig.py:33
TrackToCaloConfig.ParticleCaloExtensionToolCfg
def ParticleCaloExtensionToolCfg(flags, name='ParticleCaloExtensionTool', **kwargs)
Definition: TrackToCaloConfig.py:10