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