ATLAS Offline Software
Loading...
Searching...
No Matches
python.HLT.Menu.StreamInfo Namespace Reference

Classes

class  StreamInfo

Functions

 getAllStreams ()
 getStreamTag (streamName)
 getStreamTags (streamNames)

Variables

 log = logging.getLogger( __name__ )
list _allowed_tag_types = [eformat.helper.tagtype_to_string(t) for t in eformat.helper.TagType.values.values()]
list _all_streams

Function Documentation

◆ getAllStreams()

python.HLT.Menu.StreamInfo.getAllStreams ( )

Definition at line 105 of file StreamInfo.py.

105def getAllStreams():
106 return _all_streams
107
108

◆ getStreamTag()

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

Definition at line 109 of file StreamInfo.py.

109def 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()

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

Definition at line 121 of file StreamInfo.py.

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

Variable Documentation

◆ _all_streams

list python.HLT.Menu.StreamInfo._all_streams
protected

Definition at line 39 of file StreamInfo.py.

◆ _allowed_tag_types

list python.HLT.Menu.StreamInfo._allowed_tag_types = [eformat.helper.tagtype_to_string(t) for t in eformat.helper.TagType.values.values()]
protected

Definition at line 7 of file StreamInfo.py.

◆ log

python.HLT.Menu.StreamInfo.log = logging.getLogger( __name__ )

Definition at line 5 of file StreamInfo.py.