Skip to content
Snippets Groups Projects
Commit a8cbba26 authored by Thomas Strebler's avatar Thomas Strebler
Browse files

Clean up legacy LArG4GenShowerLib config

parent 380b9374
No related branches found
No related tags found
1 merge request!70724Clean up legacy LArG4 configs
Pipeline #7250858 passed
# 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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment