ATLAS Offline Software
Functions | Variables
python.TriggerEDMRun3 Namespace Reference

Functions

def getBTagViewName (jetType, jetDetailStr="subresjesgscIS_ftf")
 
def persistent (transient)
 
def tpMap ()
 
def addHLTNavigationToEDMList (flags, edmList, allDecisions, hypoDecisions)
 
def addExtraCollectionsToEDMList (edmList, extraList)
 

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
 
 TauTrackToKeep
 
 TauTrackVars
 
 MuRoiToKeep
 
 MuRoiVars
 
 varToRemoveFromAODSLIM
 
 TriggerHLTListRun3
 
 EDMDetailsRun3
 event info More...
 

Function Documentation

◆ addExtraCollectionsToEDMList()

def python.TriggerEDMRun3.addExtraCollectionsToEDMList (   edmList,
  extraList 
)
Extend edmList with extraList, keeping track whether a completely new
collection is being added, or a dynamic variable is added to an existing collection.
The format of extraList is the same as those of TriggerHLTListRun3.

Definition at line 1228 of file TriggerEDMRun3.py.

1228 def addExtraCollectionsToEDMList(edmList, extraList):
1229  """
1230  Extend edmList with extraList, keeping track whether a completely new
1231  collection is being added, or a dynamic variable is added to an existing collection.
1232  The format of extraList is the same as those of TriggerHLTListRun3.
1233  """
1234  existing_collections = [(c[0].split("#")[1]).split(".")[0] for c in edmList]
1235  for item in extraList:
1236  colname = (item[0].split("#")[1]).split(".")[0]
1237  if colname not in existing_collections:
1238  # a new collection is added
1239  edmList.append(item)
1240  __log.info("added new item to Trigger EDM: {}".format(item))
1241  else:
1242  if "Aux." in item[0]:
1243  # probably an extra dynamic variable is added
1244  # new variables to add:
1245  dynVars = (item[0].split("#")[1]).split(".")[1:]
1246  # find the index of the existing item
1247  existing_item_nr = [i for i,s in enumerate(edmList) if colname == (s[0].split("#")[1]).split(".")[0]]
1248  if len(existing_item_nr) != 1:
1249  __log.error("Found {} existing edm items corresponding to new item {}, but it must be exactly one!".format(len(existing_item_nr), item))
1250  # merge lists of variables
1251  existing_dynVars = (edmList[existing_item_nr[0]][0].split("#")[1]).split(".")[1:]
1252  dynVars.extend(existing_dynVars)
1253  # remove duplicates:
1254  dynVars = list(dict.fromkeys(dynVars))
1255  newVars = '.'.join(dynVars)
1256  typename = item[0].split("#")[0]
1257  __log.info("old item in Trigger EDM: {}".format(edmList[existing_item_nr[0]]))
1258  targets = edmList[existing_item_nr[0]][1]
1259  signature = edmList[existing_item_nr[0]][2]
1260  edmList.pop(existing_item_nr[0])
1261  edmList.insert(existing_item_nr[0] , (typename + "#" + colname + "." + newVars, targets, signature))
1262  __log.info("updated item in Trigger EDM: {}".format(edmList[existing_item_nr[0]]))
1263  else:
1264  # asking to add some collection which is already in the list - do nothing
1265  pass
1266 
1267 

◆ addHLTNavigationToEDMList()

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

Definition at line 1195 of file TriggerEDMRun3.py.

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

◆ 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 

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

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

◆ tpMap()

def python.TriggerEDMRun3.tpMap ( )
List

Definition at line 1183 of file TriggerEDMRun3.py.

1183 def tpMap():
1184  """
1185  List
1186  """
1187  l = {}
1188  for tr in EDMDetailsRun3.keys():
1189  if "xAOD" in tr:
1190  continue
1191  l[tr] = persistent(tr)
1192  return l
1193 
1194 

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

◆ BTagJetOutput

python.TriggerEDMRun3.BTagJetOutput

Definition at line 171 of file TriggerEDMRun3.py.

◆ BTagJetVars

python.TriggerEDMRun3.BTagJetVars

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

◆ BTagOutput_IP2D

python.TriggerEDMRun3.BTagOutput_IP2D

Definition at line 120 of file TriggerEDMRun3.py.

◆ BTagOutput_IP3D

python.TriggerEDMRun3.BTagOutput_IP3D

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

◆ BTagOutput_rnnip

python.TriggerEDMRun3.BTagOutput_rnnip

Definition at line 140 of file TriggerEDMRun3.py.

◆ BTagOutput_SV1

python.TriggerEDMRun3.BTagOutput_SV1

