ATLAS Offline Software
graphics/EventDisplaysOnline/python/ByteStreamConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 
5 def ByteStreamCfg(flags, **kwargs):
6 
8 
9  from ByteStreamEmonSvc.EmonByteStreamConfig import EmonByteStreamCfg
10  acc.merge(EmonByteStreamCfg(flags))
11 
12  bytestreamInput = acc.getService("ByteStreamInputSvc")
13  bytestreamInput.Partition = flags.OnlineEventDisplays.PartitionName
14  bytestreamInput.GroupName = "EventDisplaysOnline"
15  bytestreamInput.PublishName = "EventDisplays"
16  bytestreamInput.Key = "dcm"
17  bytestreamInput.KeyCount = 1
18  bytestreamInput.Timeout = 600000
19  bytestreamInput.UpdatePeriod = 200
20  bytestreamInput.BufferSize = 10 # three times of keycount for beam splashes
21  bytestreamInput.ISServer = '' # Disable histogramming
22  bytestreamInput.StreamNames = flags.OnlineEventDisplays.TriggerStreams
23  #bytestreamInput.StreamType = "physics" #comment out for all streams, e.g. if you also want claibration streams
24  bytestreamInput.StreamLogic = "Or"
25 
26  if flags.OnlineEventDisplays.BeamSplashMode:
27  bytestreamInput.KeyCount = 62 # equal or greater than the number of DCMs for beam splashes
28  bytestreamInput.BufferSize = 186 # three times of keycount for beam splashes
29  bytestreamInput.Timeout = 144000000 #(40 hrs) for beam splashes
30  bytestreamInput.StreamType = "physics" #if trigger fails it will go to debug_HltError
31 
32  if flags.OnlineEventDisplays.PartitionName != 'ATLAS':
33  bytestreamInput.KeyValue = [ 'Test_emon_push' ]
34  bytestreamInput.KeyCount = 1
35 
36  return acc
EmonByteStreamConfig.EmonByteStreamCfg
def EmonByteStreamCfg(flags, type_names=[])
Definition: EmonByteStreamConfig.py:12
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ByteStreamConfig.ByteStreamCfg
def ByteStreamCfg(flags, **kwargs)
Definition: graphics/EventDisplaysOnline/python/ByteStreamConfig.py:5