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

Functions

 JETM42KernelCfg (flags, name='JETM42Kernel', **kwargs)
 JETM42CoreCfg (flags, name, StreamName, TriggerListsHelper)
 JETM42Cfg (flags)

Variables

 logJETM42 = logging.getLogger('JETM42')

Function Documentation

◆ JETM42Cfg()

python.JETM42.JETM42Cfg ( flags)

Definition at line 157 of file JETM42.py.

157def JETM42Cfg(flags):
158 acc = ComponentAccumulator()
159
160 # the name_tag has to consistent between KernelCfg and CoreCfg
161 JETM42_name_tag = 'JETM42'
162
163
164 # Get the lists of triggers needed for trigger matching.
165 # This is needed at this scope (for the slimming) and further down in the config chain
166 # for actually configuring the matching, so we create it here and pass it down
167 # TODO: this should ideally be called higher up to avoid it being run multiple times in a train
168 from DerivationFrameworkPhys.TriggerListsHelper import TriggerListsHelper
169 JETM42TriggerListsHelper = TriggerListsHelper(flags)
170
171 # Common augmentations
172 acc.merge(JETM42KernelCfg(flags,
173 name= JETM42_name_tag + "Kernel",
174 StreamName = 'StreamDAOD_'+JETM42_name_tag,
175 TriggerListsHelper = JETM42TriggerListsHelper,
176 ))
177
178 # PHYS content
179 acc.merge(JETM42CoreCfg(flags,
180 name=JETM42_name_tag,
181 StreamName = 'StreamDAOD_'+JETM42_name_tag,
182 TriggerListsHelper = JETM42TriggerListsHelper,
183 ))
184
185 return acc
186
187

◆ JETM42CoreCfg()

python.JETM42.JETM42CoreCfg ( flags,
name,
StreamName,
TriggerListsHelper )

Definition at line 110 of file JETM42.py.

110def JETM42CoreCfg(flags, name, StreamName, TriggerListsHelper):
111
112 acc = ComponentAccumulator()
113
114 from DerivationFrameworkPhys.PHYS import PHYSCoreCfg
115 acc.merge(PHYSCoreCfg(flags, name, StreamName = StreamName, TriggerListsHelper = TriggerListsHelper))
116
117 from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
118 from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
119
120 JETM42SlimmingHelper = SlimmingHelper(name+"SlimmingHelper", flags=flags, NamesAndTypes = flags.Input.TypedCollections)
121
122 JETM42SlimmingHelper.AllVariables = ["CaloCalTopoClusters", "CaloTopoClusters422", "CaloCalAllTopoTowers",
123 "EMTopoClusters422","EMTopoClusters422SK","TopoTowers","TopoTowersSK",
124 ]
125
126 JETM42SlimmingHelper.AppendToDictionary.update({'EMTopoClusters422': 'xAOD::CaloClusterContainer',
127 'EMTopoClusters422Aux': 'xAOD::ShallowAuxContainer',
128 'EMTopoClusters422SK': 'xAOD::CaloClusterContainer',
129 'EMTopoClusters422SKAux': 'xAOD::ShallowAuxContainer',
130 'TopoTowers': 'xAOD::CaloClusterContainer',
131 'TopoTowersAux': 'xAOD::ShallowAuxContainer',
132 'TopoTowersSK': 'xAOD::CaloClusterContainer',
133 'TopoTowersSKAux': 'xAOD::ShallowAuxContainer',
134 })
135
136
137 jetOutputList = ["AntiKt4EMTopo422Jets","AntiKt4EMTopo422SKJets","AntiKt4TopoTowerJets","AntiKt4TopoTowerSKJets"]
138 from DerivationFrameworkJetEtMiss.JetCommonConfig import addJetsToSlimmingTool
139 addJetsToSlimmingTool(JETM42SlimmingHelper, jetOutputList, JETM42SlimmingHelper.SmartCollections)
140
141 JETM42SlimmingHelper.ExtraVariables += [
142 'PrimaryVertices.trackWeights',
143 'HLT_ftfChargedParticleFlowObjectsAuxDyn.charge.chargedObjectLinks.chargedObjectWeights.eta.m.otherObjectLinks.otherObjectWeights.phi.pt.signalType.vertexType',
144 'HLT_ftfNeutralParticleFlowObjectsAuxDyn.charge.chargedObjectLinks.chargedObjectWeights.eta.m.otherObjectLinks.otherObjectWeights.phi.pt.signalType.vertexType',
145 ]
146
147 # Pass through all trigger content
148 JETM42SlimmingHelper.IncludeFullTriggerEDMLevel = "ESD"
149
150 # Output stream
151 JETM42ItemList = JETM42SlimmingHelper.GetItemList()
152 acc.merge(OutputStreamCfg(flags, "DAOD_"+name, ItemList=JETM42ItemList, AcceptAlgs=[name+"Kernel"]))
153
154 return acc
155
156

◆ JETM42KernelCfg()

python.JETM42.JETM42KernelCfg ( flags,
name = 'JETM42Kernel',
** kwargs )
Configure the derivation framework driving algorithm (kernel) for JETM42

Definition at line 12 of file JETM42.py.

