5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from AthenaConfiguration.Enums
import MetadataCategory
8 from AthenaCommon.CFElements
import seqAND
11 """Configure the example skimming tool"""
13 acc.addPublicTool(CompFactory.DerivationFramework.SkimmingToolExample(name =
"TEST1SkimmingTool",
14 MuonContainerKey =
"Muons",
21 """Configure the example augmentation tool"""
23 acc.addPublicTool(CompFactory.DerivationFramework.AugmentationToolExample(name=
"TEST6AugmentationTool"),
28 """Configure the derivation framework driving algorithm (kernel)"""
31 acc.addSequence(
seqAND(
"TEST6Sequence") )
32 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
34 skimmingKernel =
DerivationKernel(kwargs[
"PreselectionName"], SkimmingTools = [skimmingTool])
36 acc.addEventAlgo( skimmingKernel, sequenceName=
"TEST6Sequence" )
39 acc.addEventAlgo(
DerivationKernel(name, AugmentationTools = [augmentationTool]), sequenceName=
"TEST6Sequence")
46 acc.merge(
TEST6KernelCfg(flags, name=
"TEST6Kernel", PreselectionName=
"TEST6PreselectionKernel"))
48 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
49 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
50 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
51 TEST6SlimmingHelper =
SlimmingHelper(
"TEST6SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
52 TEST6SlimmingHelper.SmartCollections = [
"EventInfo",
57 "InDetTrackParticles",
60 "BTagging_AntiKt4EMPFlow",
61 "BTagging_AntiKtVR30Rmax4Rmin02Track",
62 "MET_Baseline_AntiKt4EMTopo",
63 "MET_Baseline_AntiKt4EMPFlow",
67 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
68 "AntiKtVR30Rmax4Rmin02PV0TrackJets"]
69 TEST6ItemList = TEST6SlimmingHelper.GetItemList()
71 acc.merge(
OutputStreamCfg(flags,
"DAOD_TEST6", ItemList=TEST6ItemList, AcceptAlgs=[
"TEST6Kernel"]))
72 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_TEST6", AcceptAlgs=[
"TEST6Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))