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 1411 of file SignatureDicts.py.

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

◆ getSignatureInformation()

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

Definition at line 1360 of file SignatureDicts.py.

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

◆ getSignatureNameFromToken()

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

Definition at line 1338 of file SignatureDicts.py.

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

Variable Documentation

◆ AllAllowedTopos_Bphysics

python.HLT.Menu.SignatureDicts.AllAllowedTopos_Bphysics

Definition at line 590 of file SignatureDicts.py.

◆ AllowedBeamspotChainIdentifiers

python.HLT.Menu.SignatureDicts.AllowedBeamspotChainIdentifiers

Definition at line 1220 of file SignatureDicts.py.

◆ AllowedCalibChainIdentifiers

python.HLT.Menu.SignatureDicts.AllowedCalibChainIdentifiers

Definition at line 1081 of file SignatureDicts.py.

◆ AllowedCosmicChainIdentifiers

python.HLT.Menu.SignatureDicts.AllowedCosmicChainIdentifiers

Definition at line 992 of file SignatureDicts.py.

◆ AllowedEBChainIdentifiers

python.HLT.Menu.SignatureDicts.AllowedEBChainIdentifiers

Definition at line 1183 of file SignatureDicts.py.

◆ AllowedMonitorChainIdentifiers

python.HLT.Menu.SignatureDicts.AllowedMonitorChainIdentifiers

Definition at line 1137 of file SignatureDicts.py.

◆ AllowedStreamingChainIdentifiers

python.HLT.Menu.SignatureDicts.AllowedStreamingChainIdentifiers

Definition at line 1036 of file SignatureDicts.py.

◆ AllowedTopos

python.HLT.Menu.SignatureDicts.AllowedTopos

Definition at line 1333 of file SignatureDicts.py.

◆ AllowedTopos_Bphysics

python.HLT.Menu.SignatureDicts.AllowedTopos_Bphysics

Definition at line 572 of file SignatureDicts.py.

◆ AllowedTopos_Bphysics_topoExtra

python.HLT.Menu.SignatureDicts.AllowedTopos_Bphysics_topoExtra

Definition at line 589 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 585 of file SignatureDicts.py.

◆ AllowedTopos_comb

python.HLT.Menu.SignatureDicts.AllowedTopos_comb

Definition at line 1305 of file SignatureDicts.py.

◆ AllowedTopos_e

python.HLT.Menu.SignatureDicts.AllowedTopos_e

Definition at line 756 of file SignatureDicts.py.

◆ AllowedTopos_g

python.HLT.Menu.SignatureDicts.AllowedTopos_g

Definition at line 819 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 514 of file SignatureDicts.py.

◆ AllowedTopos_tau

python.HLT.Menu.SignatureDicts.AllowedTopos_tau

Definition at line 610 of file SignatureDicts.py.

◆ AllowedTopos_xe

python.HLT.Menu.SignatureDicts.AllowedTopos_xe

Definition at line 678 of file SignatureDicts.py.

◆ BeamspotChainParts

python.HLT.Menu.SignatureDicts.BeamspotChainParts

Definition at line 1221 of file SignatureDicts.py.

◆ BeamspotChainParts_Default

python.HLT.Menu.SignatureDicts.BeamspotChainParts_Default

Definition at line 1242 of file SignatureDicts.py.

◆ BeamspotJetChainParts_Default

python.HLT.Menu.SignatureDicts.BeamspotJetChainParts_Default

Definition at line 502 of file SignatureDicts.py.

◆ bJetChainParts_Default

python.HLT.Menu.SignatureDicts.bJetChainParts_Default

Definition at line 495 of file SignatureDicts.py.

◆ BphysicsChainParts

python.HLT.Menu.SignatureDicts.BphysicsChainParts

Definition at line 593 of file SignatureDicts.py.

◆ BphysicsChainParts_Default

python.HLT.Menu.SignatureDicts.BphysicsChainParts_Default

Definition at line 600 of file SignatureDicts.py.

◆ CalibChainParts

python.HLT.Menu.SignatureDicts.CalibChainParts

stramingInfo not use in ChainConfiguration, only to distinguish streaming

Definition at line 1093 of file SignatureDicts.py.

◆ CalibChainParts_Default

python.HLT.Menu.SignatureDicts.CalibChainParts_Default

Definition at line 1114 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 1318 of file SignatureDicts.py.

