ATLAS Offline Software
Classes | Functions | Variables
python.HLT.Menu.SignatureDicts Namespace Reference

Classes

class  ChainStore
 

Functions

def getSignatureNameFromToken (chainpart)
 
def getSignatureInformation (signature)
 
def getBasePattern ()
 

Variables

 log
 
 SliceIDDict
 
 ChainDictTemplate
 
 TestChainParts
 
 TestChainParts_Default
 
 AllowedTopos_jet
 
 JetRecoKeys
 
 JetChainParts
 
 JetChainParts_Default
 
 bJetChainParts_Default
 
 BeamspotJetChainParts_Default
 
 AllowedTopos_mu
 
 MuonChainParts
 
 MuonChainParts_Default
 
 AllowedTopos_Bphysics
 
 AllowedTopos_Bphysics_topoVariant
 TO BE REMOVED ONCE IMPLEMENTED IN SIGNATURE CODE topoVariants. More...
 
 AllowedTopos_Bphysics_topoExtra
 
 AllAllowedTopos_Bphysics
 
 BphysicsChainParts
 
 BphysicsChainParts_Default
 
 AllowedTopos_tau
 
 TauChainParts
 
 TauChainParts_Default
 
 AllowedTopos_xe
 
 METChainParts
 
 METChainParts_Default
 
 XSChainParts
 
 XSChainParts_Default
 
 TEChainParts
 
 TEChainParts_Default
 
 AllowedTopos_e
 
 ElectronChainParts
 
 ElectronChainParts_Default
 
 AllowedTopos_g
 
 PhotonChainParts
 
 PhotonChainParts_Default
 
 MinBiasChainParts
 
 MinBiasChainParts_Default
 
 HeavyIonChainParts
 
 HeavyIonChainParts_Default
 
 AllowedCosmicChainIdentifiers
 
 CosmicChainParts
 
 CosmicChainParts_Default
 
 AllowedStreamingChainIdentifiers
 
 StreamingChainParts
 
 StreamingChainParts_Default
 
 AllowedCalibChainIdentifiers
 
 CalibChainParts
 stramingInfo not use in ChainConfiguration, only to distinguish streaming More...
 
 CalibChainParts_Default
 
 AllowedMonitorChainIdentifiers
 
 MonitorChainParts
 
 MonitorChainParts_Default
 
 AllowedEBChainIdentifiers
 
 EnhancedBiasChainParts
 
 EnhancedBiasChainParts_Default
 
 AllowedBeamspotChainIdentifiers
 
 BeamspotChainParts
 
 BeamspotChainParts_Default
 
 UnconventionalTrackingChainParts
 
 UnconventionalTrackingChainParts_Default
 
 AllowedTopos_comb
 
 CombinedChainParts
 
 CombinedChainParts_Default
 
 AllowedTopos
 

Function Documentation

◆ getBasePattern()

def python.HLT.Menu.SignatureDicts.getBasePattern ( )

Definition at line 1406 of file SignatureDicts.py.

1406 def getBasePattern():
1407  import re
1408  allTrigTypes = []
1409  for v in SliceIDDict.values():
1410  if isinstance(v, list):
1411  allTrigTypes += v
1412  else:
1413  allTrigTypes.append(v)
1414 
1415  possibleTT = '|'.join(allTrigTypes)
1416  pattern = re.compile(r"(?P<multiplicity>\d*)(?P<trigType>(%s))(?P<threshold>\d+)(?P<extra>\w*)" % (possibleTT))
1417  return pattern

◆ getSignatureInformation()

def python.HLT.Menu.SignatureDicts.getSignatureInformation (   signature)

Definition at line 1355 of file SignatureDicts.py.