Definition at line 122 of file TriggerEDMRun3.py.

◆ BTagVars

python.TriggerEDMRun3.BTagVars

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

◆ dEdxHitToKeepBase

python.TriggerEDMRun3.dEdxHitToKeepBase

Definition at line 189 of file TriggerEDMRun3.py.

◆ dEdxHitVars

python.TriggerEDMRun3.dEdxHitVars

Definition at line 193 of file TriggerEDMRun3.py.

◆ dEdxTrkToKeep

python.TriggerEDMRun3.dEdxTrkToKeep

Definition at line 184 of file TriggerEDMRun3.py.

◆ dEdxTrkToKeepBase

python.TriggerEDMRun3.dEdxTrkToKeepBase

Definition at line 183 of file TriggerEDMRun3.py.

◆ dEdxTrkVars

python.TriggerEDMRun3.dEdxTrkVars

Definition at line 187 of file TriggerEDMRun3.py.

◆ DisTrkBDTSelToKeep

python.TriggerEDMRun3.DisTrkBDTSelToKeep

Definition at line 221 of file TriggerEDMRun3.py.

◆ DisTrkBDTSelToKeepBase

python.TriggerEDMRun3.DisTrkBDTSelToKeepBase

Definition at line 218 of file TriggerEDMRun3.py.

◆ DisTrkBDTSelVars

python.TriggerEDMRun3.DisTrkBDTSelVars

Definition at line 224 of file TriggerEDMRun3.py.

◆ DisTrkCandVars

python.TriggerEDMRun3.DisTrkCandVars

Definition at line 216 of file TriggerEDMRun3.py.

◆ DisTrkToKeepIso

python.TriggerEDMRun3.DisTrkToKeepIso

Definition at line 209 of file TriggerEDMRun3.py.

◆ DisTrkToKeepNoIso

python.TriggerEDMRun3.DisTrkToKeepNoIso

Definition at line 203 of file TriggerEDMRun3.py.

◆ DisTrkVars

python.TriggerEDMRun3.DisTrkVars

Definition at line 210 of file TriggerEDMRun3.py.

◆ EDMDetailsRun3

python.TriggerEDMRun3.EDMDetailsRun3

event info

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

◆ hitDVToKeepBase

python.TriggerEDMRun3.hitDVToKeepBase

Definition at line 174 of file TriggerEDMRun3.py.

◆ hitDVVars

python.TriggerEDMRun3.hitDVVars

Definition at line 179 of file TriggerEDMRun3.py.

◆ HPtdEdxTrkToKeep

python.TriggerEDMRun3.HPtdEdxTrkToKeep

Definition at line 198 of file TriggerEDMRun3.py.

◆ HPtdEdxTrkToKeepBase

python.TriggerEDMRun3.HPtdEdxTrkToKeepBase

Definition at line 195 of file TriggerEDMRun3.py.

◆ HPtdEdxTrkVars

python.TriggerEDMRun3.HPtdEdxTrkVars

Definition at line 201 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 228 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 237 of file TriggerEDMRun3.py.

◆ MuRoiVars

python.TriggerEDMRun3.MuRoiVars

Definition at line 238 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.

◆ TauTrackToKeep

python.TriggerEDMRun3.TauTrackToKeep

Definition at line 232 of file TriggerEDMRun3.py.

◆ TauTrackVars

python.TriggerEDMRun3.TauTrackVars

Definition at line 233 of file TriggerEDMRun3.py.

◆ three_output_taggers

python.TriggerEDMRun3.three_output_taggers

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

◆ varToRemoveFromAODSLIM

python.TriggerEDMRun3.varToRemoveFromAODSLIM

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

python.TriggerEDMRun3.persistent
def persistent(transient)
Definition: TriggerEDMRun3.py:1171
vtune_athena.format
format
Definition: vtune_athena.py:14
python.TriggerEDMRun3.addHLTNavigationToEDMList
def addHLTNavigationToEDMList(flags, edmList, allDecisions, hypoDecisions)
Definition: TriggerEDMRun3.py:1195
python.TriggerEDMRun3.addExtraCollectionsToEDMList
def addExtraCollectionsToEDMList(edmList, extraList)
Definition: TriggerEDMRun3.py:1228
python.TriggerEDMRun3.tpMap
def tpMap()
Definition: TriggerEDMRun3.py:1183
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.TriggerEDMRun3.getBTagViewName
def getBTagViewName(jetType, jetDetailStr="subresjesgscIS_ftf")
Definition: TriggerEDMRun3.py:106
Trk::split
@ split
Definition: LayerMaterialProperties.h:38