13 """Configure the skimming tool"""
14 from TrigDecisionTool.TrigDecisionToolConfig
import TrigDecisionToolCfg
15 acc = ComponentAccumulator()
16 tdt = acc.getPrimaryAndMerge(TrigDecisionToolCfg(flags))
18 acc.addPublicTool(CompFactory.DerivationFramework.xAODStringSkimmingTool(name =
"SKIMStringSkimmingTool",
19 expression = flags.Derivation.skimmingExpression,
20 TrigDecisionTool=tdt),
26 """Configure the derivation framework driving algorithm (kernel)"""
27 acc = ComponentAccumulator()
28 acc.addSequence( seqAND(
"SKIMSequence") )
29 acc.getSequence(
"SKIMSequence").ExtraDataForDynamicConsumers = flags.Derivation.dynamicConsumers
30 acc.getSequence(
"SKIMSequence").ProcessDynamicDataDependencies =
True
32 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
33 acc.addEventAlgo(DerivationKernel(name, SkimmingTools = [skimmingTool]), sequenceName=
"SKIMSequence")
39 acc = ComponentAccumulator()
42 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
43 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
45 acc.merge(OutputStreamCfg(flags,
"D2AOD_SKIM", ItemList=flags.Input.TypedCollections, AcceptAlgs=[
"SKIMKernel"]))
46 acc.merge(SetupMetaDataForStreamCfg(flags,
"D2AOD_SKIM", AcceptAlgs=[
"SKIMKernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))