ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
AthenaPoolCnvSvc
python
PoolReadConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
import
ROOT
5
6
7
def
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
python.PoolReadConfig.PoolReadCfg
PoolReadCfg(flags)
Definition
PoolReadConfig.py:7
Generated on
for ATLAS Offline Software by
1.17.0