15 def AddMetaAlgCfg(flags, alg_name="MuonTPMetaAlg", OutStream="NSWPRDValAlg", **kwargs):
17 from AthenaServices.MetaDataSvcConfig
import MetaDataSvcCfg
18 from EventBookkeeperTools.EventBookkeeperToolsConfig
import CutFlowSvcCfg
22 kwargs.setdefault(
"OutStream", OutStream)
23 alg_name +=
"_" + OutStream
24 kwargs.setdefault(
"isData",
not flags.Input.isMC)
25 kwargs.setdefault(
"ExtraOutputs", [(
'xAOD::EventInfo',
'StoreGateSvc+EventInfo.MetaData' + OutStream)])
26 the_alg = CompFactory.MuonVal.MuonTPMetaDataAlg(alg_name, **kwargs)
27 result.addEventAlgo(the_alg, primary=
True)