6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
8 from AthenaConfiguration.Enums
import MetadataCategory
9 from AthenaCommon.CFElements
import seqAND
12 """Configure the example skimming tool"""
14 acc.addPublicTool(CompFactory.DerivationFramework.SkimmingToolExample(name =
"TEST1SkimmingTool",
15 MuonContainerKey =
"Muons",
22 """Configure the example augmentation tool"""
24 acc.addPublicTool(CompFactory.DerivationFramework.AugmentationToolExample(name=
"TEST6AugmentationTool"),
29 """Configure the derivation framework driving algorithm (kernel)"""
32 acc.addSequence(
seqAND(
"TEST6Sequence") )
33 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
35 skimmingKernel =
DerivationKernel(kwargs[
"PreselectionName"], SkimmingTools = [skimmingTool])
37 acc.addEventAlgo( skimmingKernel, sequenceName=
"TEST6Sequence" )
40 acc.addEventAlgo(
DerivationKernel(name, AugmentationTools = [augmentationTool]), sequenceName=
"TEST6Sequence")
47 acc.merge(
TEST6KernelCfg(flags, name=
"TEST6Kernel", PreselectionName=
"TEST6PreselectionKernel"))
49 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
50 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
51 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
52 TEST6SlimmingHelper =
SlimmingHelper(
"TEST6SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
53 TEST6SlimmingHelper.SmartCollections = [
"EventInfo",
58 "InDetTrackParticles",
61 "BTagging_AntiKt4EMPFlow",
62 "BTagging_AntiKtVR30Rmax4Rmin02Track",
63 "MET_Baseline_AntiKt4EMTopo",
64 "MET_Baseline_AntiKt4EMPFlow",
68 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
69 "AntiKtVR30Rmax4Rmin02PV0TrackJets"]
70 TEST6ItemList = TEST6SlimmingHelper.GetItemList()
72 acc.merge(
OutputStreamCfg(flags,
"DAOD_TEST6", ItemList=TEST6ItemList, AcceptAlgs=[
"TEST6Kernel"]))
73 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_TEST6", AcceptAlgs=[
"TEST6Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))