4 from AthenaCommon.Utils
import unixtools
6 if not 'FNAMES' in dir():
7 paths = os.getenv(
'DATAPATH').
split(os.pathsep) + [os.getenv(
'ATLAS_REFERENCE_DATA',
'')]
8 testdir = unixtools.find_datafile(os.getenv(
'ATLAS_REFERENCE_TAG'), paths)
9 FNAMES = [os.path.join(testdir, f)
for f
in (
'ntuple.0.root',
'ntuple.1.root')]
11 if not isinstance(FNAMES, (list,tuple)):
15 if not 'TUPLENAME' in dir():
18 import AthenaRootComps.ReadAthenaRoot
19 svcMgr.EventSelector.InputCollections = FNAMES
20 svcMgr.EventSelector.TupleName = TUPLENAME
22 from AthenaCommon.AlgSequence
import AlgSequence
25 import AthenaRootComps.AthenaRootCompsConf
as arcc
26 if not 'USEVARHANDLE' in dir():
28 if USEVARHANDLE: job += arcc.Athena__RootAsciiDumperAlgHandle(
"rootdumper")
29 else: job += arcc.Athena__RootAsciiDumperAlg (
"rootdumper")
31 if not 'EVTMAX' in dir():
33 theApp.EvtMax = EVTMAX
35 if not 'DOWRITE' in dir():
38 svcMgr += CfgMgr.DecisionSvc()
39 import AthenaRootComps.WriteAthenaRoot
as arcw
40 out = arcw.createNtupleOutputStream(
"StreamD3PD",
"d3pd.root",
"egamma")
49 out = arcw.createNtupleOutputStream(
"StreamD3PD_2",