Skip to content
Snippets Groups Projects

Reduce the rates of double-charm lines in B&Q wg

Merged Hongjie Mu requested to merge hongjie_bandq_newdoublecharm into master
Files
3
@@ -11,6 +11,7 @@
"""
Definition of B&Q c-hadrons
"""
import math
import Functors as F
from Functors.math import in_range
@@ -195,3 +196,48 @@ def make_omegac(particles,
am_max=am_max,
m_min=m_min,
m_max=m_max)
@configurable
def make_tightomegac(particles,
descriptor,
name="bandq_tightOmegac",
am_min=2630 * MeV,
am_max=2750 * MeV,
comb_sum_pt_min=3000.0 * MeV,
comb_pt_min_at_least_one=1000.0 * MeV,
comb_pt_min_at_least_two=400.0 * MeV,
comb_mipchi2_min_at_least_one=8.0,
comb_mipchi2_min_at_least_two=6.0,
pt_min=1000.0 * MeV,
vtx_chi2pdof_max=10,
bpvltime_min=0.2 * picosecond,
apt_min=950 * MeV,
bpvdira_min=math.cos(0.01),
achi2_doca_max=25,
m_min=2640 * MeV,
m_max=2740 * MeV):
pvs = make_pvs()
combination_code = require_all(
in_range(am_min, F.MASS, am_max), F.PT > apt_min,
F.DOCACHI2(1, 2) < achi2_doca_max,
F.DOCACHI2(1, 3) < achi2_doca_max,
F.DOCACHI2(2, 3) < achi2_doca_max,
F.SUM(F.PT) > comb_sum_pt_min,
F.SUM(F.PT > comb_pt_min_at_least_one) >= 1,
F.SUM(F.PT > comb_pt_min_at_least_two) >= 2,
F.SUM(F.MINIPCHI2(pvs) > comb_mipchi2_min_at_least_one) >= 1,
F.SUM(F.MINIPCHI2(pvs) > comb_mipchi2_min_at_least_two) >= 2)
vertex_code = require_all(
in_range(m_min, F.MASS, m_max), F.PT > pt_min,
F.CHI2DOF < vtx_chi2pdof_max,
F.BPVDIRA(pvs) > bpvdira_min,
F.BPVLTIME(pvs) > bpvltime_min)
return ParticleCombiner(
name=name,
Inputs=particles,
DecayDescriptor=descriptor,
CombinationCut=combination_code,
CompositeCut=vertex_code)
Loading