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 38 of file TEST7.py.

38def TEST7Cfg(flags):
39
40 acc = ComponentAccumulator()
41 acc.merge(TEST7KernelCfg(flags, name="TEST7Kernel"))
42
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",
48 "Electrons",
49 "Photons",
50 "Muons",
51 "PrimaryVertices",
52 "InDetTrackParticles",
53 "AntiKt4EMTopoJets",
54 "AntiKt4EMPFlowJets",
55
56 "MET_Baseline_AntiKt4EMTopo",
57 "MET_Baseline_AntiKt4EMPFlow",
58 "TauJets",
59 "DiTauJets",
60 "DiTauJetsLowPt",
61 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets"]
62 TEST7ItemList = TEST7SlimmingHelper.GetItemList()
63
64 acc.merge(OutputStreamCfg(flags, "D2AOD_TEST7", ItemList=TEST7ItemList, AcceptAlgs=["TEST7Kernel"]))
65 acc.merge(SetupMetaDataForStreamCfg(flags, "D2AOD_TEST7", AcceptAlgs=["TEST7Kernel"], propagateMetadataFromInput=True))
66
67 return acc

◆ TEST7KernelCfg()

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

Definition at line 19 of file TEST7.py.

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

◆ 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 TrigDecisionTool.TrigDecisionToolConfig import TrigDecisionToolCfg
11 acc = ComponentAccumulator()
12 tdt = acc.getPrimaryAndMerge(TrigDecisionToolCfg(flags))
13 acc.addPublicTool(CompFactory.DerivationFramework.xAODStringSkimmingTool(name = "TEST7StringSkimmingTool",
14 expression = "( count(Muons.pt > (6 * GeV)) + count(Electrons.pt > (6 * GeV)) ) >= 3",
15 TrigDecisionTool=tdt),
16 primary = True)
17 return(acc)
18