1355 def getSignatureInformation(signature):
1356  if signature == 'Electron':
1357  return [ElectronChainParts_Default, ElectronChainParts]
1358  if signature == 'Photon':
1359  return [PhotonChainParts_Default, PhotonChainParts]
1360  if signature == "Jet":
1361  return [JetChainParts_Default, JetChainParts]
1362  if signature == "Bjet":
1363  return [bJetChainParts_Default, JetChainParts]
1364  if signature == "Beamspot_Jet":
1365  return [BeamspotJetChainParts_Default, JetChainParts]
1366  if signature == "Tau":
1367  return [TauChainParts_Default, TauChainParts]
1368  if (signature == "Muon"):
1369  return [MuonChainParts_Default, MuonChainParts]
1370  if (signature == "Bphysics"):
1371  return [BphysicsChainParts_Default, BphysicsChainParts]
1372  if (signature == "Combined"):
1373  return [CombinedChainParts_Default, CombinedChainParts]
1374  if signature == "MET":
1375  return [METChainParts_Default, METChainParts]
1376  if signature == "XS":
1377  return [XSChainParts_Default, XSChainParts]
1378  if signature == "TE":
1379  return [TEChainParts_Default, TEChainParts]
1380  if signature == "MinBias":
1381  return [MinBiasChainParts_Default, MinBiasChainParts]
1382  if signature == "HeavyIon":
1383  return [HeavyIonChainParts_Default, HeavyIonChainParts]
1384  if signature == "Cosmic":
1385  return [CosmicChainParts_Default, CosmicChainParts]
1386  if signature == "Calib":
1387  return [CalibChainParts_Default, CalibChainParts]
1388  if signature == "Streaming":
1389  return [StreamingChainParts_Default, StreamingChainParts]
1390  if signature == "Monitor":
1391  return [MonitorChainParts_Default, MonitorChainParts]
1392  if signature == "Beamspot":
1393  return [BeamspotChainParts_Default, BeamspotChainParts]
1394  if signature == "EnhancedBias":
1395  return [EnhancedBiasChainParts_Default, EnhancedBiasChainParts]
1396  if signature == "UnconventionalTracking":
1397  return [UnconventionalTrackingChainParts_Default, UnconventionalTrackingChainParts]
1398  if signature == "Test":
1399  return [TestChainParts_Default, TestChainParts]
1400  else:
1401  raise RuntimeError("ERROR Cannot find corresponding dictionary for signature", signature)
1402 
1403 #==========================================================
1404 # Analysis the base pattern: <mult><signatureType><threshold><extraInfo>
1405 #==========================================================

◆ getSignatureNameFromToken()

def python.HLT.Menu.SignatureDicts.getSignatureNameFromToken (   chainpart)

Definition at line 1333 of file SignatureDicts.py.

1333 def getSignatureNameFromToken(chainpart):
1334  import re
1335  theMatchingTokens = []
1336  reverseSliceIDDict = { subvalue: key for key, value in SliceIDDict.items() for subvalue in ([value] if not isinstance(value, list) else value) } #reversed SliceIDDict
1337  for sig,token in SliceIDDict.items():
1338  token = token if isinstance(token, list) else [token]
1339  for subtoken in token:
1340  if re.match(r'^\d*'+subtoken+r'\d*\w*$', chainpart):
1341  theMatchingTokens += [subtoken]
1342  if len(theMatchingTokens) > 0:
1343  return reverseSliceIDDict[sorted(theMatchingTokens, key=lambda x: len(x), reverse=True)[0]]
1344  else:
1345  log.error('No signature matching chain part %s was found.', chainpart)
1346 
1347  raise Exception('[getSignatureNameFromToken] Cannot find signature from chain name, exiting.')
1348 
1349  return False
1350 
1351 
1352 #==========================================================
1353 # Signature dictionaries to use
1354 #==========================================================

Variable Documentation

◆ AllAllowedTopos_Bphysics

python.HLT.Menu.SignatureDicts.AllAllowedTopos_Bphysics

Definition at line 585 of file SignatureDicts.py.

◆ AllowedBeamspotChainIdentifiers

python.HLT.Menu.SignatureDicts.AllowedBeamspotChainIdentifiers

Definition at line 1215 of file SignatureDicts.py.

◆ AllowedCalibChainIdentifiers

python.HLT.Menu.SignatureDicts.AllowedCalibChainIdentifiers

Definition at line 1076 of file SignatureDicts.py.

◆ AllowedCosmicChainIdentifiers

python.HLT.Menu.SignatureDicts.AllowedCosmicChainIdentifiers

Definition at line 987 of file SignatureDicts.py.

◆ AllowedEBChainIdentifiers

python.HLT.Menu.SignatureDicts.AllowedEBChainIdentifiers

Definition at line 1178 of file SignatureDicts.py.

◆ AllowedMonitorChainIdentifiers

python.HLT.Menu.SignatureDicts.AllowedMonitorChainIdentifiers

Definition at line 1132 of file SignatureDicts.py.

◆ AllowedStreamingChainIdentifiers

python.HLT.Menu.SignatureDicts.AllowedStreamingChainIdentifiers

Definition at line 1031 of file SignatureDicts.py.

◆ AllowedTopos

python.HLT.Menu.SignatureDicts.AllowedTopos

Definition at line 1328 of file SignatureDicts.py.

◆ AllowedTopos_Bphysics

python.HLT.Menu.SignatureDicts.AllowedTopos_Bphysics

Definition at line 567 of file SignatureDicts.py.

◆ AllowedTopos_Bphysics_topoExtra

python.HLT.Menu.SignatureDicts.AllowedTopos_Bphysics_topoExtra

Definition at line 584 of file SignatureDicts.py.

