4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from AthenaConfiguration.Enums
import MetadataCategory
7 from AthenaCommon.CFElements
import seqAND
10 """Configure the example skimming tool"""
11 from TrigDecisionTool.TrigDecisionToolConfig
import TrigDecisionToolCfg
14 acc.addPublicTool(CompFactory.DerivationFramework.xAODStringSkimmingTool(name =
"TEST2StringSkimmingTool",
15 expression =
"count(Muons.pt > (1 * GeV)) >= 1",
16 TrigDecisionTool=tdt),
21 """Configure the derivation framework driving algorithm (kernel)"""
30 acc.addSequence(
seqAND(
"TEST2Sequence") )
31 acc.getSequence(
"TEST2Sequence").ExtraDataForDynamicConsumers = [
'xAOD::MuonContainer/Muons']
32 acc.getSequence(
"TEST2Sequence").ProcessDynamicDataDependencies =
True
34 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
35 acc.addEventAlgo(
DerivationKernel(name, SkimmingTools = [skimmingTool]), sequenceName=
"TEST2Sequence")
44 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
45 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
46 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
47 TEST2SlimmingHelper =
SlimmingHelper(
"TEST2SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
48 TEST2SlimmingHelper.SmartCollections = [
"EventInfo",
53 "InDetTrackParticles",
56 "BTagging_AntiKt4EMPFlow",
57 "BTagging_AntiKtVR30Rmax4Rmin02Track",
58 "MET_Baseline_AntiKt4EMTopo",
59 "MET_Baseline_AntiKt4EMPFlow",
63 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
64 "AntiKtVR30Rmax4Rmin02PV0TrackJets"]
65 TEST2ItemList = TEST2SlimmingHelper.GetItemList()
67 acc.merge(
OutputStreamCfg(flags,
"DAOD_TEST2", ItemList=TEST2ItemList, AcceptAlgs=[
"TEST2Kernel"]))
68 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_TEST2", AcceptAlgs=[
"TEST2Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))