4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from AthenaCommon.CFElements
import seqAND
9 """Configure the example skimming tool"""
10 from TrigDecisionTool.TrigDecisionToolConfig
import TrigDecisionToolCfg
13 acc.addPublicTool(CompFactory.DerivationFramework.xAODStringSkimmingTool(name =
"TEST7StringSkimmingTool",
14 expression =
"( count(Muons.pt > (6 * GeV)) + count(Electrons.pt > (6 * GeV)) ) >= 3",
15 TrigDecisionTool=tdt),
20 """Configure the derivation framework driving algorithm (kernel)"""
29 acc.addSequence(
seqAND(
"TEST7Sequence") )
30 acc.getSequence(
"TEST7Sequence").ExtraDataForDynamicConsumers = [
'xAOD::MuonContainer/Muons',
'xAOD::ElectronContainer/Electrons']
31 acc.getSequence(
"TEST7Sequence").ProcessDynamicDataDependencies =
True
33 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
34 acc.addEventAlgo(
DerivationKernel(name, SkimmingTools = [skimmingTool]), sequenceName=
"TEST7Sequence")
43 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
44 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
45 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
46 TEST7SlimmingHelper =
SlimmingHelper(
"TEST7SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
47 TEST7SlimmingHelper.SmartCollections = [
"EventInfo",
52 "InDetTrackParticles",
55 "BTagging_AntiKt4EMPFlow",
56 "BTagging_AntiKtVR30Rmax4Rmin02Track",
57 "MET_Baseline_AntiKt4EMTopo",
58 "MET_Baseline_AntiKt4EMPFlow",
62 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
63 "AntiKtVR30Rmax4Rmin02PV0TrackJets"]
64 TEST7ItemList = TEST7SlimmingHelper.GetItemList()
66 acc.merge(
OutputStreamCfg(flags,
"D2AOD_TEST7", ItemList=TEST7ItemList, AcceptAlgs=[
"TEST7Kernel"]))