ATLAS Offline Software
Functions | Variables
python.TriggerEDMRun3 Namespace Reference

Functions

def getJetCopyVars (suffix)
 
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
 
 LargeRJetVarsToKeep
 
 LargeRJetVars
 
 VSIVarsToKeep
 
 VSIVars
 
 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
 
 VtxToKeep
 
 VtxVars
 
 L1TopoErrorFlagVars
 
 TauJet_vars
 
 TauJet_vars_str
 
 TauTrack_vars
 
 TauTrack_vars_str
 
 DiTauJet_vars
 
 DiTauJet_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 1264 of file TriggerEDMRun3.py.

1264 def addHLTNavigationToEDMList(flags, edmList, allDecisions, hypoDecisions):
1265  """
1266  Extend TriggerHLTListRun3 with HLT Navigation objects
1267  """
1268 
1269  # HLTNav_* object list is built dynamically during job configuration, here we only define its output targets
1270  HLTNavEDMTargets = ''
1271 
1272  insert_idx = getSafeEDMInsertPosition(edmList)
1273 
1274  if not flags.Trigger.doOnlineNavigationCompactification:
1275  # If we are not compacting the online EDM, then we must write out all of the individual collections
1276  # ESD is added for MC support
1277  HLTNavEDMTargets = 'BS ESD'
1278 
1279  for decisionCollection in allDecisions:
1280  dynamic = '.-' # Exclude dynamic
1281  if decisionCollection in hypoDecisions:
1282  # Include dynamic
1283  dynamic = '.remap_linkColIndices.remap_linkColKeys'
1284  if 'PEBInfoWriter' in decisionCollection:
1285  dynamic += '.PEBROBList.PEBSubDetList'
1286  typeName = 'xAOD::TrigCompositeContainer#{:s}'.format(decisionCollection)
1287  typeNameAux = 'xAOD::TrigCompositeAuxContainer#{:s}Aux{:s}'.format(decisionCollection, dynamic)
1288 
1289  # Cost monitoring only requires a sub-set of the navigation collections.
1290  # (And CANNOT use any slimmed/merged collection, as the container names are important)
1291  thisCollectionHLTNavEDMTargets = HLTNavEDMTargets
1292  if decisionCollection.startswith("HLTNav_FStep") or decisionCollection == "HLTNav_Summary" or decisionCollection.startswith("HLTNav_L1"):
1293  thisCollectionHLTNavEDMTargets += ' CostMonDS'
1294 
1295  edmList[insert_idx:insert_idx] = [
1296  (typeName, thisCollectionHLTNavEDMTargets, 'Steer'),
1297  (typeNameAux, thisCollectionHLTNavEDMTargets, 'Steer')]
1298 
1299 
1300 
1301 

◆ getBTagViewName()

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

Definition at line 117 of file TriggerEDMRun3.py.

117 def getBTagViewName(jetType, jetDetailStr="subresjesgscIS_ftf"):
118  return f"BTagViews_HLT_{jetType}_{jetDetailStr}Views"
119 

◆ getJetCopyVars()

def python.TriggerEDMRun3.getJetCopyVars (   suffix)

Definition at line 44 of file TriggerEDMRun3.py.

