ATLAS Offline Software
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 1204 of file TriggerEDMRun3.py.

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

◆ getBTagViewName()

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

Definition at line 106 of file TriggerEDMRun3.py.

106 def getBTagViewName(jetType, jetDetailStr="subresjesgscIS_ftf"):
107  return f"BTagViews_HLT_{jetType}_{jetDetailStr}Views"
108 

◆ 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 1183 of file TriggerEDMRun3.py.

1183 def getSafeEDMInsertPosition(edm_list):
1184  """
1185  Need to avoid inserting new runtime EDM entries at end of list
1186  as 'allowTruncation' items need to be at end of list for correct
1187  serialisation.
1188  Function returns one position before
1189  first 'allowTruncation' EDM item. If there is no 'allowTruncation'
1190  EDM item, the position returned is the length of the list, i.e. the next
1191  index in the list.
1192  """
1193 
1194  insert_idx = len(edm_list)
1195 
1196  # start at end of list
1197  for i,entry in enumerate(reversed(edm_list)):
1198  if len(entry) < 4 or allowTruncation not in entry[3]:
1199  insert_idx -= i
1200  return insert_idx
1201  return insert_idx
1202 
1203 

◆ getTauIDVars()

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

Definition at line 213 of file TriggerEDMRun3.py.

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

◆ 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 1157 of file TriggerEDMRun3.py.

1157 def persistent( transient ):
1158  """
1159  Persistent EDM class, for xAOD it is the actual class version
1160 
1161  Uses list defined above. If absent assumes v1
1162  """
1163  if transient in EDMDetailsRun3:
1164  if 'persistent' in EDMDetailsRun3[transient]:
1165  return EDMDetailsRun3[transient]['persistent']
1166  return transient
1167 
1168 

◆ tpMap()

def python.TriggerEDMRun3.tpMap ( )
List

Definition at line 1169 of file TriggerEDMRun3.py.

1169 def tpMap():
1170  """
1171  List
1172  """
1173  l = {}
1174  for tr in EDMDetailsRun3.keys():
1175  if "xAOD" in tr:
1176  continue
1177  l[tr] = persistent(tr)
1178  return l
1179 
1180 # Fn added as simply appending new HLT Nav entries to start of list
1181 # during runtime appears to cause Deserialisation issues (ATR-29945).
1182 # 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 139 of file TriggerEDMRun3.py.

◆ BTagJetOutput

python.TriggerEDMRun3.BTagJetOutput

Definition at line 152 of file TriggerEDMRun3.py.

◆ BTagJetVars

python.TriggerEDMRun3.BTagJetVars

Definition at line 153 of file TriggerEDMRun3.py.

◆ BTagOutput

python.TriggerEDMRun3.BTagOutput

Definition at line 115 of file TriggerEDMRun3.py.

◆ BTagOutput_highLevelTaggers

python.TriggerEDMRun3.BTagOutput_highLevelTaggers

Definition at line 143 of file TriggerEDMRun3.py.

◆ BTagOutput_IP2D

python.TriggerEDMRun3.BTagOutput_IP2D

Definition at line 117 of file TriggerEDMRun3.py.

◆ BTagOutput_IP3D

python.TriggerEDMRun3.BTagOutput_IP3D

Definition at line 118 of file TriggerEDMRun3.py.

◆ BTagOutput_IPxD

python.TriggerEDMRun3.BTagOutput_IPxD

Definition at line 116 of file TriggerEDMRun3.py.

◆ BTagOutput_JetFitter

python.TriggerEDMRun3.BTagOutput_JetFitter

Definition at line 120 of file TriggerEDMRun3.py.

◆ BTagOutput_rnnip

python.TriggerEDMRun3.BTagOutput_rnnip

Definition at line 121 of file TriggerEDMRun3.py.

◆ BTagOutput_SV1

python.TriggerEDMRun3.BTagOutput_SV1

Definition at line 119 of file TriggerEDMRun3.py.

◆ BTagVars

python.TriggerEDMRun3.BTagVars

Definition at line 150 of file TriggerEDMRun3.py.

◆ BTagViewsEMPFlow

python.TriggerEDMRun3.BTagViewsEMPFlow

Definition at line 110 of file TriggerEDMRun3.py.

