ATLAS Offline Software
Functions
python.TEST7 Namespace Reference

Functions

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

Function Documentation

◆ TEST7Cfg()

def python.TEST7.TEST7Cfg (   flags)

Definition at line 38 of file TEST7.py.

38 def 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  "BTagging_AntiKt4EMPFlow",
56  "BTagging_AntiKtVR30Rmax4Rmin02Track",
57  "MET_Baseline_AntiKt4EMTopo",
58  "MET_Baseline_AntiKt4EMPFlow",
59  "TauJets",
60  "DiTauJets",
61  "DiTauJetsLowPt",
62  "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
63  "AntiKtVR30Rmax4Rmin02PV0TrackJets"]
64  TEST7ItemList = TEST7SlimmingHelper.GetItemList()
65 
66  acc.merge(OutputStreamCfg(flags, "D2AOD_TEST7", ItemList=TEST7ItemList, AcceptAlgs=["TEST7Kernel"]))
67  acc.merge(SetupMetaDataForStreamCfg(flags, "D2AOD_TEST7", AcceptAlgs=["TEST7Kernel"], propagateMetadataFromInput=True))
68 
69  return acc

◆ TEST7KernelCfg()

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

Definition at line 19 of file TEST7.py.

19 def 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()

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

Definition at line 8 of file TEST7.py.

8 def 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 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
python.TEST7.TEST7SkimmingToolCfg
def TEST7SkimmingToolCfg(flags)
Definition: TEST7.py:8
python.CFElements.seqAND
def seqAND(name, subs=[])
Definition: CFElements.py:25
python.TEST7.TEST7Cfg
def TEST7Cfg(flags)
Definition: TEST7.py:38
python.TriggerInterface.TrigDecisionToolCfg
def TrigDecisionToolCfg(flags)
Definition: TriggerInterface.py:14
python.TEST7.TEST7KernelCfg
def TEST7KernelCfg(flags, name='TEST7Kernel', **kwargs)
Definition: TEST7.py:19
InfileMetaDataConfig.SetupMetaDataForStreamCfg
def SetupMetaDataForStreamCfg(flags, streamName="", AcceptAlgs=None, createMetadata=None, propagateMetadataFromInput=True, *args, **kwargs)
Definition: InfileMetaDataConfig.py:222
SlimmingHelper
Definition: SlimmingHelper.py:1
python.HION12.DerivationKernel
DerivationKernel
Definition: HION12.py:66