44 def getJetCopyVars(suffix):
45  JetCopyVars = [
46  'pt', 'eta', 'phi', 'm',
47  # additional variables also stored in TLA stream for jet cleaning studies
48  # stored for calibrated HLT container in the same way as in the TLA streams
49  "N90Constituents", "LArQuality", "FracSamplingMax", "NegativeE", "HECQuality", "AverageLArQF", "BchCorrCell",
50  'Timing',
51  ]
52  if 'sub' in suffix:
53  JetCopyVars += ['JetPileupScaleMomentum_eta', 'JetPileupScaleMomentum_m', 'JetPileupScaleMomentum_phi', 'JetPileupScaleMomentum_pt']
54  if 'jes' in suffix:
55  JetCopyVars += [
56  'JetEtaJESScaleMomentum_eta', 'JetEtaJESScaleMomentum_m', 'JetEtaJESScaleMomentum_phi', 'JetEtaJESScaleMomentum_pt',
57  'JetGSCScaleMomentum_eta', 'JetGSCScaleMomentum_m', 'JetGSCScaleMomentum_phi', 'JetGSCScaleMomentum_pt'
58  ]
59  if '_ftf' in suffix:
60  JetCopyVars += [
61  'Jvt', 'JvtRpt',
62  # NN JVT -- TrkAug version
63  'NNJvtTrkAugV1','NNJvtTrkAugV1Pass',
64  ]
65  if 'TLA' not in suffix:
66  JetCopyVars += ['RPtTrkPt500','DTrackWidthPt1000', 'DNumTrkPt1000', 'DRPtTrkPt500', 'SumPtTrkOrderedTrackWidthPt1000', 'SumPtTrkOrderedNumTrkPt1000']
67  if 'pf_subresjesgscIS' in suffix:
68  discriminants = ['dips20211116','fastDIPS20211215','GN120230331','tlaGN220240122']
69  JetCopyVars += [f'{disc}_p{flavour}' for disc in discriminants for flavour in 'cub']
70  if 'TLA' not in suffix:
71  JetCopyVars += ['TracksForMinimalJetTag']
72 
73  if 'fastftag' in suffix:
74  discriminants = ['fastDips','fastGN120230327','fastGN120230331','fastGN220240122',]
75  JetCopyVars += [f'{disc}_p{flavour}' for disc in discriminants for flavour in 'cub']
76  JetCopyVars += [f'fastGNTau20240216_p{flavour}' for disc in discriminants for flavour in ['tau','u']]
77  JetCopyVars += [f'fastUHT120250605_p{x}' for x in ["tau" , "u" , "c" , "b"]]
78  JetCopyVars += ['dipz20231122_z','dipz20231122_negLogSigma2']
79  JetCopyVars += ['TracksForMinimalJetTag']
80 
81  TLAJetVarsToKeep = [
82  'ActiveArea', 'ActiveArea4vec_eta', 'ActiveArea4vec_m', 'ActiveArea4vec_phi', 'ActiveArea4vec_pt',
83  'JetConstitScaleMomentum_eta', 'JetConstitScaleMomentum_m', 'JetConstitScaleMomentum_phi', 'JetConstitScaleMomentum_pt',
84  'DetectorEta', 'DetectorPhi', 'EMFrac', 'HECFrac', 'EnergyPerSampling', 'EnergyPerSamplingCaloBased',
85  ]
86  if 'TLA' in suffix:
87  JetCopyVars += TLAJetVarsToKeep
88  if '_ftf' in suffix:
89  JetCopyVars += ['SumPtChargedPFOPt500', 'NumTrkPt1000', 'SumPtTrkPt500', 'TrackWidthPt1000', 'JVFCorr']
90 
91  return '.'.join(JetCopyVars)
92 

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

1243 def getSafeEDMInsertPosition(edm_list):
1244  """
1245  Need to avoid inserting new runtime EDM entries at end of list
1246  as 'allowTruncation' items need to be at end of list for correct
1247  serialisation.
1248  Function returns one position before
1249  first 'allowTruncation' EDM item. If there is no 'allowTruncation'
1250  EDM item, the position returned is the length of the list, i.e. the next
1251  index in the list.
1252  """
1253 
1254  insert_idx = len(edm_list)
1255 
1256  # start at end of list
1257  for i,entry in enumerate(reversed(edm_list)):
1258  if len(entry) < 4 or allowTruncation not in entry[3]:
1259  insert_idx -= i
1260  return insert_idx
1261  return insert_idx
1262 
1263 

◆ getTauIDVars()

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

Definition at line 230 of file TriggerEDMRun3.py.

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

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

1217 def persistent( transient ):
1218  """
1219  Persistent EDM class, for xAOD it is the actual class version
1220 
1221  Uses list defined above. If absent assumes v1
1222  """
1223  if transient in EDMDetailsRun3:
1224  if 'persistent' in EDMDetailsRun3[transient]:
1225  return EDMDetailsRun3[transient]['persistent']
1226  return transient
1227 
1228 

◆ tpMap()

def python.TriggerEDMRun3.tpMap ( )
List

Definition at line 1229 of file TriggerEDMRun3.py.

1229 def tpMap():
1230  """
1231  List
1232  """
1233  l = {}
1234  for tr in EDMDetailsRun3.keys():
1235  if "xAOD" in tr:
1236  continue
1237  l[tr] = persistent(tr)
1238  return l
1239 
1240 # Fn added as simply appending new HLT Nav entries to start of list
1241 # during runtime appears to cause Deserialisation issues (ATR-29945).
1242 # 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 150 of file TriggerEDMRun3.py.

◆ BTagJetOutput

python.TriggerEDMRun3.BTagJetOutput

Definition at line 165 of file TriggerEDMRun3.py.

◆ BTagJetVars

python.TriggerEDMRun3.BTagJetVars

Definition at line 166 of file TriggerEDMRun3.py.

◆ BTagOutput

python.TriggerEDMRun3.BTagOutput

Definition at line 126 of file TriggerEDMRun3.py.

◆ BTagOutput_highLevelTaggers

python.TriggerEDMRun3.BTagOutput_highLevelTaggers

Definition at line 154 of file TriggerEDMRun3.py.

◆ BTagOutput_IP2D

python.TriggerEDMRun3.BTagOutput_IP2D

Definition at line 128 of file TriggerEDMRun3.py.

◆ BTagOutput_IP3D

python.TriggerEDMRun3.BTagOutput_IP3D

Definition at line 129 of file TriggerEDMRun3.py.

◆ BTagOutput_IPxD

python.TriggerEDMRun3.BTagOutput_IPxD

Definition at line 127 of file TriggerEDMRun3.py.

◆ BTagOutput_JetFitter

python.TriggerEDMRun3.BTagOutput_JetFitter

Definition at line 131 of file TriggerEDMRun3.py.

◆ BTagOutput_rnnip

python.TriggerEDMRun3.BTagOutput_rnnip

Definition at line 132 of file TriggerEDMRun3.py.

◆ BTagOutput_SV1

python.TriggerEDMRun3.BTagOutput_SV1

Definition at line 130 of file TriggerEDMRun3.py.

◆ BTagVars

python.TriggerEDMRun3.BTagVars

Definition at line 162 of file TriggerEDMRun3.py.

◆ BTagViewsEMPFlow

python.TriggerEDMRun3.BTagViewsEMPFlow

Definition at line 121 of file TriggerEDMRun3.py.

◆ BTagViewsEMTopo

python.TriggerEDMRun3.BTagViewsEMTopo

Definition at line 120 of file TriggerEDMRun3.py.

◆ dEdxHitToKeep

python.TriggerEDMRun3.dEdxHitToKeep

Definition at line 184 of file TriggerEDMRun3.py.

◆ dEdxHitToKeepBase

python.TriggerEDMRun3.dEdxHitToKeepBase

Definition at line 183 of file TriggerEDMRun3.py.

◆ dEdxHitVars

python.TriggerEDMRun3.dEdxHitVars

Definition at line 187 of file TriggerEDMRun3.py.

◆ dEdxTrkToKeep

python.TriggerEDMRun3.dEdxTrkToKeep

Definition at line 178 of file TriggerEDMRun3.py.

◆ dEdxTrkToKeepBase

python.TriggerEDMRun3.dEdxTrkToKeepBase

Definition at line 177 of file TriggerEDMRun3.py.

◆ dEdxTrkVars

python.TriggerEDMRun3.dEdxTrkVars

Definition at line 181 of file TriggerEDMRun3.py.

◆ DisTrkBDTSelToKeep

python.TriggerEDMRun3.DisTrkBDTSelToKeep

Definition at line 215 of file TriggerEDMRun3.py.

◆ DisTrkBDTSelToKeepBase

python.TriggerEDMRun3.DisTrkBDTSelToKeepBase

Definition at line 212 of file TriggerEDMRun3.py.

◆ DisTrkBDTSelVars

python.TriggerEDMRun3.DisTrkBDTSelVars

Definition at line 218 of file TriggerEDMRun3.py.

◆ DisTrkCandVars

python.TriggerEDMRun3.DisTrkCandVars

Definition at line 210 of file TriggerEDMRun3.py.

◆ DisTrkToKeepIso

python.TriggerEDMRun3.DisTrkToKeepIso

Definition at line 203 of file TriggerEDMRun3.py.

◆ DisTrkToKeepNoIso

python.TriggerEDMRun3.DisTrkToKeepNoIso

Definition at line 197 of file TriggerEDMRun3.py.

◆ DisTrkVars

python.TriggerEDMRun3.DisTrkVars

Definition at line 204 of file TriggerEDMRun3.py.

◆ DiTauJet_vars

python.TriggerEDMRun3.DiTauJet_vars

Definition at line 243 of file TriggerEDMRun3.py.

◆ DiTauJet_vars_str

python.TriggerEDMRun3.DiTauJet_vars_str

Definition at line 245 of file TriggerEDMRun3.py.

◆ EDMDetailsRun3

python.TriggerEDMRun3.EDMDetailsRun3

event info

Definition at line 1202 of file TriggerEDMRun3.py.

◆ ElToKeep

python.TriggerEDMRun3.ElToKeep

Definition at line 108 of file TriggerEDMRun3.py.

◆ ElVars

python.TriggerEDMRun3.ElVars

Definition at line 109 of file TriggerEDMRun3.py.

◆ HIJetVars

python.TriggerEDMRun3.HIJetVars

Definition at line 124 of file TriggerEDMRun3.py.

◆ HIJetVarsToKeep

python.TriggerEDMRun3.HIJetVarsToKeep

Definition at line 123 of file TriggerEDMRun3.py.

◆ hitDVToKeep

python.TriggerEDMRun3.hitDVToKeep

Definition at line 170 of file TriggerEDMRun3.py.

◆ hitDVToKeepBase

python.TriggerEDMRun3.hitDVToKeepBase

Definition at line 168 of file TriggerEDMRun3.py.

◆ hitDVVars

python.TriggerEDMRun3.hitDVVars

Definition at line 173 of file TriggerEDMRun3.py.

◆ HPtdEdxTrkToKeep

python.TriggerEDMRun3.HPtdEdxTrkToKeep

Definition at line 192 of file TriggerEDMRun3.py.

◆ HPtdEdxTrkToKeepBase

python.TriggerEDMRun3.HPtdEdxTrkToKeepBase

Definition at line 189 of file TriggerEDMRun3.py.

◆ HPtdEdxTrkVars

python.TriggerEDMRun3.HPtdEdxTrkVars

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

◆ LargeRJetVars

python.TriggerEDMRun3.LargeRJetVars

Definition at line 96 of file TriggerEDMRun3.py.

◆ LargeRJetVarsToKeep

python.TriggerEDMRun3.LargeRJetVarsToKeep

Definition at line 93 of file TriggerEDMRun3.py.

◆ MuRoiToKeep

python.TriggerEDMRun3.MuRoiToKeep

Definition at line 249 of file TriggerEDMRun3.py.

◆ MuRoiVars

python.TriggerEDMRun3.MuRoiVars

Definition at line 250 of file TriggerEDMRun3.py.

◆ PhToKeep

python.TriggerEDMRun3.PhToKeep

Definition at line 111 of file TriggerEDMRun3.py.

◆ PhVars

python.TriggerEDMRun3.PhVars

Definition at line 113 of file TriggerEDMRun3.py.

◆ TauJet_vars

python.TriggerEDMRun3.TauJet_vars

Definition at line 234 of file TriggerEDMRun3.py.

◆ TauJet_vars_str

python.TriggerEDMRun3.TauJet_vars_str

Definition at line 236 of file TriggerEDMRun3.py.

◆ TauTrack_vars

python.TriggerEDMRun3.TauTrack_vars

Definition at line 238 of file TriggerEDMRun3.py.

◆ TauTrack_vars_str

python.TriggerEDMRun3.TauTrack_vars_str

Definition at line 239 of file TriggerEDMRun3.py.

◆ three_output_taggers

python.TriggerEDMRun3.three_output_taggers

Definition at line 135 of file TriggerEDMRun3.py.

◆ TriggerHLTListRun3

python.TriggerEDMRun3.TriggerHLTListRun3

Definition at line 281 of file TriggerEDMRun3.py.

◆ varToRemoveFromAODSLIM

python.TriggerEDMRun3.varToRemoveFromAODSLIM

Definition at line 260 of file TriggerEDMRun3.py.

◆ VSIVars

python.TriggerEDMRun3.VSIVars

Definition at line 104 of file TriggerEDMRun3.py.

◆ VSIVarsToKeep

python.TriggerEDMRun3.VSIVarsToKeep

Definition at line 98 of file TriggerEDMRun3.py.

◆ VtxToKeep

python.TriggerEDMRun3.VtxToKeep

Definition at line 221 of file TriggerEDMRun3.py.

◆ VtxVars

python.TriggerEDMRun3.VtxVars

Definition at line 222 of file TriggerEDMRun3.py.

◆ x

python.TriggerEDMRun3.x

Definition at line 128 of file TriggerEDMRun3.py.

python.TriggerEDMRun3.persistent
def persistent(transient)
Definition: TriggerEDMRun3.py:1217
vtune_athena.format
format
Definition: vtune_athena.py:14
python.TriggerEDMRun3.getJetCopyVars
def getJetCopyVars(suffix)
Definition: TriggerEDMRun3.py:44
python.TriggerEDMRun3.addHLTNavigationToEDMList
def addHLTNavigationToEDMList(flags, edmList, allDecisions, hypoDecisions)
Definition: TriggerEDMRun3.py:1264
python.TriggerEDMRun3.getTauIDVars
list[str] getTauIDVars(str name)
Definition: TriggerEDMRun3.py:230
python.TriggerEDMRun3.tpMap
def tpMap()
Definition: TriggerEDMRun3.py:1229
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.getSafeEDMInsertPosition
def getSafeEDMInsertPosition(edm_list)
Definition: TriggerEDMRun3.py:1243
python.TriggerEDMRun3.getBTagViewName
def getBTagViewName(jetType, jetDetailStr="subresjesgscIS_ftf")
Definition: TriggerEDMRun3.py:117