◆ BTagViewsEMTopo

python.TriggerEDMRun3.BTagViewsEMTopo

Definition at line 109 of file TriggerEDMRun3.py.

◆ dEdxHitToKeep

python.TriggerEDMRun3.dEdxHitToKeep

Definition at line 171 of file TriggerEDMRun3.py.

◆ dEdxHitToKeepBase

python.TriggerEDMRun3.dEdxHitToKeepBase

Definition at line 170 of file TriggerEDMRun3.py.

◆ dEdxHitVars

python.TriggerEDMRun3.dEdxHitVars

Definition at line 174 of file TriggerEDMRun3.py.

◆ dEdxTrkToKeep

python.TriggerEDMRun3.dEdxTrkToKeep

Definition at line 165 of file TriggerEDMRun3.py.

◆ dEdxTrkToKeepBase

python.TriggerEDMRun3.dEdxTrkToKeepBase

Definition at line 164 of file TriggerEDMRun3.py.

◆ dEdxTrkVars

python.TriggerEDMRun3.dEdxTrkVars

Definition at line 168 of file TriggerEDMRun3.py.

◆ DisTrkBDTSelToKeep

python.TriggerEDMRun3.DisTrkBDTSelToKeep

Definition at line 202 of file TriggerEDMRun3.py.

◆ DisTrkBDTSelToKeepBase

python.TriggerEDMRun3.DisTrkBDTSelToKeepBase

Definition at line 199 of file TriggerEDMRun3.py.

◆ DisTrkBDTSelVars

python.TriggerEDMRun3.DisTrkBDTSelVars

Definition at line 205 of file TriggerEDMRun3.py.

◆ DisTrkCandVars

python.TriggerEDMRun3.DisTrkCandVars

Definition at line 197 of file TriggerEDMRun3.py.

◆ DisTrkToKeepIso

python.TriggerEDMRun3.DisTrkToKeepIso

Definition at line 190 of file TriggerEDMRun3.py.

◆ DisTrkToKeepNoIso

python.TriggerEDMRun3.DisTrkToKeepNoIso

Definition at line 184 of file TriggerEDMRun3.py.

◆ DisTrkVars

python.TriggerEDMRun3.DisTrkVars

Definition at line 191 of file TriggerEDMRun3.py.

◆ EDMDetailsRun3

python.TriggerEDMRun3.EDMDetailsRun3

event info

Definition at line 1142 of file TriggerEDMRun3.py.

◆ ElToKeep

python.TriggerEDMRun3.ElToKeep

Definition at line 97 of file TriggerEDMRun3.py.

◆ ElVars

python.TriggerEDMRun3.ElVars

Definition at line 98 of file TriggerEDMRun3.py.

◆ FastFtagPFlowVarsToKeep

python.TriggerEDMRun3.FastFtagPFlowVarsToKeep

Definition at line 48 of file TriggerEDMRun3.py.

◆ HIJetVars

python.TriggerEDMRun3.HIJetVars

Definition at line 113 of file TriggerEDMRun3.py.

◆ HIJetVarsToKeep

python.TriggerEDMRun3.HIJetVarsToKeep

Definition at line 112 of file TriggerEDMRun3.py.

◆ hitDVToKeep

python.TriggerEDMRun3.hitDVToKeep

Definition at line 157 of file TriggerEDMRun3.py.

◆ hitDVToKeepBase

python.TriggerEDMRun3.hitDVToKeepBase

Definition at line 155 of file TriggerEDMRun3.py.

◆ hitDVVars

python.TriggerEDMRun3.hitDVVars

Definition at line 160 of file TriggerEDMRun3.py.

◆ HPtdEdxTrkToKeep

python.TriggerEDMRun3.HPtdEdxTrkToKeep

Definition at line 179 of file TriggerEDMRun3.py.

◆ HPtdEdxTrkToKeepBase

python.TriggerEDMRun3.HPtdEdxTrkToKeepBase

Definition at line 176 of file TriggerEDMRun3.py.

◆ HPtdEdxTrkVars

python.TriggerEDMRun3.HPtdEdxTrkVars

Definition at line 182 of file TriggerEDMRun3.py.

◆ JetCopyVars

python.TriggerEDMRun3.JetCopyVars

