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 result.addService (cpp)
28 if __name__ ==
"__main__":
29 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
30 from AthenaConfiguration.Enums
import LHCPeriod
32 flags.Input.Files = []
33 flags.GeoModel.Run = LHCPeriod.Run2
37 acc1.merge (CondProxyProviderCfg (flags,
'file1'))
38 acc1.merge (CondProxyProviderCfg (flags, [
'file2',
'file3']))
39 acc1.printConfig (summariseProps=
True)
40 print (
'CondProxyProvider:', acc1.getService(
'CondProxyProvider'))