ATLAS Offline Software
PoolCommonConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 
7 def PoolSvcCfg(flags, withCatalogs=False, **kwargs):
9 
10  kwargs.setdefault("MaxFilesOpen", flags.PoolSvc.MaxFilesOpen)
11 
12  if withCatalogs:
13  catalogs = [
14  "apcfile:poolcond/PoolFileCatalog.xml",
15  "apcfile:poolcond/PoolCat_oflcond.xml",
16  ]
17 
18  if not flags.Input.isMC:
19  catalogs += [
20  "apcfile:poolcond/PoolCat_comcond.xml",
21  ]
22 
23  kwargs.setdefault("ReadCatalog", catalogs)
24 
25  acc.addService(CompFactory.PoolSvc(**kwargs))
26  return acc
27 
28 
29 def AthenaPoolCnvSvcCfg(flags, **kwargs):
30  acc = PoolSvcCfg(flags)
31 
32  service = CompFactory.AthenaPoolCnvSvc(**kwargs)
33  acc.addService(service)
34  acc.addService(CompFactory.EvtPersistencySvc("EventPersistencySvc",
35  CnvServices=[service.getFullJobOptName()]))
36  return acc
37 
38 
39 def AthenaPoolAddressProviderSvcCfg(flags, **kwargs):
40  acc = ComponentAccumulator()
41  acc.addService(CompFactory.StoreGateSvc("MetaDataStore"))
42 
43  service = CompFactory.AthenaPoolAddressProviderSvc(**kwargs)
44  acc.addService(service)
45  acc.addService(CompFactory.ProxyProviderSvc(ProviderNames=[service.getFullJobOptName()]))
46  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.PoolCommonConfig.PoolSvcCfg
def PoolSvcCfg(flags, withCatalogs=False, **kwargs)
Definition: PoolCommonConfig.py:7
python.PoolCommonConfig.AthenaPoolCnvSvcCfg
def AthenaPoolCnvSvcCfg(flags, **kwargs)
Definition: PoolCommonConfig.py:29
python.PoolCommonConfig.AthenaPoolAddressProviderSvcCfg
def AthenaPoolAddressProviderSvcCfg(flags, **kwargs)
Definition: PoolCommonConfig.py:39