ATLAS Offline Software
Functions
python.TEST6 Namespace Reference

Functions

def TEST6SkimmingToolCfg (flags)
 
def TEST6AugmentationToolCfg (flags)
 
def TEST6KernelCfg (flags, name='TEST6Kernel', **kwargs)
 
def TEST6Cfg (flags)
 

Function Documentation

◆ TEST6AugmentationToolCfg()

def python.TEST6.TEST6AugmentationToolCfg (   flags)
Configure the example augmentation tool

Definition at line 20 of file TEST6.py.

20 def TEST6AugmentationToolCfg(flags):
21  """Configure the example augmentation tool"""
22  acc = ComponentAccumulator()
23  acc.addPublicTool(CompFactory.DerivationFramework.AugmentationToolExample(name= "TEST6AugmentationTool"),
24  primary = True)
25  return(acc)
26 

◆ TEST6Cfg()

def python.TEST6.TEST6Cfg (   flags)

Definition at line 43 of file TEST6.py.

43 def TEST6Cfg(flags):
44 
45  acc = ComponentAccumulator()
46  acc.merge(TEST6KernelCfg(flags, name="TEST6Kernel", PreselectionName="TEST6PreselectionKernel"))
47 
48  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
49  from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
50  from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
51  TEST6SlimmingHelper = SlimmingHelper("TEST6SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
52  TEST6SlimmingHelper.SmartCollections = ["EventInfo",
53  "Electrons",
54  "Photons",
55  "Muons",
56  "PrimaryVertices",
57  "InDetTrackParticles",
58  "AntiKt4EMTopoJets",
59  "AntiKt4EMPFlowJets",
60  "BTagging_AntiKt4EMPFlow",
61  "BTagging_AntiKtVR30Rmax4Rmin02Track",
62  "MET_Baseline_AntiKt4EMTopo",
63  "MET_Baseline_AntiKt4EMPFlow",
64  "TauJets",
65  "DiTauJets",
66  "DiTauJetsLowPt",
67  "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
68  "AntiKtVR30Rmax4Rmin02PV0TrackJets"]
69  TEST6ItemList = TEST6SlimmingHelper.GetItemList()
70 
71  acc.merge(OutputStreamCfg(flags, "DAOD_TEST6", ItemList=TEST6ItemList, AcceptAlgs=["TEST6Kernel"]))
72  acc.merge(SetupMetaDataForStreamCfg(flags, "DAOD_TEST6", AcceptAlgs=["TEST6Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))
73 
74  return acc

◆ TEST6KernelCfg()

def python.TEST6.TEST6KernelCfg (   flags,
  name = 'TEST6Kernel',
**  kwargs 
)
Configure the derivation framework driving algorithm (kernel)

Definition at line 27 of file TEST6.py.

27 def TEST6KernelCfg(flags, name='TEST6Kernel', **kwargs):
28  """Configure the derivation framework driving algorithm (kernel)"""
29  acc = ComponentAccumulator()
30  # Subsequence
31  acc.addSequence( seqAND("TEST6Sequence") )
32  DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
33  skimmingTool = acc.getPrimaryAndMerge(TEST6SkimmingToolCfg(flags))
34  skimmingKernel = DerivationKernel(kwargs["PreselectionName"], SkimmingTools = [skimmingTool])
35  # Add skimming tool to subsequence
36  acc.addEventAlgo( skimmingKernel, sequenceName="TEST6Sequence" )
37  augmentationTool = acc.getPrimaryAndMerge(TEST6AugmentationToolCfg(flags))
38  # Add augmentation tool to same subsequence
39  acc.addEventAlgo(DerivationKernel(name, AugmentationTools = [augmentationTool]), sequenceName="TEST6Sequence")
40  return(acc)
41 
42 

◆ TEST6SkimmingToolCfg()

def python.TEST6.TEST6SkimmingToolCfg (   flags)
Configure the example skimming tool

Definition at line 10 of file TEST6.py.

10 def TEST6SkimmingToolCfg(flags):
11  """Configure the example skimming tool"""
12  acc = ComponentAccumulator()
13  acc.addPublicTool(CompFactory.DerivationFramework.SkimmingToolExample(name = "TEST1SkimmingTool",
14  MuonContainerKey = "Muons",
15  NumberOfMuons = 1,
16  MuonPtCut = 1000.0),
17  primary = True)
18  return(acc)
19 
python.TEST6.TEST6KernelCfg
def TEST6KernelCfg(flags, name='TEST6Kernel', **kwargs)
Definition: TEST6.py:27
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.TEST6.TEST6SkimmingToolCfg
def TEST6SkimmingToolCfg(flags)
Definition: TEST6.py:10
python.CFElements.seqAND
def seqAND(name, subs=[])
Definition: CFElements.py:25
python.TEST6.TEST6Cfg
def TEST6Cfg(flags)
Definition: TEST6.py:43
python.TEST6.TEST6AugmentationToolCfg
def TEST6AugmentationToolCfg(flags)
Definition: TEST6.py:20
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