ATLAS Offline Software
OnlineStreamToServerConfig.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 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def OnlineStreamToServerCfg(flags, name='OnlineStreamToFileTool', **kwargs):
8 
9  if "ExternalONCRPCServerSvc" not in kwargs:
10  from JiveXML.ExternalONCRPCServerSvcConfig import ExternalONCRPCServerSvcCfg
11  acc.merge(ExternalONCRPCServerSvcCfg(flags))
12  kwargs.setdefault("ExternalONCRPCServerSvc", acc.getService("ExternalONCRPCServerSvc"))
13 
14  if "OnlineEventDisplaysSvc" not in kwargs:
15  from EventDisplaysOnline.OnlineEventDisplaysSvcConfig import OnlineEventDisplaysSvcCfg
16  acc.merge(OnlineEventDisplaysSvcCfg(flags))
17  kwargs.setdefault("OnlineEventDisplaysSvc", acc.getService("OnlineEventDisplaysSvc"))
18 
19  kwargs.setdefault("StreamName", ".Unknown")
20 
21  streamToServerTool = CompFactory.JiveXML.StreamToServerTool(name, **kwargs)
22 
23  acc.setPrivateTools(streamToServerTool)
24 
25  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
OnlineStreamToServerConfig.OnlineStreamToServerCfg
def OnlineStreamToServerCfg(flags, name='OnlineStreamToFileTool', **kwargs)
Definition: OnlineStreamToServerConfig.py:6
OnlineEventDisplaysSvcConfig.OnlineEventDisplaysSvcCfg
def OnlineEventDisplaysSvcCfg(flags, name="OnlineEventDisplaysSvc", **kwargs)
Definition: OnlineEventDisplaysSvcConfig.py:6
ExternalONCRPCServerSvcConfig.ExternalONCRPCServerSvcCfg
def ExternalONCRPCServerSvcCfg(flags)
Definition: ExternalONCRPCServerSvcConfig.py:6