Skip to content
Snippets Groups Projects

Include Jet energy calibration option in FastJetBuilder

Merged Murilo Santana Rangel requested to merge helder_Jets_with_JEC into master
All threads resolved!
Files
2
@@ -41,12 +41,15 @@ all_lines = {}
@configurable
def make_jets(pflow,
pt_min=10 * GeV,
JetsByVtx=False,
tags=None,
useflightdirectionfortag=False):
jets = build_jets(pflow, JetsByVtx)
def make_jets(
pflow,
pt_min=10 * GeV,
JetsByVtx=False,
tags=None,
applyJEC=False, # Jet energy correction, JEC config in ..standard_jets.build_jets
useflightdirectionfortag=False,
name=""):
jets = build_jets(pflow, JetsByVtx, applyJEC, name='JetBuilder' + name)
if tags is not None:
taggedjets = tag_jets(
@@ -108,6 +111,49 @@ def jetpt10_func_line(name='Hlt2JetsPt10Line', prescale=1):
)
@register_line_builder(all_lines)
@configurable
def jetpt10JEC_func_line(name='Hlt2JetsPt10JECLine', prescale=1):
pflow = make_particleflow()
jets = make_jets(
pflow=pflow, pt_min=10 * GeV, applyJEC=True, name="Pt10_JEC")
return HltLine(
name=name,
algs=upfront_reconstruction() + [jets],
prescale=prescale,
)
@register_line_builder(all_lines)
@configurable
def jetpt10byPVs_func_line(name='Hlt2JetsPt10byPVsLine', prescale=1):
pflow = make_particleflow()
jets = make_jets(
pflow=pflow, pt_min=10 * GeV, JetsByVtx=True, name="Pt10_byPVs")
return HltLine(
name=name,
algs=upfront_reconstruction() + [jets],
prescale=prescale,
)
@register_line_builder(all_lines)
@configurable
def jetpt10byPVsJEC_func_line(name='Hlt2JetsPt10byPVsJECLine', prescale=1):
pflow = make_particleflow()
jets = make_jets(
pflow=pflow,
pt_min=10 * GeV,
JetsByVtx=True,
applyJEC=True,
name="Pt10_byPVs_JEC")
return HltLine(
name=name,
algs=upfront_reconstruction() + [jets],
prescale=prescale,
)
@register_line_builder(all_lines)
@configurable
def onlytrack_jetpt10_func_line(name='Hlt2TrackJetsPt10Line', prescale=1):
Loading