Commit 5416995c authored by Marian Stahl's avatar Marian Stahl
Browse files

b2d0mu snapshot

parent 9974e011
Pipeline #3423556 failed with stages
in 2 minutes and 13 seconds
......@@ -64,7 +64,6 @@ _D0_M = 1864.84 * MeV
all_lines = {}
@configurable
def make_selected_particles(particles=make_has_rich_long_pions(),
make_pvs=make_pvs,
trghostprob_max=1,
......@@ -81,7 +80,6 @@ def make_selected_particles(particles=make_has_rich_long_pions(),
return ParticleFilter(particles, F.FILTER(code))
@configurable
def make_charm_pions(pid_cut=F.PID_K < 0):
"""Return maker for pions filtered by thresholds common to charm decay
product selections (for SL tag).
......@@ -93,7 +91,6 @@ def make_charm_pions(pid_cut=F.PID_K < 0):
p_min=2 * GeV)
@configurable
def make_charm_kaons(pid_cut=F.PID_K > 5):
"""Return maker for kaons filtered by thresholds common to charm decay
product selections (for SL tag).
......@@ -105,7 +102,6 @@ def make_charm_kaons(pid_cut=F.PID_K > 5):
p_min=2 * GeV)
@configurable
def make_tag_muons(pid_cut=F.PID_MU > 0):
"""Return maker for tagging muons.
"""
......@@ -116,17 +112,11 @@ def make_tag_muons(pid_cut=F.PID_MU > 0):
p_min=3 * GeV)
@configurable
def make_charm_soft_pions(particles=make_long_pions(),
pt_min=150 * MeV,
p_min=2 * GeV,
trghostprob_max=0.3):
code = require_all(F.PT > pt_min, F.P > p_min,
F.GHOSTPROB < trghostprob_max)
def make_charm_soft_pions(particles, pt_min=150 * MeV, p_min=2 * GeV, trghostprob_max=0.3):
code = require_all(F.PT > pt_min, F.P > p_min, F.GHOSTPROB < trghostprob_max)
return ParticleFilter(particles, F.FILTER(code))
@configurable
def make_dzeros(
particles,
descriptor,
......@@ -152,23 +142,20 @@ def make_dzeros(
CompositeCut=composite_code)
@configurable
def make_dstars(dzeros,
soft_pions,
descriptor,
pvs,
q_comb_m_min=130 * MeV - _PION_M,
q_comb_m_max=165 * MeV - _PION_M,
q_comb_m_min=0 * MeV,
q_comb_m_max=30 * MeV,
vchi2pdof_max=16,
q_m_min=130 * MeV - _PION_M,
q_m_max=160 * MeV - _PION_M):
q_m_min=0 * MeV,
q_m_max=25 * MeV):
combination_code = require_all(
in_range(q_comb_m_min, (F.MASS - F.SUM(F.MASS)), q_comb_m_max))
composite_code = require_all(
F.CHI2DOF < vchi2pdof_max,
# TODO: replace with reconstructed D0 mass, something like: in_range(q_m_min, (F.MASS - F.SUM(F.MASS)), q_m_max)
in_range(q_m_min, (F.MASS - _D0_M - _PION_M), q_m_max))
in_range(q_m_min, F.MASS - F.CHILD(1, F.MASS) - F.CHILD(2, F.MASS), q_m_max))
return ParticleCombiner([dzeros, soft_pions],
DecayDescriptor=descriptor,
......@@ -176,7 +163,6 @@ def make_dstars(dzeros,
CompositeCut=composite_code)
@configurable
def make_bs(ds,
muons,
descriptor,
......@@ -218,158 +204,108 @@ def charm_prefilters():
@register_line_builder(all_lines)
@configurable
def dzero2kpi_for_b2d0mu_line(name='Hlt2CharmD0ToKmPipForBToD0muLine',
prescale=1):
def dzero2kpi_for_b2d0mu_line(name='Hlt2CharmD0ToKmPipForBToD0muLine'):
pvs = make_pvs()
kaons = make_charm_kaons()
pions = make_charm_pions()
dzeros = make_dzeros(
particles=[kaons, pions], descriptor='[D0 -> K- pi+]cc', pvs=pvs)
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [dzeros],
prescale=prescale,
)
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [dzeros])
@register_line_builder(all_lines)
@configurable
def dzero2kk_for_b2d0mu_line(name='Hlt2CharmD0ToKmKpForBToD0muLine',
prescale=1):
def dzero2kk_for_b2d0mu_line(name='Hlt2CharmD0ToKmKpForBToD0muLine'):
pvs = make_pvs()
kaons = make_charm_kaons()
dzeros = make_dzeros(
particles=[kaons, kaons], descriptor='D0 -> K- K+', pvs=pvs)
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [dzeros],
prescale=prescale,
)
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [dzeros])
@register_line_builder(all_lines)
@configurable
def dzero2pipi_for_b2d0mu_line(name='Hlt2CharmD0ToPimPipForBToD0muLine',
prescale=1):
def dzero2pipi_for_b2d0mu_line(name='Hlt2CharmD0ToPimPipForBToD0muLine'):
pvs = make_pvs()
pions = make_charm_pions()
dzeros = make_dzeros(
particles=[pions, pions], descriptor='D0 -> pi- pi+', pvs=pvs)
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [dzeros],
prescale=prescale,
)
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [dzeros])
### Tagged D0 pi lines
@register_line_builder(all_lines)
@configurable
def dstar2d0pi_dzero2kpi_for_b2d0mu_line(
name='Hlt2CharmDstarpToD0pip_D0ToKmPipForBToD0muLine', prescale=1):
name='Hlt2CharmDstarpToD0pip_D0ToKmPipForBToD0muLine'):
pvs = make_pvs()
kaons = make_charm_kaons()
pions = make_charm_pions()
soft_pions = make_charm_soft_pions()
dzeros = make_dzeros(
particles=[kaons, pions], descriptor='[D0 -> K- pi+]cc', pvs=pvs)
dstars = make_dstars(
dzeros=dzeros,
soft_pions=soft_pions,
descriptor='[D*(2010)+ -> D0 pi+]cc',
pvs=pvs)
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [dstars],
prescale=prescale,
)
soft_pions = make_charm_soft_pions(make_long_pions())
dzeros = make_dzeros(particles=[kaons, pions], descriptor='[D0 -> K- pi+]cc', pvs=pvs)
dstars = make_dstars(dzeros=dzeros, soft_pions=soft_pions, descriptor='[D*(2010)+ -> D0 pi+]cc')
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [dstars])
@register_line_builder(all_lines)
@configurable
def dstar2d0pi_dzero2kpi_for_b2d0mu_ws_line(
name='Hlt2CharmDstarpToD0pip_D0ToKmPipForBToD0muWSLine', prescale=1):
name='Hlt2CharmDstarpToD0pip_D0ToKmPipForBToD0muWSLine'):
pvs = make_pvs()
kaons = make_charm_kaons()
pions = make_charm_pions()
soft_pions = make_charm_soft_pions()
dzeros = make_dzeros(
particles=[kaons, pions], descriptor='[D0 -> K- pi+]cc', pvs=pvs)
soft_pions = make_charm_soft_pions(make_long_pions())
dzeros = make_dzeros(particles=[kaons, pions], descriptor='[D0 -> K- pi+]cc', pvs=pvs)
dstars = make_dstars(
dzeros=dzeros,
soft_pions=soft_pions,
descriptor='[D*(2010)- -> D0 pi-]cc',
pvs=pvs)
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [dstars],
prescale=prescale,
)
descriptor='[D*(2010)- -> D0 pi-]cc')
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [dstars])
@register_line_builder(all_lines)
@configurable
def dstar2d0pi_dzero2kk_for_b2d0mu_line(
name='Hlt2CharmDstarpToD0pip_D0ToKmKpForBToD0muLine', prescale=1):
name='Hlt2CharmDstarpToD0pip_D0ToKmKpForBToD0muLine'):
pvs = make_pvs()
kaons = make_charm_kaons()
soft_pions = make_charm_soft_pions()
soft_pions = make_charm_soft_pions(make_long_pions())
dzeros = make_dzeros(
particles=[kaons, kaons], descriptor='D0 -> K- K+', pvs=pvs)
dstarsm = make_dstars(
dzeros=dzeros,
soft_pions=soft_pions,
descriptor='D*(2010)- -> D0 pi-',
pvs=pvs)
descriptor='D*(2010)- -> D0 pi-')
dstarsp = make_dstars(
dzeros=dzeros,
soft_pions=soft_pions,
descriptor='D*(2010)+ -> D0 pi+',
pvs=pvs)
descriptor='D*(2010)+ -> D0 pi+')
dstars = ParticleContainersMerger([dstarsm, dstarsp])
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [dstars],
prescale=prescale,
)
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [dstars])
@register_line_builder(all_lines)
@configurable
def dstar2d0pi_dzero2pipi_for_b2d0mu_line(
name='Hlt2CharmDstarpToD0pip_D0ToPimPipForBToD0muLine', prescale=1):
name='Hlt2CharmDstarpToD0pip_D0ToPimPipForBToD0muLine'):
pvs = make_pvs()
pions = make_charm_pions()
soft_pions = make_charm_soft_pions()
soft_pions = make_charm_soft_pions(make_long_pions())
dzeros = make_dzeros(
particles=[pions, pions], descriptor='D0 -> pi- pi+', pvs=pvs)
dstarsm = make_dstars(
dzeros=dzeros,
soft_pions=soft_pions,
descriptor='D*(2010)- -> D0 pi-',
pvs=pvs)
descriptor='D*(2010)- -> D0 pi-')
dstarsp = make_dstars(
dzeros=dzeros,
soft_pions=soft_pions,
descriptor='D*(2010)+ -> D0 pi+',
pvs=pvs)
descriptor='D*(2010)+ -> D0 pi+')
dstars = ParticleContainersMerger([dstarsm, dstarsp])
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [dstars],
prescale=prescale,
)
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [dstars])
### Tagged D(*) mu lines
@register_line_builder(all_lines)
@configurable
def b2d0mu_dzero2kpi_line(name='Hlt2CharmBToD0Mu_D0ToKmPipLine', prescale=1):
def b2d0mu_dzero2kpi_line(name='Hlt2CharmBToD0Mu_D0ToKmPipLine'):
pvs = make_pvs()
kaons = make_charm_kaons()
pions = make_charm_pions()
......@@ -377,17 +313,11 @@ def b2d0mu_dzero2kpi_line(name='Hlt2CharmBToD0Mu_D0ToKmPipLine', prescale=1):
dzeros = make_dzeros(
particles=[kaons, pions], descriptor='[D0 -> K- pi+]cc', pvs=pvs)
bs = make_bs(dzeros, muons, descriptor='[B- -> D0 mu-]cc', pvs=pvs)
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [bs],
prescale=prescale,
)
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [bs])
@register_line_builder(all_lines)
@configurable
def b2d0mu_dzero2kpi_ws_line(name='Hlt2CharmBToD0Mu_D0ToKmPipWSLine',
prescale=1):
def b2d0mu_dzero2kpi_ws_line(name='Hlt2CharmBToD0Mu_D0ToKmPipWSLine'):
pvs = make_pvs()
kaons = make_charm_kaons()
pions = make_charm_pions()
......@@ -395,16 +325,11 @@ def b2d0mu_dzero2kpi_ws_line(name='Hlt2CharmBToD0Mu_D0ToKmPipWSLine',
dzeros = make_dzeros(
particles=[kaons, pions], descriptor='[D0 -> K- pi+]cc', pvs=pvs)
bs = make_bs(dzeros, muons, descriptor='[B+ -> D0 mu+]cc', pvs=pvs)
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [bs],
prescale=prescale,
)
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [bs])
@register_line_builder(all_lines)
@configurable
def b2d0mu_dzero2kk_line(name='Hlt2CharmBToD0Mu_D0ToKmKpLine', prescale=1):
def b2d0mu_dzero2kk_line(name='Hlt2CharmBToD0Mu_D0ToKmKpLine'):
pvs = make_pvs()
kaons = make_charm_kaons()
muons = make_tag_muons()
......@@ -413,16 +338,11 @@ def b2d0mu_dzero2kk_line(name='Hlt2CharmBToD0Mu_D0ToKmKpLine', prescale=1):
bsm = make_bs(dzeros, muons, descriptor='B- -> D0 mu-', pvs=pvs)
bsp = make_bs(dzeros, muons, descriptor='B+ -> D0 mu+', pvs=pvs)
bs = ParticleContainersMerger([bsm, bsp])
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [bs],
prescale=prescale,
)
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [bs])
@register_line_builder(all_lines)
@configurable
def b2d0mu_dzero2pipi_line(name='Hlt2CharmBToD0Mu_D0ToPimPipLine', prescale=1):
def b2d0mu_dzero2pipi_line(name='Hlt2CharmBToD0Mu_D0ToPimPipLine'):
pvs = make_pvs()
pions = make_charm_pions()
muons = make_tag_muons()
......@@ -431,114 +351,80 @@ def b2d0mu_dzero2pipi_line(name='Hlt2CharmBToD0Mu_D0ToPimPipLine', prescale=1):
bsm = make_bs(dzeros, muons, descriptor='B- -> D0 mu-', pvs=pvs)
bsp = make_bs(dzeros, muons, descriptor='B+ -> D0 mu+', pvs=pvs)
bs = ParticleContainersMerger([bsm, bsp])
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [bs],
prescale=prescale,
)
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [bs])
@register_line_builder(all_lines)
@configurable
def b2dstarmu_dzero2kpi_line(name='Hlt2CharmBToDstarpMu_D0ToKmPipLine',
prescale=1):
def b2dstarmu_dzero2kpi_line(name='Hlt2CharmBToDstarpMu_D0ToKmPipLine'):
pvs = make_pvs()
kaons = make_charm_kaons()
pions = make_charm_pions()
soft_pions = make_charm_soft_pions()
soft_pions = make_charm_soft_pions(make_long_pions())
muons = make_tag_muons()
dzeros = make_dzeros(
particles=[kaons, pions], descriptor='[D0 -> K- pi+]cc', pvs=pvs)
dstars = make_dstars(
dzeros=dzeros,
soft_pions=soft_pions,
descriptor='[D*(2010)+ -> D0 pi+]cc',
pvs=pvs)
bs = make_bs(dstars, muons, descriptor='[B- -> D*(2010)+ mu-]cc', pvs=pvs)
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [bs],
prescale=prescale,
)
descriptor='[D*(2010)+ -> D0 pi+]cc')
bs = make_bs(dstars, muons, descriptor='[B0 -> D*(2010)+ mu-]cc', pvs=pvs)
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [bs])
@register_line_builder(all_lines)
@configurable
def b2dstarmu_dzero2kpi_ws_line(name='Hlt2CharmBToDstarpMu_D0ToKmPipWSLine',
prescale=1):
def b2dstarmu_dzero2kpi_ws_line(name='Hlt2CharmBToDstarpMu_D0ToKmPipWSLine'):
pvs = make_pvs()
kaons = make_charm_kaons()
pions = make_charm_pions()
soft_pions = make_charm_soft_pions()
soft_pions = make_charm_soft_pions(make_long_pions())
muons = make_tag_muons()
dzeros = make_dzeros(
particles=[kaons, pions], descriptor='[D0 -> K- pi+]cc', pvs=pvs)
dstars = make_dstars(
dzeros=dzeros,
soft_pions=soft_pions,
descriptor='[D*(2010)- -> D0 pi-]cc',
pvs=pvs)
bs = make_bs(dstars, muons, descriptor='[B+ -> D*(2010)- mu+]cc', pvs=pvs)
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [bs],
prescale=prescale,
)
descriptor='[D*(2010)- -> D0 pi-]cc')
bs = make_bs(dstars, muons, descriptor='[B0 -> D*(2010)- mu+]cc', pvs=pvs)
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [bs])
@register_line_builder(all_lines)
@configurable
def b2dstarmu_dzero2kk_line(name='Hlt2CharmBToDstarpMu_D0ToKmKpLine',
prescale=1):
def b2dstarmu_dzero2kk_line(name='Hlt2CharmBToDstarpMu_D0ToKmKpLine'):
pvs = make_pvs()
kaons = make_charm_kaons()
soft_pions = make_charm_soft_pions()
soft_pions = make_charm_soft_pions(make_long_pions())
muons = make_tag_muons()
dzeros = make_dzeros(
particles=[kaons, kaons], descriptor='D0 -> K- K+', pvs=pvs)
dstarsm = make_dstars(
dzeros=dzeros,
soft_pions=soft_pions,
descriptor='D*(2010)- -> D0 pi-',
pvs=pvs)
descriptor='D*(2010)- -> D0 pi-')
dstarsp = make_dstars(
dzeros=dzeros,
soft_pions=soft_pions,
descriptor='D*(2010)+ -> D0 pi+',
pvs=pvs)
descriptor='D*(2010)+ -> D0 pi+')
dstars = ParticleContainersMerger([dstarsm, dstarsp])
bs = make_bs(dstars, muons, descriptor='[B- -> D*(2010)+ mu-]cc', pvs=pvs)
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [bs],
prescale=prescale,
)
bs = make_bs(dstars, muons, descriptor='[B0 -> D*(2010)+ mu-]cc', pvs=pvs)
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [bs])
@register_line_builder(all_lines)
@configurable
def b2dstarmu_dzero2pipi_line(name='Hlt2CharmBToDstarpMu_D0ToPimPipLine',
prescale=1):
def b2dstarmu_dzero2pipi_line(name='Hlt2CharmBToDstarpMu_D0ToPimPipLine'):
pvs = make_pvs()
pions = make_charm_pions()
soft_pions = make_charm_soft_pions()
soft_pions = make_charm_soft_pions(make_long_pions())
muons = make_tag_muons()
dzeros = make_dzeros(
particles=[pions, pions], descriptor='D0 -> pi- pi+', pvs=pvs)
dstarsm = make_dstars(
dzeros=dzeros,
soft_pions=soft_pions,
descriptor='D*(2010)- -> D0 pi-',
pvs=pvs)
descriptor='D*(2010)- -> D0 pi-')
dstarsp = make_dstars(
dzeros=dzeros,
soft_pions=soft_pions,
descriptor='D*(2010)+ -> D0 pi+',
pvs=pvs)
descriptor='D*(2010)+ -> D0 pi+')
dstars = ParticleContainersMerger([dstarsm, dstarsp])
bs = make_bs(dstars, muons, descriptor='[B- -> D*(2010)+ mu-]cc', pvs=pvs)
return HltLine(
name=name,
algs=upfront_reconstruction() + charm_prefilters() + [bs],
prescale=prescale,
)
bs = make_bs(dstars, muons, descriptor='[B0 -> D*(2010)+ mu-]cc', pvs=pvs)
return HltLine( name=name, algs=upfront_reconstruction() + charm_prefilters() + [bs])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment