ATLAS Offline Software
Control
AthenaPython
share
tests
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
4
from
AthenaCommon.AlgSequence
import
AlgSequence
5
job =
AlgSequence
()
6
7
from
AthenaPython.tests.PyTHistTestsLib
import
PyHistReader
8
job += PyHistReader()
9
10
# define histsvc {in/out}put streams
11
from
AthenaCommon.AppMgr
import
ServiceMgr
as
svcMgr
12
if
not
hasattr(svcMgr,
'THistSvc'
):
13
svcMgr += CfgMgr.THistSvc()
14
hsvc = svcMgr.THistSvc
15
hsvc.Input = [
"read1 DATAFILE='tuple1.root' OPT='READ'"
,
16
"read2 DATAFILE='tuple2.root' OPT='READ'"
, ]
17
hsvc.PrintAll =
True
18
19
from
AthenaCommon.AppMgr
import
theApp
20
theApp.EvtMax = 1
python.AlgSequence.AlgSequence
AlgSequence
Definition:
PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7
Generated on Sat Oct 5 2024 21:27:45 for ATLAS Offline Software by
1.8.18