|
ATLAS Offline Software
|
◆ cellInputCfg()
StepOutput python.HLT.MET.METRecoSequencesConfig.cellInputCfg |
( |
|
flags, |
|
|
** |
recoDict |
|
) |
| |
Create the cell inputs
Definition at line 61 of file METRecoSequencesConfig.py.
62 """Create the cell inputs"""
64 return StepOutput.create(acc, Cells=acc.getPrimary().CellsName)
◆ clusterInputCfg()
StepOutput python.HLT.MET.METRecoSequencesConfig.clusterInputCfg |
( |
|
flags, |
|
|
** |
recoDict |
|
) |
| |
Create the cluster inputs
Definition at line 68 of file METRecoSequencesConfig.py.
69 """Create the cluster inputs"""
70 if recoDict[
"calib"] ==
"em":
72 clusters = em_clusters
73 elif recoDict[
"calib"] ==
"lcw":
75 clusters = lc_clusters
77 raise ValueError(f
"Invalid cluster calibration '{recoDict['calib']}'")
79 if recoDict.get(
"constitmod"):
85 constit, flags, context=jetRecoDict.get(
"trkopt",
"default"),
88 clusters = constit.containername
90 return StepOutput.create(acc, Clusters=clusters)
◆ cvfClusterInputCfg()
StepOutput python.HLT.MET.METRecoSequencesConfig.cvfClusterInputCfg |
( |
|
flags, |
|
|
** |
recoDict |
|
) |
| |
Create the clusters with CVF decorated
Definition at line 162 of file METRecoSequencesConfig.py.
163 """Create the clusters with CVF decorated"""
164 inputs = StepOutput.merge(
170 CompFactory.HLT.MET.CVFAlg(
171 f
"{recoDict['calib']}ftfClusterCVFAlg",
172 InputClusterKey=inputs[
"Clusters"],
173 InputTrackKey=inputs[
"Tracks"],
174 InputVertexKey=inputs[
"Vertices"],
176 TrackSelectionTool=CompFactory.InDet.InDetTrackSelectionTool(
177 CutLevel=
"TightPrimary"
179 TVATool=acc.popToolsAndMerge(
182 TrackContName=inputs[
"Tracks"],
183 VertexContName=inputs[
"Vertices"]
186 ExtensionTool=CompFactory.ApproximateTrackToLayerTool(),
190 CompFactory.HLT.MET.CVFPrepAlg(
191 f
"{recoDict['calib']}ftfClusterCVFPrepAlg",
192 InputClusterKey=inputs[
"Clusters"],
194 OutputCategoryKey=
"PUClassification",
197 return StepOutput.create(acc, inputs, CVF=
"CVF", PUCategory=
"PUClassification")
◆ jetInputCfg()
StepOutput python.HLT.MET.METRecoSequencesConfig.jetInputCfg |
( |
|
flags, |
|
|
bool |
force_tracks = False , |
|
|
** |
recoDict |
|
) |
| |
Create the input jets
Set force_tracks to True to require tracks and ensure that they are ghost-associated
to the jets.
Returns the accumulators and (jets, jetDef)
Definition at line 201 of file METRecoSequencesConfig.py.
201 def jetInputCfg(flags, force_tracks: bool =
False, **recoDict) -> StepOutput:
202 """Create the input jets
204 Set force_tracks to True to require tracks and ensure that they are ghost-associated
207 Returns the accumulators and (jets, jetDef)
210 recoDict[
"trkopt"] =
"ftf"
219 inputs = StepOutput()
220 if jrd[
"trkopt"] ==
"ftf":
222 if jrd[
"constitType"] ==
"pf":
230 jetName, jetDef = jetDefDict[
'final']
233 return StepOutput.create(
234 acc, inputs, Jets=jetName, JetDef=jetDef, **jetDef._contextDic
◆ jetRecoDictForMET()
dict[str, Any] python.HLT.MET.METRecoSequencesConfig.jetRecoDictForMET |
( |
** |
recoDict | ) |
|
Get a jet reco dict that's usable for the MET slice
Definition at line 34 of file METRecoSequencesConfig.py.
35 """Get a jet reco dict that's usable for the MET slice"""
36 from ..Jet.JetRecoCommon
import getJetCalibDefaultString, jetRecoDictToString
37 from ..Jet.JetRecoCommon
import recoKeys
as jetRecoKeys
38 from ..Menu.SignatureDicts
import JetChainParts_Default
40 jrd = {k: recoDict.get(k, JetChainParts_Default[k])
for k
in jetRecoKeys}
43 jrd[
"clusterCalib"] = recoDict[
"calib"]
47 jrd[
"constitMod"] = recoDict.get(
"constitmod",
"")
49 if jrd[
"constitType"] ==
"pf":
50 jrd[
"clusterCalib"] =
"em"
52 if jrd[
"jetCalib"] ==
"default":
54 if jrd[
"constitType"] !=
"tc" or "gsc" in jrd[
"jetCalib"]:
◆ mergedPFOInputCfg()
StepOutput python.HLT.MET.METRecoSequencesConfig.mergedPFOInputCfg |
( |
|
flags, |
|
|
** |
recoDict |
|
) |
| |
Create the merged PFO inputs
Definition at line 144 of file METRecoSequencesConfig.py.
145 """Create the merged PFO inputs"""
147 alg = CompFactory.HLT.MET.FlowElementPrepAlg(
148 f
"{pfos['PFOPrefix']}METTrigPFOPrepAlg",
149 InputNeutralKey=pfos[
"nPFOs"],
150 InputChargedKey=pfos[
"cPFOs"],
151 OutputKey=f
"{pfos['PFOPrefix']}METTrigCombinedParticleFlowObjects",
152 OutputCategoryKey=
"PUClassification",
155 acc.addEventAlgo(alg, primary=
True)
156 return StepOutput.create(
157 acc, pfos, MergedPFOs=alg.OutputKey, PUCategory=alg.OutputCategoryKey
◆ pfoInputCfg()
StepOutput python.HLT.MET.METRecoSequencesConfig.pfoInputCfg |
( |
|
flags, |
|
|
** |
recoDict |
|
) |
| |
Get the PFO inputs
Definition at line 104 of file METRecoSequencesConfig.py.
105 """Get the PFO inputs"""
106 inputs = StepOutput.merge(
114 clustersin=inputs[
"Clusters"],
116 tracksin=inputs[
"Tracks"],
117 verticesin=inputs[
"Vertices"],
118 cellsin=inputs[
"Cells"],
125 **(recoDict | {
"trkopt":
"ftf",
"constitType":
"pf"})
131 pfoPrefix = constit.containername
132 if pfoPrefix.endswith(
"ParticleFlowObjects"):
133 pfoPrefix = pfoPrefix[:-19]
134 return StepOutput.create(
138 cPFOs=pfoPrefix +
"ChargedParticleFlowObjects",
139 nPFOs=pfoPrefix +
"NeutralParticleFlowObjects",
◆ trackingInputCfg()
StepOutput python.HLT.MET.METRecoSequencesConfig.trackingInputCfg |
( |
|
flags, |
|
|
** |
recoDict |
|
) |
| |
Get the tracking inputs
Definition at line 94 of file METRecoSequencesConfig.py.
95 """Get the tracking inputs"""
96 return StepOutput.create(
99 **flags.Jet.Context.ftf,
def jetmetTopoClusteringCfg(flags, RoIs)
JetMetSpecific TopoClustering####################################.
def hltCaloCellMakerCfg(flags, name=None, roisKey='UNSPECIFIED', CellsName=None, monitorCells=False, doTau=False)
def JetRecoCfg(flags, **jetDefDict)
Configuration of the HLT jet reconstruction Takes as input the dictionaries of JetDefs from the data ...
def JetRecoDataDeps(flags, **jetRecoDict)
Data dependency generation for the stages of jet reconstruction This is used to precompute the collec...
StepOutput pfoInputCfg(flags, **recoDict)
def defineJetConstit(jetRecoDict, clustersKey=None, pfoPrefix=None)
— Jet Object getters —
def getConstitModAlg_nojetdef(constitSeq, flags, context="default", monTool=None)
def getJetCalibDefaultString(recoAlg, constitType, trkopt)
StepOutput jetInputCfg(flags, bool force_tracks=False, **recoDict)
def jetmetTopoClusteringCfg_LC(flags, RoIs)
def jetRecoDictToString(jetRecoDict)
— General reco dict handling —
def JetFSTrackingCfg(flags, trkopt, RoIs)
StepOutput clusterInputCfg(flags, **recoDict)
StepOutput trackingInputCfg(flags, **recoDict)
StepOutput cellInputCfg(flags, **recoDict)
StepOutput mergedPFOInputCfg(flags, **recoDict)
StepOutput cvfClusterInputCfg(flags, **recoDict)
dict[str, Any] jetRecoDictForMET(**recoDict)