◆ AllowedTopos_Bphysics_topoVariant

python.HLT.Menu.SignatureDicts.AllowedTopos_Bphysics_topoVariant

TO BE REMOVED ONCE IMPLEMENTED IN SIGNATURE CODE topoVariants.

Remove until here############

Definition at line 580 of file SignatureDicts.py.

◆ AllowedTopos_comb

python.HLT.Menu.SignatureDicts.AllowedTopos_comb

Definition at line 1300 of file SignatureDicts.py.

◆ AllowedTopos_e

python.HLT.Menu.SignatureDicts.AllowedTopos_e

Definition at line 751 of file SignatureDicts.py.

◆ AllowedTopos_g

python.HLT.Menu.SignatureDicts.AllowedTopos_g

Definition at line 814 of file SignatureDicts.py.

◆ AllowedTopos_jet

python.HLT.Menu.SignatureDicts.AllowedTopos_jet

Definition at line 107 of file SignatureDicts.py.

◆ AllowedTopos_mu

python.HLT.Menu.SignatureDicts.AllowedTopos_mu

Definition at line 509 of file SignatureDicts.py.

◆ AllowedTopos_tau

python.HLT.Menu.SignatureDicts.AllowedTopos_tau

Definition at line 605 of file SignatureDicts.py.

◆ AllowedTopos_xe

python.HLT.Menu.SignatureDicts.AllowedTopos_xe

Definition at line 673 of file SignatureDicts.py.

◆ BeamspotChainParts

python.HLT.Menu.SignatureDicts.BeamspotChainParts

Definition at line 1216 of file SignatureDicts.py.

◆ BeamspotChainParts_Default

python.HLT.Menu.SignatureDicts.BeamspotChainParts_Default

Definition at line 1237 of file SignatureDicts.py.

◆ BeamspotJetChainParts_Default

python.HLT.Menu.SignatureDicts.BeamspotJetChainParts_Default

Definition at line 497 of file SignatureDicts.py.

◆ bJetChainParts_Default

python.HLT.Menu.SignatureDicts.bJetChainParts_Default

Definition at line 490 of file SignatureDicts.py.

◆ BphysicsChainParts

python.HLT.Menu.SignatureDicts.BphysicsChainParts

Definition at line 588 of file SignatureDicts.py.

◆ BphysicsChainParts_Default

python.HLT.Menu.SignatureDicts.BphysicsChainParts_Default

Definition at line 595 of file SignatureDicts.py.

◆ CalibChainParts

python.HLT.Menu.SignatureDicts.CalibChainParts

stramingInfo not use in ChainConfiguration, only to distinguish streaming

Definition at line 1088 of file SignatureDicts.py.

◆ CalibChainParts_Default

python.HLT.Menu.SignatureDicts.CalibChainParts_Default

Definition at line 1109 of file SignatureDicts.py.

◆ ChainDictTemplate

python.HLT.Menu.SignatureDicts.ChainDictTemplate

Definition at line 55 of file SignatureDicts.py.

◆ CombinedChainParts

python.HLT.Menu.SignatureDicts.CombinedChainParts

Definition at line 1313 of file SignatureDicts.py.

◆ CombinedChainParts_Default

python.HLT.Menu.SignatureDicts.CombinedChainParts_Default

Definition at line 1318 of file SignatureDicts.py.

◆ CosmicChainParts

python.HLT.Menu.SignatureDicts.CosmicChainParts

Definition at line 991 of file SignatureDicts.py.

◆ CosmicChainParts_Default

python.HLT.Menu.SignatureDicts.CosmicChainParts_Default

Definition at line 1010 of file SignatureDicts.py.

◆ ElectronChainParts

python.HLT.Menu.SignatureDicts.ElectronChainParts

Definition at line 753 of file SignatureDicts.py.

◆ ElectronChainParts_Default

python.HLT.Menu.SignatureDicts.ElectronChainParts_Default

Definition at line 780 of file SignatureDicts.py.

◆ EnhancedBiasChainParts

python.HLT.Menu.SignatureDicts.EnhancedBiasChainParts

Definition at line 1181 of file SignatureDicts.py.

◆ EnhancedBiasChainParts_Default

python.HLT.Menu.SignatureDicts.EnhancedBiasChainParts_Default

Definition at line 1197 of file SignatureDicts.py.

◆ HeavyIonChainParts

python.HLT.Menu.SignatureDicts.HeavyIonChainParts

Definition at line 931 of file SignatureDicts.py.

◆ HeavyIonChainParts_Default

python.HLT.Menu.SignatureDicts.HeavyIonChainParts_Default

Definition at line 958 of file SignatureDicts.py.

◆ JetChainParts

