ATLAS Offline Software
test_pyhistsvc_write.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 PyHistWriter
8 job += PyHistWriter()
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.Output = [ "upd DATAFILE='tuple1.root' OPT='UPDATE'",
16  "rec DATAFILE='tuple2.root' OPT='RECREATE'", ]
17 hsvc.PrintAll = True
18 
19 from AthenaCommon.AppMgr import theApp
20 theApp.EvtMax = 20
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7