ATLAS Offline Software
Loading...
Searching...
No Matches
python.PoolReadConfig Namespace Reference

Functions

 PoolReadCfg (flags)

Function Documentation

◆ PoolReadCfg()

PoolReadCfg ( flags)
Creates a ComponentAccumulator instance containing the
athena services required for POOL file reading

Definition at line 7 of file PoolReadConfig.py.

7def PoolReadCfg(flags):
8 """
9 Creates a ComponentAccumulator instance containing the
10 athena services required for POOL file reading
11 """
12
13 result = ComponentAccumulator()
14
15 if flags.MP.UseSharedReader or flags.MP.UseSharedWriter:
16 from AthenaPoolCnvSvc.PoolCommonConfig import AthenaPoolSharedIOCnvSvcCfg
17 result.merge(AthenaPoolSharedIOCnvSvcCfg(flags, InputPoolAttributes=["DatabaseName = '*'; ContainerName = 'CollectionTree'; TREE_CACHE = '-1'"]))
18 elif flags.PoolSvc.PersSvcPerInputType: # Switch off caching when using many TFiles
19 from AthenaPoolCnvSvc.PoolCommonConfig import AthenaPoolCnvSvcCfg
20 result.merge(AthenaPoolCnvSvcCfg(flags, InputPoolAttributes=["DatabaseName = '*'; ContainerName = 'CollectionTree'; TREE_CACHE = '0'"]))
21 else:
22 from AthenaPoolCnvSvc.PoolCommonConfig import AthenaPoolCnvSvcCfg
23 result.merge(AthenaPoolCnvSvcCfg(flags, InputPoolAttributes=["DatabaseName = '*'; ContainerName = 'CollectionTree'; TREE_CACHE = '-1'"]))
24
25 # Suppress ROOT warnings about old I/O classes.
26 from AthenaServices.ROOTMessageFilterSvcConfig import ROOTMessageFilterSvcCfg
27 result.merge(ROOTMessageFilterSvcCfg(flags,
28 SuppressionRules=[('TClass::Init',
29 '.*DataHeader.*_p[12].*',
30 ROOT.kWarning),
31 ('TClass::Init',
32 '.*PoolToken_p1.*',
33 ROOT.kWarning)]))
34
35 from EventSelectorAthenaPool.AthenaPoolAddressProviderSvcConfig import AthenaPoolAddressProviderSvcCfg
36 result.merge(AthenaPoolAddressProviderSvcCfg(flags))
37 from EventSelectorAthenaPool.EventSelectorAthenaPoolConfig import EventSelectorAthenaPoolCfg
38 result.merge(EventSelectorAthenaPoolCfg(flags))
39 evSel = result.getService("EventSelector")
40
41 result.setAppProperty("EvtSel", evSel.getFullJobOptName())
42
43 return result