11 allowed_streams=None):
12 acc = ComponentAccumulator()
13 acc.merge(MetaDataSvcCfg(flags))
14 opts = {}
15 if o := h5_output:
16 opts |= dict(h5Output=o)
17 if o := json_output:
18 opts |= dict(jsonOutput=
str(o))
19 if o := h5_output_hists:
20 opts |= dict(h5OutputHists=o)
21 if o := allowed_streams:
22 opts |= dict(allowedStreams=o)
23 opts |= dict(enableSystematics=enable_systematics)
24 if not (h5_output or json_output or h5_output_hists):
25 raise ValueError('No outputs given for MetadataAlg')
26 acc.addEventAlgo(
27 CompFactory.ftag.MetadataAlg('MetadataAlg', **opts)
28 )
29 return acc