Skip to content
Snippets Groups Projects
Commit b5081b25 authored by Suzanne Klaver's avatar Suzanne Klaver
Browse files

fix formating previous MR

parent 8d9405bb
No related branches found
No related tags found
1 merge request!1453fix formatting previous MR
Pipeline #3743489 passed
......@@ -22,12 +22,11 @@ from Hlt2Conf.algorithms import ParticleContainersMerger
from .builders.base_builder import make_tauons_muonic_decay, make_fake_tauons_muonic_decay
from .builders.base_builder import make_tauons_electronic_decay, make_fake_tauons_electronic_decay
from .builders.base_builder import make_muons_from_b, make_electrons_from_b, make_candidate, make_fake_muons_from_b_notIsMuon
#from .builders.base_builder import make_pions, make_kaons
from .builders.base_builder import make_muons_from_b, make_electrons_from_b, make_candidate
from .builders.charm_hadron_builder import make_dplus_tokpipi, make_ds_tokkpi, make_d0_tokpi, make_lambdac_topkpi
from .builders.b_builder import make_b2xtaunu
from GaudiKernel.SystemOfUnits import MeV, GeV, MeV, mm
from GaudiKernel.SystemOfUnits import MeV, GeV, mm
import Functors as F
from PyConf import ConfigurationError
......@@ -155,7 +154,7 @@ def make_bstodstaunu_dstokkpi_tautolnunu(process, lepton):
def make_bstodstaunu_dstokkpi_fakelepton(process, lepton):
"""
Selection for the decay Bs0 -> Ds-(-> K K pi) tau+(-> l nu nu) nu and combinatorial (same sign), with a fake electron.
Selection for the decay Bs0 -> Ds-(-> K K pi) tau+(-> l nu nu) nu and combinatorial (same sign), with a fake lepton.
"""
if lepton == "mu":
fake_tauons = make_fake_tauons_muonic_decay()
......@@ -223,6 +222,7 @@ def make_lbtolctaunu_lctopkpi_tautolnu(process, lepton):
return line_alg
def make_b0tod0taunu_d0tokpi_tautomununu(process, lepton):
"""
Selection for the decay B0 -> D0(-> K pi) X tau(-> mu nu nu) nu.
......@@ -239,38 +239,39 @@ def make_b0tod0taunu_d0tokpi_tautomununu(process, lepton):
else:
raise ConfigurationError("Lepton must be either mu or e")
with make_candidate.bind(p_min=5.0*GeV):
with make_candidate.bind(p_min=5.0 * GeV):
d0s = make_d0_tokpi(
comb_docachi2_max=None,
vchi2pdof_max=4,
bpvdira_min=0.999,
comb_pt_min=2000*MeV,
comb_pt_any_min=800*MeV,
comb_pt_sum_min=2.5*GeV,
comb_doca_max=0.1*mm,
daughter_pt_min=300.0*MeV,
daughter_trghostprob_max=0.5,
daughter_mipchi2_min=9.0,
kaon_pid=(F.PID_K>4.0),
pion_pid=(F.PID_K<2.0))
comb_docachi2_max=None,
vchi2pdof_max=4,
bpvdira_min=0.999,
comb_pt_min=2000 * MeV,
comb_pt_any_min=800 * MeV,
comb_pt_sum_min=2.5 * GeV,
comb_doca_max=0.1 * mm,
daughter_pt_min=300.0 * MeV,
daughter_trghostprob_max=0.5,
daughter_mipchi2_min=9.0,
kaon_pid=(F.PID_K > 4.0),
pion_pid=(F.PID_K < 2.0))
b0s_rightsign = make_b2xtaunu(
particles=[d0s,taus],
descriptor=decay_descriptor,
comb_m_max=10000.0*MeV)
particles=[d0s, taus],
descriptor=decay_descriptor,
comb_m_max=10000.0 * MeV)
b0s_wrongsign = make_b2xtaunu(
particles=[d0s,taus],
descriptor=decay_descriptor,
comb_m_max=10000.0*MeV)
particles=[d0s, taus],
descriptor=decay_descriptor,
comb_m_max=10000.0 * MeV)
line_alg = ParticleContainersMerger([b0s_rightsign, b0s_wrongsign])
return line_alg
def make_b0tod0taunu_d0tokpi_fakemuon(process, lepton):
def make_b0tod0taunu_d0tokpi_fakelepton(process, lepton):
"""
Selection for the decay B0 -> D0(-> K pi) X tau(-> mu nu nu) nu, with a fake muon.
Selection for the decay B0 -> D0(-> K pi) X tau(-> l nu nu) nu, with a fake lepton.
"""
if lepton == "mu":
......@@ -282,30 +283,30 @@ def make_b0tod0taunu_d0tokpi_fakemuon(process, lepton):
else:
raise ConfigurationError("Lepton must be either mu or e")
with make_candidate.bind(p_min=5.0*GeV):
with make_candidate.bind(p_min=5.0 * GeV):
d0s = make_d0_tokpi(
comb_docachi2_max=None,
vchi2pdof_max=4,
bpvdira_min=0.999,
comb_pt_min=2000*MeV,
comb_pt_any_min=800*MeV,
comb_pt_sum_min=2.5*GeV,
comb_doca_max=0.1*mm,
daughter_pt_min=300.0*MeV,
daughter_trghostprob_max=0.5,
daughter_mipchi2_min=9.0,
kaon_pid=(F.PID_K>4.0),
pion_pid=(F.PID_K<2.0))
comb_docachi2_max=None,
vchi2pdof_max=4,
bpvdira_min=0.999,
comb_pt_min=2000 * MeV,
comb_pt_any_min=800 * MeV,
comb_pt_sum_min=2.5 * GeV,
comb_doca_max=0.1 * mm,
daughter_pt_min=300.0 * MeV,
daughter_trghostprob_max=0.5,
daughter_mipchi2_min=9.0,
kaon_pid=(F.PID_K > 4.0),
pion_pid=(F.PID_K < 2.0))
b0s_rightsign = make_b2xtaunu(
particles=[d0s,taus],
descriptor=decay_descriptor,
comb_m_max=10000.0*MeV)
particles=[d0s, taus],
descriptor=decay_descriptor,
comb_m_max=10000.0 * MeV)
b0s_wrongsign = make_b2xtaunu(
particles=[d0s,taus],
descriptor=decay_descriptor,
comb_m_max=10000.0*MeV)
particles=[d0s, taus],
descriptor=decay_descriptor,
comb_m_max=10000.0 * MeV)
line_alg = ParticleContainersMerger([b0s_rightsign, b0s_wrongsign])
......
......@@ -26,7 +26,7 @@ from Moore.config import HltLine, register_line_builder
#from GaudiKernel.SystemOfUnits import MeV
from .builders import sl_line_prefilter
from .HbToHcTauNu_TauToLNuNu import make_b0todptaunu_dptokpipi_tautolnunu, make_b0todptaunu_dptokpipi_fakelepton, make_butod0taunu_d0tokpi_tautolnunu, make_butod0taunu_d0tokpi_fakelepton, make_bstodstaunu_dstokkpi_tautolnunu, make_bstodstaunu_dstokkpi_fakelepton, make_lbtolctaunu_lctopkpi_tautolnu, make_b0tod0taunu_d0tokpi_tautomununu, make_b0tod0taunu_d0tokpi_fakemuon
from .HbToHcTauNu_TauToLNuNu import make_b0todptaunu_dptokpipi_tautolnunu, make_b0todptaunu_dptokpipi_fakelepton, make_butod0taunu_d0tokpi_tautolnunu, make_butod0taunu_d0tokpi_fakelepton, make_bstodstaunu_dstokkpi_tautolnunu, make_bstodstaunu_dstokkpi_fakelepton, make_lbtolctaunu_lctopkpi_tautolnu, make_b0tod0taunu_d0tokpi_tautomununu, make_b0tod0taunu_d0tokpi_fakelepton
from .HbToHcLNu import make_butod0lnu_d0tokpi, make_butod0lnu_d0tokpi_fakelepton, make_b0todplnu_dptokpipi, make_b0todplnu_dptokpipi_fakelepton, make_bstodslnu_dstokkpi, make_bstodslnu_dstokkpi_fakelepton, make_lbtolclnu_lctopkpi
PROCESS = 'hlt2'
......@@ -360,6 +360,7 @@ def lbtolcenu_lctopkpi_line(name="Hlt2SLB_LbToLcENu_LcToPKPiLine", prescale=1):
return HltLine(
name=name, prescale=prescale, algs=sl_line_prefilter() + [line_alg])
@register_line_builder(hlt2_lines)
def hlt2_b0tod0taunu_d0tokpi_tautomununu_line(
name="Hlt2SLB_B0ToD0TauNu_D0ToKPi_TauToMuNuNu_Line", prescale=1):
......@@ -371,35 +372,37 @@ def hlt2_b0tod0taunu_d0tokpi_tautomununu_line(
return HltLine(
name=name, prescale=prescale, algs=sl_line_prefilter() + [line_alg])
@register_line_builder(hlt2_lines)
def hlt2_b0tod0taunu_d0tokpi_fakemuon_line(
name="Hlt2SLB_B0ToD0TauNu_D0ToKPi_FakeMuon_Line", prescale=0.1):
"""
SL Hlt2 line for the decay B0 -> D0(-> K pi) X tau(-> mu nu nu) nu, with a fake muon.
"""
line_alg = make_b0tod0taunu_d0tokpi_fakemuon(
line_alg = make_b0tod0taunu_d0tokpi_fakelepton(
process=PROCESS, lepton="mu")
return HltLine(
name=name, prescale=prescale, algs=sl_line_prefilter() + [line_alg])
@register_line_builder(hlt2_lines)
def hlt2_b0tod0taunu_d0tokpi_tautomununu_line(
def hlt2_b0tod0taunu_d0tokpi_tautoenunu_line(
name="Hlt2SLB_B0ToD0TauNu_D0ToKPi_TauToENuNu_Line", prescale=1):
"""
SL Hlt2 line for the decay B0 -> D0(-> K pi) X tau(-> mu nu nu) nu.
SL Hlt2 line for the decay B0 -> D0(-> K pi) X tau(-> e nu nu) nu.
"""
line_alg = make_b0tod0taunu_d0tokpi_tautomununu(
process=PROCESS, lepton="e")
return HltLine(
name=name, prescale=prescale, algs=sl_line_prefilter() + [line_alg])
@register_line_builder(hlt2_lines)
def hlt2_b0tod0taunu_d0tokpi_fakemuon_line(
def hlt2_b0tod0taunu_d0tokpi_fakeelectron_line(
name="Hlt2SLB_B0ToD0TauNu_D0ToKPi_FakeElectron_Line", prescale=0.1):
"""
SL Hlt2 line for the decay B0 -> D0(-> K pi) X tau(-> mu nu nu) nu, with a fake muon.
SL Hlt2 line for the decay B0 -> D0(-> K pi) X tau(-> e nu nu) nu, with a fake electron.
"""
line_alg = make_b0tod0taunu_d0tokpi_fakemuon(
process=PROCESS, lepton="e")
line_alg = make_b0tod0taunu_d0tokpi_fakelepton(process=PROCESS, lepton="e")
return HltLine(
name=name, prescale=prescale, algs=sl_line_prefilter() + [line_alg])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment