Skip to content
Snippets Groups Projects
Commit f9032558 authored by Sarah Louise Williams's avatar Sarah Louise Williams
Browse files

Fix topocluster naming and input sequence handling in JetRecConfig

parent 1cc2c6b2
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!35036METReconstruction: First attempt at preparing the MET Reconstruction code for the run III configuration system
......@@ -114,12 +114,7 @@ class JetConstit(object):
# Jets could specify a filter e.g. pt cut or JVT??
modstring = ""
if self.__modifiers:
for mod in self.__modifiers:
# Handle special case of topocluster state
if mod in ["EM","LC"]:
self.label += mod
else:
modstring += mod
modstring = "".join(self.__modifiers)
self.label += labelnames[self.basetype]
if self.basetype!=xAODType.Jet:
......@@ -127,6 +122,10 @@ class JetConstit(object):
if self.basetype==xAODType.TruthParticle:
self.label = self.label.replace("NoWZ","WZ")
if self.basetype==xAODType.CaloCluster:
self.label = self.label.replace("TopoEM","EMTopo")
self.label = self.label.replace("TopoLC","LCTopo")
containernames = {
xAODType.CaloCluster: "TopoClusters",
xAODType.ParticleFlow: "ParticleFlowObjects",
......
......@@ -65,11 +65,11 @@ def JetRecCfg(jetdef, configFlags, jetnameprefix="",jetnamesuffix="", jetnameove
#
# To facilitate running in serial mode, we also prepare
# the constituent PseudoJetGetter here (needed for rho)
inputcomps = JetInputCfg(deps["inputs"], configFlags, sequenceName=jetsfullname)
inputcomps = JetInputCfg(deps["inputs"], configFlags)
constitpjalg = inputcomps.getPrimary()
constitpjkey = constitpjalg.PJGetter.OutputContainer
components.merge(inputcomps)
components.merge(inputcomps,sequencename)
pjs = [constitpjkey]
# Schedule the ghost PseudoJetGetterAlgs
......@@ -235,13 +235,13 @@ def getEventShapeAlg( constit, constitpjkey, nameprefix="" ):
#
# This includes constituent modifications, track selection, copying of
# input truth particles and event density calculations
def JetInputCfg(inputdeps, configFlags, sequenceName):
def JetInputCfg(inputdeps, configFlags):
jetlog.info("Setting up jet inputs.")
components = ComponentAccumulator(sequenceName)
components = ComponentAccumulator()
jetlog.info("Inspecting input file contents")
filecontents = configFlags.Input.Collections
constit = inputdeps[0]
# Truth and track particle inputs are handled later
if constit.basetype not in [xAODType.TruthParticle, xAODType.TrackParticle] and constit.inputname!=constit.rawname:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment