ATLAS Offline Software
Loading...
Searching...
No Matches
python.TEST7 Namespace Reference

Functions

 TEST7SkimmingToolCfg (flags)
 TEST7KernelCfg (flags, name='TEST7Kernel', **kwargs)
 TEST7Cfg (flags)

Function Documentation

◆ TEST7Cfg()

python.TEST7.TEST7Cfg ( flags)

Definition at line 35 of file TEST7.py.

35def TEST7Cfg(flags):
36
37 acc = ComponentAccumulator()
38 acc.merge(TEST7KernelCfg(flags, name="TEST7Kernel"))
39
40 from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
41 from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
42 from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
43 TEST7SlimmingHelper = SlimmingHelper("TEST7SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
44 TEST7SlimmingHelper.SmartCollections = ["EventInfo",
45 "Electrons",
46 "Photons",
47 "Muons",
48 "PrimaryVertices",
49 "InDetTrackParticles",
50 "AntiKt4EMTopoJets",
51 "AntiKt4EMPFlowJets",
52
53 "MET_Baseline_AntiKt4EMTopo",
54 "MET_Baseline_AntiKt4EMPFlow",
55 "TauJets",
56 "DiTauJets",
57 "DiTauJetsLowPt",
58 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets"]
59 TEST7ItemList = TEST7SlimmingHelper.GetItemList()
60
61 acc.merge(OutputStreamCfg(flags, "D2AOD_TEST7", ItemList=TEST7ItemList, AcceptAlgs=["TEST7Kernel"]))
62 acc.merge(SetupMetaDataForStreamCfg(flags, "D2AOD_TEST7", AcceptAlgs=["TEST7Kernel"], propagateMetadataFromInput=True))
63
64 return acc

◆ TEST7KernelCfg()

python.TEST7.TEST7KernelCfg ( flags,
name = 'TEST7Kernel',
** kwargs )
Configure the derivation framework driving algorithm (kernel)

Definition at line 16 of file TEST7.py.

16def TEST7KernelCfg(flags, name='TEST7Kernel', **kwargs):
17 """Configure the derivation framework driving algorithm (kernel)"""
18 acc = ComponentAccumulator()
19 # The next three lines are necessary in case the string skimming tool accesses containers which haven't
20 # previously been accessed via ReadHandles (as here). One must create a new sequence, list all of the
21 # accessed container types and keys as ExtraDataForDynamicConsumers (just Muons here) and then set the property
22 # ProcessDynamicDataDependencies to True for that sequence. The relevant skimming tools must then be attached
23 # to this sequence. The use of seqAND here isn't relevant since there is only one sequence in use.
24 # This step isn't needed in case the common augmentations are run first (e.g. with PHYS/PHYSLITE etc). In
25 # such cases one can omit the next three lines and the sequenceName argument in addEventAlgo.
26 acc.addSequence( seqAND("TEST7Sequence") )
27 acc.getSequence("TEST7Sequence").ExtraDataForDynamicConsumers = ['xAOD::MuonContainer/Muons','xAOD::ElectronContainer/Electrons']
28 acc.getSequence("TEST7Sequence").ProcessDynamicDataDependencies = True
29 skimmingTool = acc.getPrimaryAndMerge(TEST7SkimmingToolCfg(flags))
30 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
31 acc.addEventAlgo(DerivationKernel(name, SkimmingTools = [skimmingTool]), sequenceName="TEST7Sequence")
32 return acc
33
34

◆ TEST7SkimmingToolCfg()

python.TEST7.TEST7SkimmingToolCfg ( flags)
Configure the example skimming tool

Definition at line 8 of file TEST7.py.

8def TEST7SkimmingToolCfg(flags):
9 """Configure the example skimming tool"""
10 from DerivationFrameworkTools.DerivationFrameworkToolsConfig import (
11 xAODStringSkimmingToolCfg)
12 return xAODStringSkimmingToolCfg(
13 flags, name = "TEST7StringSkimmingTool",
14 expression = "( count(Muons.pt > (6 * GeV)) + count(Electrons.pt > (6 * GeV)) ) >= 3")
15