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

106def getAllStreams():
107 return _all_streams
108
109

◆ getStreamTag()

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

Definition at line 110 of file StreamInfo.py.

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

◆ getStreamTags()

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

Definition at line 122 of file StreamInfo.py.

122def getStreamTags(streamNames):
123 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.