4 from AthenaCommon.Logging
import logging
5 log = logging.getLogger( __name__ )
7 _allowed_tag_types = [eformat.helper.tagtype_to_string(t)
for t
in eformat.helper.TagType.values.values()]
10 def __init__(self, name, streamType, obeysLumiBlock, forceFullEventBuilding):
11 assert type(name)
is str,
"name has to be str"
12 assert type(streamType)
is str,
"streamType has to be str"
13 assert streamType
in _allowed_tag_types,
"streamType '"+streamType+
"' is not one of "+\
14 "the allowed types: "+
str(_allowed_tag_types)
15 assert type(obeysLumiBlock)
is bool,
"obeysLumiBlock has to be bool"
16 assert type(forceFullEventBuilding)
is bool,
"forceFullEventBuilding has to be bool"
17 self.
__data = [name, streamType, obeysLumiBlock, forceFullEventBuilding]
20 return '({}, obeysLumiBlock={}, forceFullEventBuilding={})'.
format(
42 StreamInfo(
'CosmicMuons',
'physics',
True,
True),
43 StreamInfo(
'CosmicCalo',
'physics',
True,
True),
46 StreamInfo(
'Background',
'physics',
True,
True),
49 StreamInfo(
'EnhancedBias',
'physics',
True,
True),
54 StreamInfo(
'DarkJetPEBTLA',
'physics',
True,
False),
55 StreamInfo(
'FTagPEBTLA',
'physics',
True,
False),
56 StreamInfo(
'EgammaPEBTLA',
'physics',
True,
False),
61 StreamInfo(
'IDMonitoring',
'monitoring',
True,
True),
64 StreamInfo(
'Muon_Calibration',
'calibration',
False,
True),
65 StreamInfo(
'BphysPEB',
'calibration',
True,
False),
66 StreamInfo(
'BeamSpot',
'calibration',
True,
False),
67 StreamInfo(
'LArCells',
'calibration',
False,
False),
68 StreamInfo(
'LArCellsEmpty',
'calibration',
False,
False),
69 StreamInfo(
'LArNoiseBurst',
'calibration',
False,
True),
70 StreamInfo(
'TgcNoiseBurst',
'calibration',
False,
True),
71 StreamInfo(
'CostMonitoring',
'calibration',
False,
False),
72 StreamInfo(
'SCTNoise',
'calibration',
False,
False),
73 StreamInfo(
'PixelNoise',
'calibration',
False,
False),
74 StreamInfo(
'Tile',
'calibration',
False,
False),
75 StreamInfo(
'LArPEB',
'calibration',
False,
False),
76 StreamInfo(
'LArPEBDigitalTrigger',
'calibration',
False,
False),
77 StreamInfo(
'L1TopoMismatches',
'calibration',
False,
True),
78 StreamInfo(
'ZDCCalib',
'calibration',
False,
False),
79 StreamInfo(
'ZDCLEDCalib',
'calibration',
False,
False),
80 StreamInfo(
'ZDCInjCalib',
'calibration',
False,
False),
81 StreamInfo(
'IDCalib',
'calibration',
True,
False),
82 StreamInfo(
'AFPCalib',
'calibration',
False,
False),
83 StreamInfo(
'PixelBeam',
'calibration',
True,
False),
85 StreamInfo(
'L1CaloCalib',
'calibration',
False,
False),
86 StreamInfo(
'NSWTriggerMonitor',
'calibration',
False,
True),
88 StreamInfo(
'HardProbes',
'physics',
True,
True),
91 StreamInfo(
'MinBiasOverlay',
'physics',
True,
True),
96 StreamInfo(
'VBFDelayed' ,
'physics',
True,
True),
97 StreamInfo(
'BphysDelayed',
'physics',
True,
True),
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)
114 elif len(matches) > 1:
115 log.error(
'Stream %s has multiple definitions in StreamInfo', streamName)