python.HLT.Menu.SignatureDicts.JetChainParts

Definition at line 112 of file SignatureDicts.py.

◆ JetChainParts_Default

python.HLT.Menu.SignatureDicts.JetChainParts_Default

Definition at line 442 of file SignatureDicts.py.

◆ JetRecoKeys

python.HLT.Menu.SignatureDicts.JetRecoKeys

Definition at line 110 of file SignatureDicts.py.

◆ log

python.HLT.Menu.SignatureDicts.log

Definition at line 3 of file SignatureDicts.py.

◆ METChainParts

python.HLT.Menu.SignatureDicts.METChainParts

Definition at line 675 of file SignatureDicts.py.

◆ METChainParts_Default

python.HLT.Menu.SignatureDicts.METChainParts_Default

Definition at line 700 of file SignatureDicts.py.

◆ MinBiasChainParts

python.HLT.Menu.SignatureDicts.MinBiasChainParts

Definition at line 871 of file SignatureDicts.py.

◆ MinBiasChainParts_Default

python.HLT.Menu.SignatureDicts.MinBiasChainParts_Default

Definition at line 903 of file SignatureDicts.py.

◆ MonitorChainParts

python.HLT.Menu.SignatureDicts.MonitorChainParts

Definition at line 1140 of file SignatureDicts.py.

◆ MonitorChainParts_Default

python.HLT.Menu.SignatureDicts.MonitorChainParts_Default

Definition at line 1158 of file SignatureDicts.py.

◆ MuonChainParts

python.HLT.Menu.SignatureDicts.MuonChainParts

Definition at line 515 of file SignatureDicts.py.

◆ MuonChainParts_Default

python.HLT.Menu.SignatureDicts.MuonChainParts_Default

Definition at line 540 of file SignatureDicts.py.

◆ PhotonChainParts

python.HLT.Menu.SignatureDicts.PhotonChainParts

Definition at line 815 of file SignatureDicts.py.

◆ PhotonChainParts_Default

python.HLT.Menu.SignatureDicts.PhotonChainParts_Default

Definition at line 842 of file SignatureDicts.py.

◆ SliceIDDict

python.HLT.Menu.SignatureDicts.SliceIDDict

Definition at line 11 of file SignatureDicts.py.

◆ StreamingChainParts

python.HLT.Menu.SignatureDicts.StreamingChainParts

Definition at line 1034 of file SignatureDicts.py.

◆ StreamingChainParts_Default

python.HLT.Menu.SignatureDicts.StreamingChainParts_Default

Definition at line 1056 of file SignatureDicts.py.

◆ TauChainParts

python.HLT.Menu.SignatureDicts.TauChainParts

Definition at line 608 of file SignatureDicts.py.

◆ TauChainParts_Default

python.HLT.Menu.SignatureDicts.TauChainParts_Default

Definition at line 649 of file SignatureDicts.py.

◆ TEChainParts

python.HLT.Menu.SignatureDicts.TEChainParts

Definition at line 739 of file SignatureDicts.py.

◆ TEChainParts_Default

python.HLT.Menu.SignatureDicts.TEChainParts_Default

Definition at line 744 of file SignatureDicts.py.

◆ TestChainParts

python.HLT.Menu.SignatureDicts.TestChainParts

Definition at line 75 of file SignatureDicts.py.

◆ TestChainParts_Default

python.HLT.Menu.SignatureDicts.TestChainParts_Default

Definition at line 91 of file SignatureDicts.py.

◆ UnconventionalTrackingChainParts

python.HLT.Menu.SignatureDicts.UnconventionalTrackingChainParts

Definition at line 1261 of file SignatureDicts.py.

◆ UnconventionalTrackingChainParts_Default

python.HLT.Menu.SignatureDicts.UnconventionalTrackingChainParts_Default

Definition at line 1279 of file SignatureDicts.py.

◆ XSChainParts

python.HLT.Menu.SignatureDicts.XSChainParts

Definition at line 726 of file SignatureDicts.py.

◆ XSChainParts_Default

python.HLT.Menu.SignatureDicts.XSChainParts_Default

Definition at line 731 of file SignatureDicts.py.

python.HLT.Menu.SignatureDicts.getBasePattern
def getBasePattern()
Definition: SignatureDicts.py:1406
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename T::value_type > sorted(T begin, T end)
Helper function to create a sorted vector from an unsorted one.
python.HLT.Menu.SignatureDicts.getSignatureNameFromToken
def getSignatureNameFromToken(chainpart)
Definition: SignatureDicts.py:1333
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.HLT.Menu.SignatureDicts.getSignatureInformation
def getSignatureInformation(signature)
Definition: SignatureDicts.py:1355