Skip to content
Snippets Groups Projects
Commit 2bba6a56 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'OutputCondAlgoNewConfig' into 'master'

New Config for OutputConditionsAlg

See merge request atlas/athena!39732
parents 7a45a68f e8c672d4
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from AthenaConfiguration.ComponentFactory import CompFactory
def OutputConditionsAlgCfg(flags, name="OutputConditionsAlg",
outputFile='condobjs.root',
ObjectList=[],IOVTagList=[],WriteIOV=True):
from AthenaPoolCnvSvc.PoolWriteConfig import PoolWriteCfg
result=PoolWriteCfg(flags)
oca=CompFactory.OutputConditionsAlg(name,ObjectList=ObjectList,
IOVTagList=IOVTagList,WriteIOV=WriteIOV)
# create outputStream tool with given filename and pass to myOCA
condstream=CompFactory.AthenaOutputStreamTool(name+"Tool")
#To be fixed: OutputConditionsAlgo works with a string-name of a public tool
oca.StreamName=name+"Tool"
condstream.OutputFile=outputFile
condstream.PoolContainerPrefix="ConditionsContainer"
result.addPublicTool(condstream)
result.addEventAlgo(oca)
return result
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