Commit 65d858e4 authored by Teng Jian Khoo's avatar Teng Jian Khoo
Browse files

Remove duplicated code + make truth parton pseudojets ghosts

parent 47a26fd0
......@@ -30,11 +30,6 @@ def PrepareTruthJetInputs(algseq):
#IncludePromptPhotons=False,
BarCodeFromMetadata=0)
ToolSvc += ParticleJetToolsConf.CopyTruthJetParticles("truthpartcopy",
OutputName="JetInputTruthParticles",
MCTruthClassifier=ToolSvc.JetMCTruthClassifier,
BarCodeFromMetadata=0)
ToolSvc += ParticleJetToolsConf.CopyTruthPartons("truthpartonscopy",
OutputName="TruthLabelPartons",
PtMin=5000)
......@@ -98,10 +93,10 @@ def ScheduleAntiKtTruthJets(jetradius,algseq,mods=""):
truthpartonget = ToolSvc.truthpartonget
else:
truthpartonget = JetRecConf.PseudoJetGetter("truthpartonget",
Label = "TruthPartons",
Label = "GhostTruthPartons",
InputContainer = ToolSvc.truthpartonscopy.OutputName,
OutputContainer = "PseudoJetTruthPartons",
GhostScale = 0.0,
OutputContainer = "PseudoJetGhostTruthPartons",
GhostScale = 1e-40,
SkipNegativeEnergy = True,
)
ToolSvc += truthpartonget
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment