3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
9 histSvc = CompFactory.THistSvc(Output=[
"NSWSTORIES DATAFILE='NswFairyTales.root' OPT='RECREATE'"])
10 result.addService(histSvc)
11 the_alg = CompFactory.NswOccupancyAlg(
"NswOccupancyAlgBin{width}".
format(width = binWidth), BinWidth = binWidth)
12 result.addEventAlgo(the_alg, primary =
True)
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)