Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions | Variables
python.TriggerEDMRun3 Namespace Reference

Functions

def getBTagViewName (jetType, jetDetailStr="subresjesgscIS_ftf")
 
list[strgetTauIDVars (str name)
 
def persistent (transient)
 
def tpMap ()
 
def getSafeEDMInsertPosition (edm_list)
 
def addHLTNavigationToEDMList (flags, edmList, allDecisions, hypoDecisions)
 

Variables

 __log
 
 JetVarsToKeep
 
 JetVars
 
 JetCopyVarsToKeep
 
 FastFtagPFlowVarsToKeep
 
 JetCopyVars
 
 JetFastFTagVarsToKeep
 
 JetFastFTagVars
 
 LargeRJetVarsToKeep
 
 LargeRJetVars
 
 VSIVarsToKeep
 
 VSIVars
 
 TLAJetVarsToKeep
 
 TLAJetVars
 
 ElToKeep
 
 ElVars
 
 PhToKeep
 
 PhVars
 
 BTagViewsEMTopo
 
 BTagViewsEMPFlow
 
 HIJetVarsToKeep
 
 HIJetVars
 
 BTagOutput
 
 BTagOutput_IPxD
 
 BTagOutput_IP2D
 
 x
 
 BTagOutput_IP3D
 
 BTagOutput_SV1
 
 BTagOutput_JetFitter
 
 BTagOutput_rnnip
 
 three_output_taggers
 
 b_vs_bb_taggers
 
 BTagOutput_highLevelTaggers
 
 BTagVars
 
 BTagJetOutput
 
 BTagJetVars
 
 hitDVToKeepBase
 
 hitDVToKeep
 
 hitDVVars
 
 dEdxTrkToKeepBase
 
 dEdxTrkToKeep
 
 dEdxTrkVars
 
 dEdxHitToKeepBase
 
 dEdxHitToKeep
 
 dEdxHitVars
 
 HPtdEdxTrkToKeepBase
 
 HPtdEdxTrkToKeep
 
 HPtdEdxTrkVars
 
 DisTrkToKeepNoIso
 
 DisTrkToKeepIso
 
 DisTrkVars
 
 DisTrkCandVars
 
 DisTrkBDTSelToKeepBase
 
 DisTrkBDTSelToKeep
 
 DisTrkBDTSelVars
 
 L1TopoErrorFlagVars
 
 TauJet_vars
 
 TauJet_vars_str
 
 TauTrack_vars
 
 TauTrack_vars_str
 
 MuRoiToKeep
 
 MuRoiVars
 
 varToRemoveFromAODSLIM
 
 TriggerHLTListRun3
 
 EDMDetailsRun3
 event info More...
 

Function Documentation

◆ addHLTNavigationToEDMList()

def python.TriggerEDMRun3.addHLTNavigationToEDMList (   flags,
  edmList,
  allDecisions,
  hypoDecisions 
)
Extend TriggerHLTListRun3 with HLT Navigation objects

Definition at line 1216 of file TriggerEDMRun3.py.

1216 def addHLTNavigationToEDMList(flags, edmList, allDecisions, hypoDecisions):
1217  """
1218  Extend TriggerHLTListRun3 with HLT Navigation objects
1219  """
1220 
1221  # HLTNav_* object list is built dynamically during job configuration, here we only define its output targets
1222  HLTNavEDMTargets = ''
1223 
1224  insert_idx = getSafeEDMInsertPosition(edmList)
1225 
1226  if not flags.Trigger.doOnlineNavigationCompactification:
1227  # If we are not compacting the online EDM, then we must write out all of the individual collections
1228  # ESD is added for MC support
1229  HLTNavEDMTargets = 'BS ESD'
1230 
1231  for decisionCollection in allDecisions:
1232  dynamic = '.-' # Exclude dynamic
1233  if decisionCollection in hypoDecisions:
1234  # Include dynamic
1235  dynamic = '.remap_linkColIndices.remap_linkColKeys'
1236  if 'PEBInfoWriter' in decisionCollection:
1237  dynamic += '.PEBROBList.PEBSubDetList'
1238  typeName = 'xAOD::TrigCompositeContainer#{:s}'.format(decisionCollection)
1239  typeNameAux = 'xAOD::TrigCompositeAuxContainer#{:s}Aux{:s}'.format(decisionCollection, dynamic)
1240 
1241  # Cost monitoring only requires a sub-set of the navigation collections.
1242  # (And CANNOT use any slimmed/merged collection, as the container names are important)
1243  thisCollectionHLTNavEDMTargets = HLTNavEDMTargets
1244  if decisionCollection.startswith("HLTNav_FStep") or decisionCollection == "HLTNav_Summary" or decisionCollection.startswith("HLTNav_L1"):
1245  thisCollectionHLTNavEDMTargets += ' CostMonDS'
1246 
1247  edmList[insert_idx:insert_idx] = [
1248  (typeName, thisCollectionHLTNavEDMTargets, 'Steer'),
1249  (typeNameAux, thisCollectionHLTNavEDMTargets, 'Steer')]
1250 
1251 
1252 
1253 

◆ getBTagViewName()

def python.TriggerEDMRun3.getBTagViewName (   jetType,
  jetDetailStr = "subresjesgscIS_ftf" 
)

Definition at line 113 of file TriggerEDMRun3.py.

113 def getBTagViewName(jetType, jetDetailStr="subresjesgscIS_ftf"):
114  return f"BTagViews_HLT_{jetType}_{jetDetailStr}Views"
115 

◆ getSafeEDMInsertPosition()

def python.TriggerEDMRun3.getSafeEDMInsertPosition (   edm_list)
Need to avoid inserting new runtime EDM entries at end of list
as 'allowTruncation' items need to be at end of list for correct
serialisation.
Function returns one position before
first 'allowTruncation' EDM item. If there is no 'allowTruncation'
EDM item, the position returned is the length of the list, i.e. the next
index in the list.

Definition at line 1195 of file TriggerEDMRun3.py.

1195 def getSafeEDMInsertPosition(edm_list):
1196  """
1197  Need to avoid inserting new runtime EDM entries at end of list
1198  as 'allowTruncation' items need to be at end of list for correct
1199  serialisation.
1200  Function returns one position before
1201  first 'allowTruncation' EDM item. If there is no 'allowTruncation'
1202  EDM item, the position returned is the length of the list, i.e. the next
1203  index in the list.
1204  """
1205 
1206  insert_idx = len(edm_list)
1207 
1208  # start at end of list
1209  for i,entry in enumerate(reversed(edm_list)):
1210  if len(entry) < 4 or allowTruncation not in entry[3]:
1211  insert_idx -= i
1212  return insert_idx
1213  return insert_idx
1214 
1215 

◆ getTauIDVars()

list[str] python.TriggerEDMRun3.getTauIDVars ( str  name)

Definition at line 220 of file TriggerEDMRun3.py.

220 def getTauIDVars(name: str) -> list[str]:
221  # Default list of variables required for all triggers, according to the naming convention
222  return [f'{name}_{sfx}' for sfx in ['Score', 'ScoreSigTrans', 'VeryLoose', 'Loose', 'Medium', 'Tight']]
223 

◆ persistent()

def python.TriggerEDMRun3.persistent (   transient)
Persistent EDM class, for xAOD it is the actual class version

Uses list defined above. If absent assumes v1

Definition at line 1169 of file TriggerEDMRun3.py.

1169 def persistent( transient ):
1170  """
1171  Persistent EDM class, for xAOD it is the actual class version
1172 
1173  Uses list defined above. If absent assumes v1
1174  """
1175  if transient in EDMDetailsRun3:
1176  if 'persistent' in EDMDetailsRun3[transient]:
1177  return EDMDetailsRun3[transient]['persistent']
1178  return transient
1179 
1180 

◆ tpMap()

def python.TriggerEDMRun3.tpMap ( )
List

Definition at line 1181 of file TriggerEDMRun3.py.

1181 def tpMap():
1182  """
1183  List
1184  """
1185  l = {}
1186  for tr in EDMDetailsRun3.keys():
1187  if "xAOD" in tr:
1188  continue
1189  l[tr] = persistent(tr)
1190  return l
1191 
1192 # Fn added as simply appending new HLT Nav entries to start of list
1193 # during runtime appears to cause Deserialisation issues (ATR-29945).
1194 # Appending new entries towards end is safer.

Variable Documentation

◆ __log

python.TriggerEDMRun3.__log
private

Definition at line 18 of file TriggerEDMRun3.py.

◆ b_vs_bb_taggers

python.TriggerEDMRun3.b_vs_bb_taggers

Definition at line 146 of file TriggerEDMRun3.py.

◆ BTagJetOutput

python.TriggerEDMRun3.BTagJetOutput

Definition at line 159 of file TriggerEDMRun3.py.

◆ BTagJetVars

python.TriggerEDMRun3.BTagJetVars

Definition at line 160 of file TriggerEDMRun3.py.

◆ BTagOutput

python.TriggerEDMRun3.BTagOutput

Definition at line 122 of file TriggerEDMRun3.py.

◆ BTagOutput_highLevelTaggers

python.TriggerEDMRun3.BTagOutput_highLevelTaggers

Definition at line 150 of file TriggerEDMRun3.py.

◆ BTagOutput_IP2D

python.TriggerEDMRun3.BTagOutput_IP2D

Definition at line 124 of file TriggerEDMRun3.py.

◆ BTagOutput_IP3D

python.TriggerEDMRun3.BTagOutput_IP3D

Definition at line 125 of file TriggerEDMRun3.py.

◆ BTagOutput_IPxD

python.TriggerEDMRun3.BTagOutput_IPxD

Definition at line 123 of file TriggerEDMRun3.py.

◆ BTagOutput_JetFitter

python.TriggerEDMRun3.BTagOutput_JetFitter

Definition at line 127 of file TriggerEDMRun3.py.

◆ BTagOutput_rnnip

python.TriggerEDMRun3.BTagOutput_rnnip

Definition at line 128 of file TriggerEDMRun3.py.

◆ BTagOutput_SV1

python.TriggerEDMRun3.BTagOutput_SV1

Definition at line 126 of file TriggerEDMRun3.py.

◆ BTagVars

python.TriggerEDMRun3.BTagVars

Definition at line 157 of file TriggerEDMRun3.py.

◆ BTagViewsEMPFlow

python.TriggerEDMRun3.BTagViewsEMPFlow

Definition at line 117 of file TriggerEDMRun3.py.

◆ BTagViewsEMTopo

python.TriggerEDMRun3.BTagViewsEMTopo

Definition at line 116 of file TriggerEDMRun3.py.

◆ dEdxHitToKeep

python.TriggerEDMRun3.dEdxHitToKeep

Definition at line 178 of file TriggerEDMRun3.py.

◆ dEdxHitToKeepBase

python.TriggerEDMRun3.dEdxHitToKeepBase

Definition at line 177 of file TriggerEDMRun3.py.

◆ dEdxHitVars

python.TriggerEDMRun3.dEdxHitVars

Definition at line 181 of file TriggerEDMRun3.py.

◆ dEdxTrkToKeep

python.TriggerEDMRun3.dEdxTrkToKeep

Definition at line 172 of file TriggerEDMRun3.py.

◆ dEdxTrkToKeepBase

python.TriggerEDMRun3.dEdxTrkToKeepBase

Definition at line 171 of file TriggerEDMRun3.py.

◆ dEdxTrkVars

python.TriggerEDMRun3.dEdxTrkVars

Definition at line 175 of file TriggerEDMRun3.py.

◆ DisTrkBDTSelToKeep

python.TriggerEDMRun3.DisTrkBDTSelToKeep

Definition at line 209 of file TriggerEDMRun3.py.

◆ DisTrkBDTSelToKeepBase

python.TriggerEDMRun3.DisTrkBDTSelToKeepBase

Definition at line 206 of file TriggerEDMRun3.py.

◆ DisTrkBDTSelVars

python.TriggerEDMRun3.DisTrkBDTSelVars

Definition at line 212 of file TriggerEDMRun3.py.

◆ DisTrkCandVars

python.TriggerEDMRun3.DisTrkCandVars

Definition at line 204 of file TriggerEDMRun3.py.

◆ DisTrkToKeepIso

python.TriggerEDMRun3.DisTrkToKeepIso

Definition at line 197 of file TriggerEDMRun3.py.

◆ DisTrkToKeepNoIso

python.TriggerEDMRun3.DisTrkToKeepNoIso

Definition at line 191 of file TriggerEDMRun3.py.

◆ DisTrkVars

python.TriggerEDMRun3.DisTrkVars

Definition at line 198 of file TriggerEDMRun3.py.

◆ EDMDetailsRun3

python.TriggerEDMRun3.EDMDetailsRun3

event info

Definition at line 1154 of file TriggerEDMRun3.py.

◆ ElToKeep

python.TriggerEDMRun3.ElToKeep

Definition at line 104 of file TriggerEDMRun3.py.

◆ ElVars

python.TriggerEDMRun3.ElVars

Definition at line 105 of file TriggerEDMRun3.py.

◆ FastFtagPFlowVarsToKeep

python.TriggerEDMRun3.FastFtagPFlowVarsToKeep

Definition at line 54 of file TriggerEDMRun3.py.

◆ HIJetVars

python.TriggerEDMRun3.HIJetVars

Definition at line 120 of file TriggerEDMRun3.py.

◆ HIJetVarsToKeep

python.TriggerEDMRun3.HIJetVarsToKeep

Definition at line 119 of file TriggerEDMRun3.py.

◆ hitDVToKeep

python.TriggerEDMRun3.hitDVToKeep

Definition at line 164 of file TriggerEDMRun3.py.

◆ hitDVToKeepBase

python.TriggerEDMRun3.hitDVToKeepBase

Definition at line 162 of file TriggerEDMRun3.py.

◆ hitDVVars

python.TriggerEDMRun3.hitDVVars

Definition at line 167 of file TriggerEDMRun3.py.

◆ HPtdEdxTrkToKeep

python.TriggerEDMRun3.HPtdEdxTrkToKeep

Definition at line 186 of file TriggerEDMRun3.py.

◆ HPtdEdxTrkToKeepBase

python.TriggerEDMRun3.HPtdEdxTrkToKeepBase

Definition at line 183 of file TriggerEDMRun3.py.

◆ HPtdEdxTrkVars

python.TriggerEDMRun3.HPtdEdxTrkVars

Definition at line 189 of file TriggerEDMRun3.py.

◆ JetCopyVars

python.TriggerEDMRun3.JetCopyVars

Definition at line 60 of file TriggerEDMRun3.py.

◆ JetCopyVarsToKeep

python.TriggerEDMRun3.JetCopyVarsToKeep

Definition at line 42 of file TriggerEDMRun3.py.

◆ JetFastFTagVars

python.TriggerEDMRun3.JetFastFTagVars

Definition at line 70 of file TriggerEDMRun3.py.

◆ JetFastFTagVarsToKeep

python.TriggerEDMRun3.JetFastFTagVarsToKeep

Definition at line 62 of file TriggerEDMRun3.py.

◆ JetVars

python.TriggerEDMRun3.JetVars

Definition at line 39 of file TriggerEDMRun3.py.

◆ JetVarsToKeep

python.TriggerEDMRun3.JetVarsToKeep

Definition at line 30 of file TriggerEDMRun3.py.

◆ L1TopoErrorFlagVars

python.TriggerEDMRun3.L1TopoErrorFlagVars

Definition at line 216 of file TriggerEDMRun3.py.

◆ LargeRJetVars

python.TriggerEDMRun3.LargeRJetVars

Definition at line 74 of file TriggerEDMRun3.py.

◆ LargeRJetVarsToKeep

python.TriggerEDMRun3.LargeRJetVarsToKeep

Definition at line 72 of file TriggerEDMRun3.py.

◆ MuRoiToKeep

python.TriggerEDMRun3.MuRoiToKeep

Definition at line 233 of file TriggerEDMRun3.py.

◆ MuRoiVars

python.TriggerEDMRun3.MuRoiVars

Definition at line 234 of file TriggerEDMRun3.py.

◆ PhToKeep

python.TriggerEDMRun3.PhToKeep

Definition at line 107 of file TriggerEDMRun3.py.

◆ PhVars

python.TriggerEDMRun3.PhVars

Definition at line 109 of file TriggerEDMRun3.py.

◆ TauJet_vars

python.TriggerEDMRun3.TauJet_vars

Definition at line 224 of file TriggerEDMRun3.py.

◆ TauJet_vars_str

python.TriggerEDMRun3.TauJet_vars_str

Definition at line 226 of file TriggerEDMRun3.py.

◆ TauTrack_vars

python.TriggerEDMRun3.TauTrack_vars

Definition at line 228 of file TriggerEDMRun3.py.

◆ TauTrack_vars_str

python.TriggerEDMRun3.TauTrack_vars_str

Definition at line 229 of file TriggerEDMRun3.py.

◆ three_output_taggers

python.TriggerEDMRun3.three_output_taggers

Definition at line 131 of file TriggerEDMRun3.py.

◆ TLAJetVars

python.TriggerEDMRun3.TLAJetVars

Definition at line 100 of file TriggerEDMRun3.py.

◆ TLAJetVarsToKeep

python.TriggerEDMRun3.TLAJetVarsToKeep

Definition at line 87 of file TriggerEDMRun3.py.

◆ TriggerHLTListRun3

python.TriggerEDMRun3.TriggerHLTListRun3

Definition at line 265 of file TriggerEDMRun3.py.

◆ varToRemoveFromAODSLIM

python.TriggerEDMRun3.varToRemoveFromAODSLIM

Definition at line 244 of file TriggerEDMRun3.py.

◆ VSIVars

python.TriggerEDMRun3.VSIVars

Definition at line 82 of file TriggerEDMRun3.py.

◆ VSIVarsToKeep

python.TriggerEDMRun3.VSIVarsToKeep

Definition at line 76 of file TriggerEDMRun3.py.

◆ x

python.TriggerEDMRun3.x

Definition at line 124 of file TriggerEDMRun3.py.

python.TriggerEDMRun3.persistent
def persistent(transient)
Definition: TriggerEDMRun3.py:1169
vtune_athena.format
format
Definition: vtune_athena.py:14
python.TriggerEDMRun3.addHLTNavigationToEDMList
def addHLTNavigationToEDMList(flags, edmList, allDecisions, hypoDecisions)
Definition: TriggerEDMRun3.py:1216
python.TriggerEDMRun3.getTauIDVars
list[str] getTauIDVars(str name)
Definition: TriggerEDMRun3.py:220
python.TriggerEDMRun3.tpMap
def tpMap()
Definition: TriggerEDMRun3.py:1181
python.TriggerEDMRun3.getSafeEDMInsertPosition
def getSafeEDMInsertPosition(edm_list)
Definition: TriggerEDMRun3.py:1195
python.TriggerEDMRun3.getBTagViewName
def getBTagViewName(jetType, jetDetailStr="subresjesgscIS_ftf")
Definition: TriggerEDMRun3.py:113