diff --git a/Hlt/Hlt2Conf/python/Hlt2Conf/lines/semileptonic/HbToHcLNu.py b/Hlt/Hlt2Conf/python/Hlt2Conf/lines/semileptonic/HbToHcLNu.py index 866359e6309447abf3ebeb75cb5f9da01494e87e..23bd65d8a4a7ba7a72e8143e57815eb9fe1a5491 100644 --- a/Hlt/Hlt2Conf/python/Hlt2Conf/lines/semileptonic/HbToHcLNu.py +++ b/Hlt/Hlt2Conf/python/Hlt2Conf/lines/semileptonic/HbToHcLNu.py @@ -52,9 +52,13 @@ def make_bctojpsilnu_jpsitomumu(process, lepton): descriptor = "[B_c- -> J/psi(1S) e-]cc" else: raise ConfigurationError("Lepton must be either mu or e") - # 120 MeV around Jpsi mass + # 100 MeV around Jpsi mass and psi2s masses jpsi = make_jpsi_tomumu( - comb_m_min=2977 * MeV, comb_m_max=3217 * MeV, vchi2pdof_max=4 + comb_m_min=2997 * MeV, + comb_m_max=3197 * MeV, + comb_m_min2=3586 * MeV, + comb_m_max2=3786 * MeV, + vchi2pdof_max=4, ) bc_jpsimum = make_b2xclnu( [jpsi, leptons], @@ -77,8 +81,10 @@ def make_bctojpsilnu_jpsitomumu_fakelepton(process, lepton): else: raise ConfigurationError("Lepton must be either mu or e") jpsi = make_jpsi_tomumu( - comb_m_min=2977 * MeV, - comb_m_max=3217 * MeV, + comb_m_min=2997 * MeV, + comb_m_max=3197 * MeV, + comb_m_min2=3586 * MeV, + comb_m_max2=3786 * MeV, comb_pt_any_min=None, comb_pt_sum_min=None, comb_docachi2_max=None, diff --git a/Hlt/Hlt2Conf/python/Hlt2Conf/lines/semileptonic/builders/charm_hadron_builder.py b/Hlt/Hlt2Conf/python/Hlt2Conf/lines/semileptonic/builders/charm_hadron_builder.py index 0bcb92ad969f180a588083f1cdd76ce6e620c1ff..39aead4195c4235dbf88d46a6b7bf283326d03ed 100644 --- a/Hlt/Hlt2Conf/python/Hlt2Conf/lines/semileptonic/builders/charm_hadron_builder.py +++ b/Hlt/Hlt2Conf/python/Hlt2Conf/lines/semileptonic/builders/charm_hadron_builder.py @@ -47,6 +47,8 @@ def make_Hc_to_nbody( descriptor, comb_m_min, comb_m_max, + comb_m_min2=None, + comb_m_max2=None, mother_m_min=None, mother_m_max=None, mother_pt_min=None, @@ -77,6 +79,10 @@ def make_Hc_to_nbody( Lower invariant mass limit for the particle combination. comb_m_max : Upper invariant mass limit for the particle combination. + comb_m_min2 : + Lower invariant mass limit for the second particle combination. + comb_m_max2 : + Upper invariant mass limit for the second particle combination. comb_pt_any_min : Minimum pt that at least one of the particles in the combination needs to have. comb_pt_sum_min : @@ -97,6 +103,10 @@ def make_Hc_to_nbody( Minimum distance of flight in the transverse plane. """ combination_code = in_range(comb_m_min, F.MASS, comb_m_max) + if (comb_m_min2 is not None) and (comb_m_max2 is not None): + combination_code = F.require_any( + combination_code, in_range(comb_m_min2, F.MASS, comb_m_max2) + ) if comb_pt_min is not None: combination_code = F.require_all(combination_code, F.PT > comb_pt_min) if comb_pt_any_min is not None: @@ -408,6 +418,8 @@ def make_jpsi_tomumu( name="SLB_JpsiToMuMuBuilder_{hash}", comb_m_min=3047 * MeV, comb_m_max=3147 * MeV, + comb_m_min2=None, + comb_m_max2=None, comb_pt_any_min=1200 * MeV, comb_pt_sum_min=3500 * MeV, comb_docachi2_max=20.0, @@ -437,6 +449,8 @@ def make_jpsi_tomumu( bpvfdchi2_min=bpvfdchi2_min, bpvdira_min=bpvdira_min, bpvvdz_min=bpvvdz_min, + comb_m_min2=comb_m_min2, + comb_m_max2=comb_m_max2, comb_pt_min=None, comb_pt_any_min=comb_pt_any_min, comb_pt_sum_min=comb_pt_sum_min,