Skip to content
Snippets Groups Projects

Clean up legacy LArG4 configs

Merged Thomas Strebler requested to merge tstreble-24.0-patch-3248 into 24.0
6 files
+ 0
143
Compare changes
  • Side-by-side
  • Inline
Files
6
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
ServiceMgr.MessageSvc.OutputLevel = INFO
## Algorithm sequence
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()
## AthenaCommon flags
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
i = options['outevents']
athenaCommonFlags.EvtMax = i
athenaCommonFlags.PoolHitsOutput.set_Off()
from AthenaCommon.AppMgr import theApp
theApp.EvtMax = i
import AthenaCommon.AtlasUnixGeneratorJob
from TruthIO.TruthIOConf import HepMCReadFromFile
read = HepMCReadFromFile()
read.InputFile = options['outfile']
topSequence += read
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
outStream = AthenaPoolOutputStream("OutStream")
outStream.ItemList = ["EventInfo#*", "McEventCollection#*"]
outfile = options['outfile']
if outfile.endswith(".ascii") :
outfile = outfile[:-6]
outStream.OutputFile = outfile+".pool.root"
Loading