12def JETM42KernelCfg(flags, name='JETM42Kernel', **kwargs):
13 """Configure the derivation framework driving algorithm (kernel) for JETM42"""
14 acc = ComponentAccumulator()
15
16 from DerivationFrameworkPhys.PhysCommonConfig import PhysCommonAugmentationsCfg
17 acc.merge(PhysCommonAugmentationsCfg(
18 flags,
19 TriggerListsHelper = kwargs['TriggerListsHelper'],
20 ))
21
22 thinningToolsArgs = {
23 'DiTauLowPtThinningToolName' : "PHYSDiTauLowPtThinningTool",
24 }
25
26 from DerivationFrameworkPhys.PhysCommonThinningConfig import PhysCommonThinningCfg
27
28 acc.merge(PhysCommonThinningCfg(flags, StreamName = kwargs['StreamName'], **thinningToolsArgs))
29 # Get them from the CA so they can be added to the kernel
30 thinningTools = []
31 for key in thinningToolsArgs:
32 thinningTools.append(acc.getPublicTool(thinningToolsArgs[key]))
33
34 # The kernel algorithm itself
35 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
36 acc.addEventAlgo(DerivationKernel(name, ThinningTools = thinningTools))
37
38
39 from JetRecConfig.JetRecConfig import JetRecCfg, getInputAlgs
40 from JetRecConfig.StandardJetConstits import stdConstitDic as cst, standardReco, stdInputExtDic as inpext
41 from ROOT import xAODType
42
43 #=======================================
44 # CHS R = 0.4 422 jets
45 #=======================================
46
47 from JetRecConfig.JetDefinition import JetDefinition, JetInputConstitSeq, JetInputExternal
48 from JetRecConfig.StandardSmallRJets import standardghosts, flavourghosts, truthmods, clustermods
49
50 inpext["TC422"] = JetInputExternal("CaloTopoClusters422", xAODType.CaloCluster, algoBuilder= standardReco("CaloClusters"))
51 inpext["TopoTowers"] = JetInputExternal("CaloCalAllTopoTowers", xAODType.CaloCluster, algoBuilder= standardReco("CaloClusters"))
52 cst["EMTopo422"] = JetInputConstitSeq("EMTopo422", xAODType.CaloCluster, ["EM"],
53 "CaloTopoClusters422", "EMTopoClusters422", jetinputtype="EMTopo",
54 )
55 cst["EMTopo422SK"] = JetInputConstitSeq("EMTopo422SK", xAODType.CaloCluster, ["EM","SK"],
56 "CaloTopoClusters422", "EMTopoClusters422SK", jetinputtype="EMTopo",
57 )
58 cst["TopoTower"] = JetInputConstitSeq("TopoTower", xAODType.CaloCluster, ["EM"],
59 "CaloCalAllTopoTowers", "TopoTowers", jetinputtype="TopoTower",
60 )
61 cst["TopoTowerSK"] = JetInputConstitSeq("TopoTowerSK", xAODType.CaloCluster, ["EM","SK"],
62 "CaloCalAllTopoTowers", "TopoTowersSK", jetinputtype="TopoTower",
63 )
64 algs = getInputAlgs(cst["EMTopo422"], flags=flags)
65 algs += getInputAlgs(cst["EMTopo422SK"], flags=flags)
66 algs += getInputAlgs(cst["TopoTower"], flags=flags)
67 algs += getInputAlgs(cst["TopoTowerSK"], flags=flags)
68
69 AntiKt4EMTopo422 = JetDefinition("AntiKt",0.4,cst["EMTopo422"],
70 ghostdefs = standardghosts+["TrackLRT"]+flavourghosts,
71 modifiers = truthmods+clustermods+("Filter:15000","LArHVCorr",),
72 lock = True,
73 )
74 AntiKt4EMTopo422SK = JetDefinition("AntiKt",0.4,cst["EMTopo422SK"],
75 ghostdefs = standardghosts+["TrackLRT"]+flavourghosts,
76 modifiers = truthmods+clustermods+("Filter:15000","LArHVCorr",),
77 lock = True,
78 )
79 AntiKt4TopoTowers = JetDefinition("AntiKt",0.4,cst["TopoTower"],
80 ghostdefs = standardghosts+["TrackLRT"]+flavourghosts,
81 modifiers = truthmods+clustermods+("Filter:15000","LArHVCorr",),
82 lock = True,
83 )
84 AntiKt4TopoTowersSK = JetDefinition("AntiKt",0.4,cst["TopoTowerSK"],
85 ghostdefs = standardghosts+["TrackLRT"]+flavourghosts,
86 modifiers = truthmods+clustermods+("Filter:15000","LArHVCorr",),
87 lock = True,
88 )
89
90 jetList = [AntiKt4EMTopo422, AntiKt4EMTopo422SK, AntiKt4TopoTowers, AntiKt4TopoTowersSK]
91
92 for jd in jetList:
93 acc.merge(JetRecCfg(flags,jd))
94
95 # augmentation tools
96 augmentationTools = []
97
98 # skimming tools
99 skimmingTools = []
100
101 # thinning tools
102 thinningTools = []
103
104 # Finally the kernel itself
105 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
106 acc.addEventAlgo(DerivationKernel(name, AugmentationTools = augmentationTools, ThinningTools = thinningTools, SkimmingTools = skimmingTools))
107 return acc
108
109

Variable Documentation

◆ logJETM42

python.JETM42.logJETM42 = logging.getLogger('JETM42')

Definition at line 9 of file JETM42.py.