ATLAS Offline Software
OnlineStreamToFileConfig.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 
7 def OnlineStreamToFileCfg(flags,name='OnlineStreamToFileTool', **kwargs):
9 
10  if "OnlineEventDisplaysSvc" not in kwargs:
11  from EventDisplaysOnline.OnlineEventDisplaysSvcConfig import OnlineEventDisplaysSvcCfg
12  acc.merge(OnlineEventDisplaysSvcCfg(flags))
13  kwargs.setdefault("OnlineEventDisplaysSvc", acc.getService("OnlineEventDisplaysSvc"))
14 
15  kwargs.setdefault("IsOnline", True)
16 
17  streamToFileTool = CompFactory.JiveXML.StreamToFileTool(name, **kwargs)
18  acc.setPrivateTools(streamToFileTool)
19  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
OnlineEventDisplaysSvcConfig.OnlineEventDisplaysSvcCfg
def OnlineEventDisplaysSvcCfg(flags, name="OnlineEventDisplaysSvc", **kwargs)
Definition: OnlineEventDisplaysSvcConfig.py:6
OnlineStreamToFileConfig.OnlineStreamToFileCfg
def OnlineStreamToFileCfg(flags, name='OnlineStreamToFileTool', **kwargs)
Definition: OnlineStreamToFileConfig.py:7