Skip to content
Snippets Groups Projects

SLB: Complete the Hb -> Hc lines, also adding them for electrons

Merged Dorothea Vom Bruch requested to merge dovombru_sl_electron_lines_master into master
Files
11
@@ -250,22 +250,52 @@ def make_fake_muons_for_btomunu(p_min=6000 * MeV,
p_min=p_min, pt_min=pt_min, mipchi2_min=mipchi2_min)
@configurable
def make_incalo_long_electrons_with_brem():
"""
Electron required to be in the geometric acceptance of the Ecal.
"""
with standard_protoparticle_filter.bind(Code='PP_HASECALINFO'):
return make_long_electrons_with_brem()
@configurable
def make_electrons_from_b(p_min=6. * GeV,
pt_min=1. * GeV,
mipchi2_min=9.,
pid=(F.PID_E > 0.0)):
pid=(F.PID_E > 0.0),
require_in_calo=0):
"""
Electrons directly produced in the decay of a b-hadron.
"""
if require_in_calo: make_particles = make_incalo_long_electrons_with_brem
else: make_particles = make_long_electrons_with_brem
return make_candidate(
make_particles=make_long_electrons_with_brem,
make_particles=make_particles,
p_min=p_min,
pt_min=pt_min,
mipchi2_min=mipchi2_min,
pid=pid)
@configurable
def make_fake_electrons_from_b_reversedPID(p_min=6. * GeV,
pt_min=1. * GeV,
mipchi2_min=9.,
pid=(F.PID_E < 0.0)):
"""
'Fake electrons' directly produced in the decay of a b-hadron.
Fake electrons definition: PIDe<0.0, in Ecal acceptance
"""
return make_electrons_from_b(
pid=pid,
p_min=p_min,
pt_min=pt_min,
mipchi2_min=mipchi2_min,
require_in_calo=1)
@configurable
def make_tauons_muonic_decay(maker=make_muons_from_b,
p_min=3. * GeV,
@@ -279,6 +309,28 @@ def make_tauons_muonic_decay(maker=make_muons_from_b,
return maker(p_min=p_min, pt_min=pt_min, mipchi2_min=mipchi2_min)
@configurable
def make_tauons_electronic_decay(maker=make_electrons_from_b,
p_min=3. * GeV,
pt_min=None,
mipchi2_min=16.,
trghostprob_max=0.5):
"""
Tauons reconstructed through the electronic decay.
"""
with make_candidate.bind(trghostprob_max=trghostprob_max):
return maker(p_min=p_min, pt_min=pt_min, mipchi2_min=mipchi2_min)
@configurable
def make_fake_tauons_electronic_decay():
"""
Fake tauons reconstructed through the electronic decay (with a fake electron).
"""
return make_tauons_electronic_decay(
maker=make_fake_electrons_from_b_reversedPID)
@configurable
def make_fake_muons_from_b_reversedPID(
pid=(F.PID_MU < 0.0), p_min=6. * GeV, pt_min=1. * GeV, mipchi2_min=9.):
Loading