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

Functions

 STDM13KernelCfg (flags, name='STDM13Kernel', **kwargs)
 STDM13Cfg (flags)

Variables

 IncludeTriggerNavigation
 "AntiKt4EMPFlowJets"
 IncludeJetTriggerContent
 IncludeMuonTriggerContent
 IncludeEGammaTriggerContent
 IncludeJetTauEtMissTriggerContent
 IncludeTauTriggerContent
 IncludeEtMissTriggerContent
 IncludeBJetTriggerContent
 IncludeBPhysTriggerContent
 IncludeMinBiasTriggerContent
 SlimmingHelper
 OutputContainerPrefix
 TriggerList
 STDM13ItemList = STDM13SlimmingHelper.GetItemList()

Function Documentation

◆ STDM13Cfg()

python.STDM13.STDM13Cfg ( flags)

Definition at line 57 of file STDM13.py.

57def STDM13Cfg(flags):
58 acc = ComponentAccumulator()
59
60 # Get the lists of triggers needed for trigger matching.
61 # This is needed at this scope (for the slimming) and further down in the config chain
62 # for actually configuring the matching, so we create it here and pass it down
63 # TODO: this should ideally be called higher up to avoid it being run multiple times in a train
64 from DerivationFrameworkPhys.TriggerListsHelper import TriggerListsHelper
65 STDM13TriggerListsHelper = TriggerListsHelper(flags)
66
67 # Common augmentations
68 acc.merge(STDM13KernelCfg(flags, name="STDM13Kernel", StreamName = 'StreamDAOD_STDM13', TriggerListsHelper = STDM13TriggerListsHelper))
69
70 # ============================
71 # Define contents of the format
72 # =============================
73 from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
74 from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
75 from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
76
77 STDM13SlimmingHelper = SlimmingHelper("STDM13SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
78
79 from DerivationFrameworkFlavourTag import FtagBaseContent
80 FtagBaseContent.addCommonAugmentation(flags, acc, STDM13SlimmingHelper)
81
82 STDM13SlimmingHelper.SmartCollections = [
83 "Electrons",
84 "Muons",
85 "AntiKt4EMPFlowJets",
86 "MET_Baseline_AntiKt4EMPFlow",
87 "PrimaryVertices",
88 "InDetTrackParticles",
89 ]
90
91 STDM13SlimmingHelper.AllVariables = [
92 "EventInfo",
93 "PrimaryVertices",
94 "InDetTrackParticles",
95
96 "AntiKt4TruthDressedWZJets",
97 "TruthEvents","TruthHFWithDecayParticles","TruthBoson","TruthBottom", "TruthCharm","TruthElectrons","TruthMuons","TruthTop","TruthTaus","MET_Truth",
98 "TruthPrimaryVertices","TruthHFWithDecayVertices",

◆ STDM13KernelCfg()

python.STDM13.STDM13KernelCfg ( flags,
name = 'STDM13Kernel',
** kwargs )
Configure the derivation framework driving algorithm (kernel) for STDM13

Definition at line 12 of file STDM13.py.

12def STDM13KernelCfg(flags, name='STDM13Kernel', **kwargs):
13 """Configure the derivation framework driving algorithm (kernel) for STDM13"""
14 acc = ComponentAccumulator()
15
16 # Common augmentations
17 from DerivationFrameworkPhys.PhysCommonConfig import PhysCommonAugmentationsCfg
18 acc.merge(PhysCommonAugmentationsCfg(flags, TriggerListsHelper = kwargs['TriggerListsHelper']))
19
20
21
22 from BTagging.FlavorTaggingConfig import FlavorTaggingCfg
23 acc.merge(FlavorTaggingCfg(flags, "AntiKt4EMPFlowJets"))
24
25 #===================================================
26 # HEAVY FLAVOR CLASSIFICATION FOR ttbar+jets EVENTS
27 #===================================================
28 from DerivationFrameworkMCTruth.HFClassificationCommonConfig import HFClassificationCommonCfg
29 acc.merge(HFClassificationCommonCfg(flags))
30
31 from DerivationFrameworkInDet.InDetToolsConfig import TrackParticleThinningCfg
32
33 # filter leptons
34 lepton_skimming_expression = 'count( (Muons.pt > 25*GeV) && (0 == Muons.muonType || 1 == Muons.muonType || 4 == Muons.muonType) ) + count(( Electrons.pt > 25*GeV) && ((Electrons.Loose) || (Electrons.DFCommonElectronsLHLoose))) >= 1'
35
36 from DerivationFrameworkTools.DerivationFrameworkToolsConfig import (
37 xAODStringSkimmingToolCfg)
38 STDM13StringSkimmingTool = acc.getPrimaryAndMerge(xAODStringSkimmingToolCfg(
39 flags, name = "STDM13StringSkimmingTool", expression = lepton_skimming_expression))
40
41 tp_thinning_expression = "abs(DFCommonInDetTrackZ0AtPV*sin(InDetTrackParticles.theta)) < 6.0*mm"
42 STDM13TPThinningTool = acc.getPrimaryAndMerge(TrackParticleThinningCfg(
43 flags,
44 name = "STDM13TPThinningTool",
45 StreamName = kwargs['StreamName'],
46 SelectionString = tp_thinning_expression,
47 InDetTrackParticlesKey = "InDetTrackParticles"))
48
49 thinningTools = [ STDM13TPThinningTool ]
50 skimmingTools = [ STDM13StringSkimmingTool ]
51
52 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
53 acc.addEventAlgo(DerivationKernel(name, SkimmingTools = skimmingTools, ThinningTools = thinningTools))
54 return acc
55
56

Variable Documentation

◆ IncludeBJetTriggerContent

python.STDM13.IncludeBJetTriggerContent

Definition at line 109 of file STDM13.py.

◆ IncludeBPhysTriggerContent

python.STDM13.IncludeBPhysTriggerContent

Definition at line 110 of file STDM13.py.

◆ IncludeEGammaTriggerContent

python.STDM13.IncludeEGammaTriggerContent

Definition at line 105 of file STDM13.py.

◆ IncludeEtMissTriggerContent

python.STDM13.IncludeEtMissTriggerContent

Definition at line 108 of file STDM13.py.

◆ IncludeJetTauEtMissTriggerContent

python.STDM13.IncludeJetTauEtMissTriggerContent

Definition at line 106 of file STDM13.py.

◆ IncludeJetTriggerContent

python.STDM13.IncludeJetTriggerContent

Definition at line 103 of file STDM13.py.

◆ IncludeMinBiasTriggerContent

python.STDM13.IncludeMinBiasTriggerContent

Definition at line 111 of file STDM13.py.

◆ IncludeMuonTriggerContent

python.STDM13.IncludeMuonTriggerContent

Definition at line 104 of file STDM13.py.

◆ IncludeTauTriggerContent

python.STDM13.IncludeTauTriggerContent

Definition at line 107 of file STDM13.py.

◆ IncludeTriggerNavigation

python.STDM13.IncludeTriggerNavigation

"AntiKt4EMPFlowJets"

Definition at line 102 of file STDM13.py.

◆ OutputContainerPrefix

python.STDM13.OutputContainerPrefix

Definition at line 137 of file STDM13.py.

◆ SlimmingHelper

python.STDM13.SlimmingHelper

Definition at line 136 of file STDM13.py.

◆ STDM13ItemList

python.STDM13.STDM13ItemList = STDM13SlimmingHelper.GetItemList()

Definition at line 148 of file STDM13.py.

◆ TriggerList

python.STDM13.TriggerList

Definition at line 138 of file STDM13.py.