Skip to content
Snippets Groups Projects

NOPID configuration flags for selection

Merged Ivan Polyakov requested to merge bandq_ipolyako_nopid into master
6 files
+ 58
36
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -30,9 +30,9 @@ from Hlt2Conf.standard_particles import (
import Functors as F
from Functors.math import in_range
from Hlt2Conf.lines.config_pid import config_pid
from Hlt2Conf.lines.config_pid import nopid_hadrons
if config_pid["NOPIDHADRONS"]:
if nopid_hadrons():
make_pions = make_long_pions
make_kaons = make_long_kaons
make_protons = make_long_protons
@@ -63,7 +63,7 @@ def make_charged_hadrons(make_particles=make_pions,
in_range(eta_min, F.ETA, eta_max),
F.MINIPCHI2(pvs) > mipchi2dvprimary_min)
if config_pid["NOPIDHADRONS"]:
if nopid_hadrons():
pid = None
if pid is not None:
@@ -102,7 +102,7 @@ def make_detached_pions_tightpid(name="bandq_detached_pions_tightpid",
Return B&Q detached pions with tight pid cut.
"""
if config_pid["NOPIDHADRONS"]:
if nopid_hadrons():
cut_pid = F.FILTER(pid)
else:
cut_pid = None
@@ -135,7 +135,7 @@ def make_detached_kaons_tightpid(name="bandq_detached_kaons_tightpid",
Return B&Q detached kaons with tight pid cut.
"""
if config_pid["NOPIDHADRONS"]:
if nopid_hadrons():
cut_pid = F.FILTER(pid)
else:
cut_pid = None
@@ -168,7 +168,7 @@ def make_detached_protons_tightpid(name="bandq_detached_protons_tightpid",
Return B&Q detached protons with tight pid cut.
"""
if config_pid["NOPIDHADRONS"]:
if nopid_hadrons():
cut_pid = F.FILTER(pid)
else:
cut_pid = None
Loading