◆ CombinedChainParts_Default

python.HLT.Menu.SignatureDicts.CombinedChainParts_Default

Definition at line 1323 of file SignatureDicts.py.

◆ CosmicChainParts

python.HLT.Menu.SignatureDicts.CosmicChainParts

Definition at line 996 of file SignatureDicts.py.

◆ CosmicChainParts_Default

python.HLT.Menu.SignatureDicts.CosmicChainParts_Default

Definition at line 1015 of file SignatureDicts.py.

◆ ElectronChainParts

python.HLT.Menu.SignatureDicts.ElectronChainParts

Definition at line 758 of file SignatureDicts.py.

◆ ElectronChainParts_Default

python.HLT.Menu.SignatureDicts.ElectronChainParts_Default

Definition at line 785 of file SignatureDicts.py.

◆ EnhancedBiasChainParts

python.HLT.Menu.SignatureDicts.EnhancedBiasChainParts

Definition at line 1186 of file SignatureDicts.py.

◆ EnhancedBiasChainParts_Default

python.HLT.Menu.SignatureDicts.EnhancedBiasChainParts_Default

Definition at line 1202 of file SignatureDicts.py.

◆ HeavyIonChainParts

python.HLT.Menu.SignatureDicts.HeavyIonChainParts

Definition at line 936 of file SignatureDicts.py.

◆ HeavyIonChainParts_Default

python.HLT.Menu.SignatureDicts.HeavyIonChainParts_Default

Definition at line 963 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 447 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 680 of file SignatureDicts.py.

◆ METChainParts_Default

python.HLT.Menu.SignatureDicts.METChainParts_Default

Definition at line 705 of file SignatureDicts.py.

◆ MinBiasChainParts

python.HLT.Menu.SignatureDicts.MinBiasChainParts

Definition at line 876 of file SignatureDicts.py.

◆ MinBiasChainParts_Default

python.HLT.Menu.SignatureDicts.MinBiasChainParts_Default

Definition at line 908 of file SignatureDicts.py.

◆ MonitorChainParts

python.HLT.Menu.SignatureDicts.MonitorChainParts

Definition at line 1145 of file SignatureDicts.py.

◆ MonitorChainParts_Default

python.HLT.Menu.SignatureDicts.MonitorChainParts_Default

Definition at line 1163 of file SignatureDicts.py.

◆ MuonChainParts

python.HLT.Menu.SignatureDicts.MuonChainParts

Definition at line 520 of file SignatureDicts.py.

◆ MuonChainParts_Default

python.HLT.Menu.SignatureDicts.MuonChainParts_Default

Definition at line 545 of file SignatureDicts.py.

◆ PhotonChainParts

python.HLT.Menu.SignatureDicts.PhotonChainParts

Definition at line 820 of file SignatureDicts.py.

◆ PhotonChainParts_Default

python.HLT.Menu.SignatureDicts.PhotonChainParts_Default

Definition at line 847 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 1039 of file SignatureDicts.py.

◆ StreamingChainParts_Default

python.HLT.Menu.SignatureDicts.StreamingChainParts_Default

Definition at line 1061 of file SignatureDicts.py.

◆ TauChainParts

python.HLT.Menu.SignatureDicts.TauChainParts

Definition at line 613 of file SignatureDicts.py.

◆ TauChainParts_Default

python.HLT.Menu.SignatureDicts.TauChainParts_Default

Definition at line 654 of file SignatureDicts.py.

◆ TEChainParts

python.HLT.Menu.SignatureDicts.TEChainParts

Definition at line 744 of file SignatureDicts.py.

◆ TEChainParts_Default

python.HLT.Menu.SignatureDicts.TEChainParts_Default

Definition at line 749 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 1266 of file SignatureDicts.py.

◆ UnconventionalTrackingChainParts_Default

python.HLT.Menu.SignatureDicts.UnconventionalTrackingChainParts_Default

Definition at line 1284 of file SignatureDicts.py.

◆ XSChainParts

python.HLT.Menu.SignatureDicts.XSChainParts

Definition at line 731 of file SignatureDicts.py.

◆ XSChainParts_Default

python.HLT.Menu.SignatureDicts.XSChainParts_Default

Definition at line 736 of file SignatureDicts.py.

python.HLT.Menu.SignatureDicts.getBasePattern
def getBasePattern()
Definition: SignatureDicts.py:1411
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:1338
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:1360