5def OutputConditionsAlgCfg(flags, name="OutputConditionsAlg",outputFile='condobjs.root', **kwargs):
6
7 result = ComponentAccumulator(sequence = CompFactory.AthSequencer("AthOutSeq", StopOverride=True))
8
9 from AthenaPoolCnvSvc.PoolWriteConfig import PoolWriteCfg
10 result.merge(PoolWriteCfg(flags))
11
12 kwargs.setdefault("WriteIOV",True)
13 oca=CompFactory.OutputConditionsAlg(name,**kwargs)
14
15
16
17 condstream=CompFactory.AthenaOutputStreamTool(name+"Tool")
18
19
20 oca.StreamName=name+"Tool"
21 condstream.OutputFile=outputFile
22 condstream.PoolContainerPrefix="ConditionsContainer"
23 condstream.TopLevelContainerName = "<type>"
24 condstream.SubLevelBranchName = "<key>"
25 result.addPublicTool(condstream)
26
27 result.addEventAlgo(oca)
28
29 return result