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

Classes

class  StreamInfo
 

Functions

def getAllStreams ()
 
def getStreamTag (streamName)
 
def getStreamTags (streamNames)
 

Variables

 log
 
 _allowed_tag_types
 
 _all_streams
 

Function Documentation

◆ getAllStreams()

def python.HLT.Menu.StreamInfo.getAllStreams ( )

Definition at line 105 of file StreamInfo.py.

105 def getAllStreams():
106  return _all_streams
107 
108 

◆ getStreamTag()

def python.HLT.Menu.StreamInfo.getStreamTag (   streamName)

Definition at line 109 of file StreamInfo.py.

109 def getStreamTag(streamName):
110  matches = [s for s in _all_streams if s.name() == streamName]
111  if len(matches) == 0:
112  log.error('Stream %s is not defined in StreamInfo', streamName)
113  return None
114  elif len(matches) > 1:
115  log.error('Stream %s has multiple definitions in StreamInfo', streamName)
116  return None
117  else:
118  return matches[0]
119 
120 

◆ getStreamTags()

def python.HLT.Menu.StreamInfo.getStreamTags (   streamNames)

Definition at line 121 of file StreamInfo.py.

121 def getStreamTags(streamNames):
122  return [getStreamTag(name) for name in streamNames]

Variable Documentation

◆ _all_streams

python.HLT.Menu.StreamInfo._all_streams
private

Definition at line 39 of file StreamInfo.py.

◆ _allowed_tag_types

python.HLT.Menu.StreamInfo._allowed_tag_types
private

Definition at line 7 of file StreamInfo.py.

◆ log

python.HLT.Menu.StreamInfo.log

Definition at line 5 of file StreamInfo.py.

python.HLT.Menu.StreamInfo.getStreamTag
def getStreamTag(streamName)
Definition: StreamInfo.py:109
python.HLT.Menu.StreamInfo.getAllStreams
def getAllStreams()
Definition: StreamInfo.py:105
python.HLT.Menu.StreamInfo.getStreamTags
def getStreamTags(streamNames)
Definition: StreamInfo.py:121