Definition at line 54 of file TriggerEDMRun3.py.

◆ JetCopyVarsToKeep

python.TriggerEDMRun3.JetCopyVarsToKeep

Definition at line 42 of file TriggerEDMRun3.py.

◆ JetFastFTagVars

python.TriggerEDMRun3.JetFastFTagVars

Definition at line 64 of file TriggerEDMRun3.py.

◆ JetFastFTagVarsToKeep

python.TriggerEDMRun3.JetFastFTagVarsToKeep

Definition at line 56 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 209 of file TriggerEDMRun3.py.

◆ LargeRJetVars

python.TriggerEDMRun3.LargeRJetVars

Definition at line 68 of file TriggerEDMRun3.py.

◆ LargeRJetVarsToKeep

python.TriggerEDMRun3.LargeRJetVarsToKeep

Definition at line 66 of file TriggerEDMRun3.py.

◆ MuRoiToKeep

python.TriggerEDMRun3.MuRoiToKeep

Definition at line 225 of file TriggerEDMRun3.py.

◆ MuRoiVars

python.TriggerEDMRun3.MuRoiVars

Definition at line 226 of file TriggerEDMRun3.py.

◆ PhToKeep

python.TriggerEDMRun3.PhToKeep

Definition at line 100 of file TriggerEDMRun3.py.

◆ PhVars

python.TriggerEDMRun3.PhVars

Definition at line 102 of file TriggerEDMRun3.py.

◆ TauJet_vars

python.TriggerEDMRun3.TauJet_vars

Definition at line 217 of file TriggerEDMRun3.py.

◆ TauJet_vars_str

python.TriggerEDMRun3.TauJet_vars_str

Definition at line 218 of file TriggerEDMRun3.py.

◆ TauTrack_vars

python.TriggerEDMRun3.TauTrack_vars

Definition at line 220 of file TriggerEDMRun3.py.

◆ TauTrack_vars_str

python.TriggerEDMRun3.TauTrack_vars_str

Definition at line 221 of file TriggerEDMRun3.py.

◆ three_output_taggers

python.TriggerEDMRun3.three_output_taggers

Definition at line 124 of file TriggerEDMRun3.py.

◆ TLAJetVars

python.TriggerEDMRun3.TLAJetVars

Definition at line 93 of file TriggerEDMRun3.py.

◆ TLAJetVarsToKeep

python.TriggerEDMRun3.TLAJetVarsToKeep

Definition at line 81 of file TriggerEDMRun3.py.

◆ TriggerHLTListRun3

python.TriggerEDMRun3.TriggerHLTListRun3

Definition at line 256 of file TriggerEDMRun3.py.

◆ varToRemoveFromAODSLIM

python.TriggerEDMRun3.varToRemoveFromAODSLIM

Definition at line 236 of file TriggerEDMRun3.py.

◆ VSIVars

python.TriggerEDMRun3.VSIVars

Definition at line 76 of file TriggerEDMRun3.py.

◆ VSIVarsToKeep

python.TriggerEDMRun3.VSIVarsToKeep

Definition at line 70 of file TriggerEDMRun3.py.

◆ x

python.TriggerEDMRun3.x

Definition at line 117 of file TriggerEDMRun3.py.

python.TriggerEDMRun3.persistent
def persistent(transient)
Definition: TriggerEDMRun3.py:1157
vtune_athena.format
format
Definition: vtune_athena.py:14
python.TriggerEDMRun3.addHLTNavigationToEDMList
def addHLTNavigationToEDMList(flags, edmList, allDecisions, hypoDecisions)
Definition: TriggerEDMRun3.py:1204
python.TriggerEDMRun3.getTauIDVars
list[str] getTauIDVars(str name)
Definition: TriggerEDMRun3.py:213
python.TriggerEDMRun3.tpMap
def tpMap()
Definition: TriggerEDMRun3.py:1169
python.TriggerEDMRun3.getSafeEDMInsertPosition
def getSafeEDMInsertPosition(edm_list)
Definition: TriggerEDMRun3.py:1183
python.TriggerEDMRun3.getBTagViewName
def getBTagViewName(jetType, jetDetailStr="subresjesgscIS_ftf")
Definition: TriggerEDMRun3.py:106