4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from AthenaConfiguration.Enums
import MetadataCategory
9 """Configure the example thinning tool"""
11 acc.addPublicTool(CompFactory.DerivationFramework.ThinningToolExample(name =
"TEST3ThinningTool",
12 StreamName = streamName,
13 TrackPtCut = 20000.0),
19 """Configure the derivation framework driving algorithm (kernel)"""
22 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
30 acc.merge(
TEST3KernelCfg(flags, name=
"TEST3Kernel",StreamName =
"StreamDAOD_TEST3"))
32 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
33 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
34 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
35 TEST3SlimmingHelper =
SlimmingHelper(
"TEST3SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
36 TEST3SlimmingHelper.SmartCollections = [
"EventInfo",
"InDetTrackParticles"]
37 TEST3ItemList = TEST3SlimmingHelper.GetItemList()
38 acc.merge(
OutputStreamCfg(flags,
"DAOD_TEST3", ItemList=TEST3ItemList, AcceptAlgs=[
"TEST3Kernel"]))
39 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_TEST3", AcceptAlgs=[
"TEST3Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))