7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8 from AthenaConfiguration.ComponentFactory
import CompFactory
12 if not isinstance (poolFiles, list):
13 poolFiles = [poolFiles]
17 ProxyProviderSvc = CompFactory.ProxyProviderSvc
18 pps = ProxyProviderSvc (ProviderNames = [
'CondProxyProvider'])
19 result.addService (pps)
21 CondProxyProvider = CompFactory.CondProxyProvider
22 cpp = CondProxyProvider (InputCollections = poolFiles,
23 ConversionService=
"AthenaPoolSharedIOCnvSvc" if flags.MP.UseSharedReader
or flags.MP.UseSharedWriter
else "AthenaPoolCnvSvc")
24 result.addService (cpp)
29 if __name__ ==
"__main__":
30 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
31 from AthenaConfiguration.Enums
import LHCPeriod
33 flags.Input.Files = []
34 flags.GeoModel.Run = LHCPeriod.Run2
38 acc1.merge (CondProxyProviderCfg (flags,
'file1'))
39 acc1.merge (CondProxyProviderCfg (flags, [
'file2',
'file3']))
40 acc1.printConfig (summariseProps=
True)
41 print (
'CondProxyProvider:', acc1.getService(
'CondProxyProvider'))