ATLAS Offline Software
Loading...
Searching...
No Matches
test_pyhistsvc_read.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
4from AthenaCommon.AlgSequence import AlgSequence
5job = AlgSequence()
6
7from AthenaPython.tests.PyTHistTestsLib import PyHistReader
8job += PyHistReader()
9
10# define histsvc {in/out}put streams
11from AthenaCommon.AppMgr import ServiceMgr as svcMgr
12if not hasattr(svcMgr, 'THistSvc'):
13 svcMgr += CfgMgr.THistSvc()
14hsvc = svcMgr.THistSvc
15hsvc.Input = [ "read1 DATAFILE='tuple1.root' OPT='READ'",
16 "read2 DATAFILE='tuple2.root' OPT='READ'", ]
17hsvc.PrintAll = True
18
19from AthenaCommon.AppMgr import theApp
20theApp.EvtMax = 1