6 from AthenaConfiguration.ComponentAccumulator 
import ComponentAccumulator
 
    7 from AthenaConfiguration.ComponentFactory 
import CompFactory
 
    8 from AthenaConfiguration.Enums 
import MetadataCategory
 
   11     """Configure the example muon CP tool""" 
   13     mst = CompFactory.CP.MuonSelectionTool(name = 
'TEST5MuonSelectionTool', 
 
   14                                            TurnOffMomCorr = 
True,
 
   15                                            AllowSettingGeometryOnTheFly = 
True)
 
   16     acc.addPublicTool(mst, primary=
True)
 
   17     acc.addPublicTool(CompFactory.DerivationFramework.AsgSelectionToolWrapper(name = 
"TEST5MuonToolWrapper",
 
   18                                                                               AsgSelectionTool = mst,
 
   20                                                                               StoreGateEntryName = 
"TEST5GoodMuons",
 
   21                                                                               ContainerName = 
"Muons"),
 
   27     """Configure the example augmentation tool""" 
   29     acc.addPublicTool(CompFactory.DerivationFramework.AugmentationToolExample(name       = 
"TEST5AugmentationTool"),
 
   35     """Configure the derivation framework driving algorithm (kernel)""" 
   39     DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
 
   40     acc.addEventAlgo(
DerivationKernel(name, AugmentationTools = [augmentationTool,cpTool]))       
 
   47     acc.merge(
TEST5KernelCfg(flags, name=
"TEST5Kernel",StreamName = 
"OutputStreamDAOD_TEST5"))
 
   49     from OutputStreamAthenaPool.OutputStreamConfig 
import OutputStreamCfg
 
   50     from xAODMetaDataCnv.InfileMetaDataConfig 
import SetupMetaDataForStreamCfg
 
   51     from DerivationFrameworkCore.SlimmingHelper 
import SlimmingHelper
 
   52     TEST5SlimmingHelper = 
SlimmingHelper(
"TEST5SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
 
   53     TEST5SlimmingHelper.SmartCollections = [
"EventInfo",
"InDetTrackParticles",
"PrimaryVertices",
"Muons"]
 
   54     TEST5SlimmingHelper.ExtraVariables += [
"InDetTrackParticles.DFDecoratorExample"]
 
   55     TEST5SlimmingHelper.ExtraVariables += [
"Muons.TEST5GoodMuons"]
 
   56     TEST5SlimmingHelper.StaticContent += [
"std::vector<float>#DFAugmentationExample"]
 
   57     TEST5ItemList = TEST5SlimmingHelper.GetItemList()
 
   58     acc.merge(
OutputStreamCfg(flags, 
"DAOD_TEST5", ItemList=TEST5ItemList, AcceptAlgs=[
"TEST5Kernel"]))
 
   59     acc.merge(
SetupMetaDataForStreamCfg(flags, 
"DAOD_TEST5", AcceptAlgs=[
"TEST5Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))