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 59 of file STDM13.py.

59def STDM13Cfg(flags):
60 acc = ComponentAccumulator()
61
62 # Get the lists of triggers needed for trigger matching.
63 # This is needed at this scope (for the slimming) and further down in the config chain
64 # for actually configuring the matching, so we create it here and pass it down
65 # TODO: this should ideally be called higher up to avoid it being run multiple times in a train
66 from DerivationFrameworkPhys.TriggerListsHelper import TriggerListsHelper
67 STDM13TriggerListsHelper = TriggerListsHelper(flags)
68
69 # Common augmentations
70 acc.merge(STDM13KernelCfg(flags, name="STDM13Kernel", StreamName = 'StreamDAOD_STDM13', TriggerListsHelper = STDM13TriggerListsHelper))
71
72 # ============================
73 # Define contents of the format
74 # =============================
75 from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
76 from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
77 from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
78
79 STDM13SlimmingHelper = SlimmingHelper("STDM13SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
80
81 from DerivationFrameworkFlavourTag import FtagBaseContent
82 FtagBaseContent.addCommonAugmentation(flags, acc, STDM13SlimmingHelper)
83
84 STDM13SlimmingHelper.SmartCollections = [
85 "Electrons",
86 "Muons",
87 "AntiKt4EMPFlowJets",
88 "MET_Baseline_AntiKt4EMPFlow",
89 "PrimaryVertices",
90 "InDetTrackParticles",
91 ]
92
93 STDM13SlimmingHelper.AllVariables = [
94 "EventInfo",
95 "PrimaryVertices",
96 "InDetTrackParticles",
97
98 "AntiKt4TruthDressedWZJets",
99 "TruthEvents","TruthHFWithDecayParticles","TruthBoson","TruthBottom", "TruthCharm","TruthElectrons","TruthMuons","TruthTop","TruthTaus","MET_Truth",
100 "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 STDM13StringSkimmingTool = CompFactory.DerivationFramework.xAODStringSkimmingTool(
37 name = "STDM13StringSkimmingTool",
38 expression = lepton_skimming_expression )
39 acc.addPublicTool(STDM13StringSkimmingTool)
40 STDM13SkimmingTool = CompFactory.DerivationFramework.FilterCombinationAND("STDM13SkimmingTool", FilterList = [STDM13StringSkimmingTool])
41
42 acc.addPublicTool(STDM13SkimmingTool, primary = True)
43 tp_thinning_expression = "abs(DFCommonInDetTrackZ0AtPV*sin(InDetTrackParticles.theta)) < 6.0*mm"
44 STDM13TPThinningTool = acc.getPrimaryAndMerge(TrackParticleThinningCfg(
45 flags,
46 name = "STDM13TPThinningTool",
47 StreamName = kwargs['StreamName'],
48 SelectionString = tp_thinning_expression,
49 InDetTrackParticlesKey = "InDetTrackParticles"))
50
51 thinningTools = [ STDM13TPThinningTool ]
52 skimmingTools = [ STDM13SkimmingTool ]
53
54 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
55 acc.addEventAlgo(DerivationKernel(name, SkimmingTools = skimmingTools, ThinningTools = thinningTools))
56 return acc
57
58

Variable Documentation

◆ IncludeBJetTriggerContent

python.STDM13.IncludeBJetTriggerContent

Definition at line 111 of file STDM13.py.

◆ IncludeBPhysTriggerContent

python.STDM13.IncludeBPhysTriggerContent

Definition at line 112 of file STDM13.py.

◆ IncludeEGammaTriggerContent

python.STDM13.IncludeEGammaTriggerContent

Definition at line 107 of file STDM13.py.

◆ IncludeEtMissTriggerContent

python.STDM13.IncludeEtMissTriggerContent

Definition at line 110 of file STDM13.py.

◆ IncludeJetTauEtMissTriggerContent

python.STDM13.IncludeJetTauEtMissTriggerContent

Definition at line 108 of file STDM13.py.

◆ IncludeJetTriggerContent

python.STDM13.IncludeJetTriggerContent

Definition at line 105 of file STDM13.py.

◆ IncludeMinBiasTriggerContent

python.STDM13.IncludeMinBiasTriggerContent

Definition at line 113 of file STDM13.py.

◆ IncludeMuonTriggerContent

python.STDM13.IncludeMuonTriggerContent

Definition at line 106 of file STDM13.py.

◆ IncludeTauTriggerContent

python.STDM13.IncludeTauTriggerContent

Definition at line 109 of file STDM13.py.

◆ IncludeTriggerNavigation

python.STDM13.IncludeTriggerNavigation

"AntiKt4EMPFlowJets"

Definition at line 104 of file STDM13.py.

◆ OutputContainerPrefix

python.STDM13.OutputContainerPrefix

Definition at line 139 of file STDM13.py.

◆ SlimmingHelper

python.STDM13.SlimmingHelper

Definition at line 138 of file STDM13.py.

◆ STDM13ItemList

python.STDM13.STDM13ItemList = STDM13SlimmingHelper.GetItemList()

Definition at line 150 of file STDM13.py.

◆ TriggerList

python.STDM13.TriggerList

Definition at line 140 of file STDM13.py.