ATLAS Offline Software
EmonByteStreamConfig.py
Go to the documentation of this file.
1 #
2 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 #
4 
5 # NB: This file is similar and has a corresponding role to ByteStreamCnvSvc.ByteStreamConfig
6 # and TrigByteStreamCnvSvc.TrigByteStreamConfig
7 
8 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
9 from AthenaConfiguration.ComponentFactory import CompFactory
10 from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
11 
12 def EmonByteStreamCfg(flags, type_names=[]):
13  acc = ComponentAccumulator()
14 
15  bytestream_conversion = CompFactory.ByteStreamCnvSvc()
16  acc.addService(bytestream_conversion, primary=True)
17 
18  bytestream_input = CompFactory.ByteStreamEmonInputSvc("ByteStreamInputSvc")
19  acc.addService(bytestream_input)
20 
21  event_selector = CompFactory.EventSelectorByteStream(
22  name='EventSelector',
23  ByteStreamInputSvc=bytestream_input.name,
24  FileBased=False)
25  acc.addService(event_selector)
26  acc.setAppProperty("EvtSel", event_selector.name)
27 
28  event_persistency = CompFactory.EvtPersistencySvc(
29  name="EventPersistencySvc",
30  CnvServices=[bytestream_conversion.name])
31  acc.addService(event_persistency)
32 
33  address_provider = CompFactory.ByteStreamAddressProviderSvc(
34  TypeNames=type_names)
35  acc.addService(address_provider)
36 
37  proxy = CompFactory.ProxyProviderSvc()
38  proxy.ProviderNames += [address_provider.name]
39  acc.addService(proxy)
40 
41  acc.merge(SGInputLoaderCfg(flags, address_provider.TypeNames))
42 
43  return acc
EmonByteStreamConfig.EmonByteStreamCfg
def EmonByteStreamCfg(flags, type_names=[])
Definition: EmonByteStreamConfig.py:12
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7