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 103 of file StreamInfo.py.

103 def getAllStreams():
104  return _all_streams
105 
106 

◆ getStreamTag()

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

Definition at line 107 of file StreamInfo.py.

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

◆ getStreamTags()

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

Definition at line 119 of file StreamInfo.py.

119 def getStreamTags(streamNames):
120  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:107
python.HLT.Menu.StreamInfo.getAllStreams
def getAllStreams()
Definition: StreamInfo.py:103
python.HLT.Menu.StreamInfo.getStreamTags
def getStreamTags(streamNames)
Definition: StreamInfo.py:119