ATLAS Offline Software
AthenaPoolTestRead.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.AllConfigFlags import initConfigFlags
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from AthenaCommon.Constants import DEBUG
6 
7 # Setup flags
8 flags = initConfigFlags()
9 flags.Common.MsgSuppression = False
10 flags.Input.Files = ["myStream1.pool.root"]
11 flags.Input.ProcessingTags = [] # to avoid input file peeking
12 flags.lock()
13 
14 # Main services
15 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
16 acc = MainServicesCfg(flags)
17 
18 # Pool reading
19 from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
20 acc.merge( PoolReadCfg(flags) )
21 
22 acc.addEventAlgo( CompFactory.AthenaPoolTestDataReader(OutputLevel = DEBUG),
23  sequenceName = 'AthAlgSeq' )
24 
25 # Run
26 import sys
27 sc = acc.run(flags.Exec.MaxEvents)
28 sys.exit(sc.isFailure())
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:245
Constants
some useful constants -------------------------------------------------—
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69