Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _prefactors_bsll(par, scale):
GF = par['GF']
alpha_e = flavio.physics.running.running.get_alpha(par, scale)['alpha_e']
xi_t = flavio.physics.ckm.xi('t', 'bs')(par)
pre_all = -4*GF/sqrt(2)*xi_t
pre_910 = pre_all * alpha_e/(4*pi)
pre_7 = pre_all /(16*pi**2)
pre_8 = pre_all /(16*pi**2)
pre_nu = pre_all * alpha_e/(4*pi)
return {
'C7_bs': pre_7,
'C7p_bs': pre_7,
'C8_bs': pre_8,
'C8p_bs': pre_8,
'C9_bsee': pre_910,
'C9p_bsee': pre_910,
'C10_bsee': pre_910,
'C10p_bsee': pre_910,
'C9_bsmumu': pre_910,
def prefactor(par, B, V):
mB = par['m_'+B]
mV = par['m_'+V]
scale = config['renormalization scale']['bvgamma']
alphaem = running.get_alpha(par, scale)['alpha_e']
mb = running.get_mb(par, scale)
GF = par['GF']
bq = meson_quark[(B,V)]
xi_t = ckm.xi('t',bq)(par)
return ( sqrt((GF**2 * alphaem * mB**3 * mb**2)/(32 * pi**4)
* (1-mV**2/mB**2)**3) * xi_t )
def prefactor(q2, par, B, P):
GF = par['GF']
scale = config['renormalization scale']['bpll']
alphaem = running.get_alpha(par, scale)['alpha_e']
di_dj = meson_quark[(B,P)]
xi_t = ckm.xi('t',di_dj)(par)
return 4*GF/sqrt(2)*xi_t*alphaem/(4*pi)
def delta_C7(par, wc, q2, scale, qiqj):
alpha_s = running.get_alpha(par, scale)['alpha_s']
mb = running.get_mb_pole(par)
mc = par['m_c BVgamma']
xi_t = ckm.xi('t', qiqj)(par)
xi_u = ckm.xi('u', qiqj)(par)
muh = scale/mb
sh = q2/mb**2
z = mc**2/mb**2
Lmu = log(scale/mb)
# computing this once to save time
delta_tmp = wc['C1_'+qiqj] * F_17(muh, z, sh) + wc['C2_'+qiqj] * F_27(muh, z, sh)
delta_t = wc['C8eff_'+qiqj] * F_87(Lmu, sh) + delta_tmp
delta_u = delta_tmp + wc['C1_'+qiqj] * Fu_17(q2, mb, scale) + wc['C2_'+qiqj] * Fu_27(q2, mb, scale)
# note the minus sign between delta_t and delta_u. This is because of a sign
# switch in the definition of the "Fu" functions between hep-ph/0403185
# (used here) and hep-ph/0412400, see footnote 5 of 0811.1214.
return -alpha_s/(4*pi) * (delta_t - xi_u/xi_t * delta_u)
def prefactor_new(q2, par, B, V, lep):
GF = par['Gmu']
scale = config['bdecays']['scale_bvll']
alphaem = running.get_alpha(par, scale)['alpha_e']
ml = par[('mass',lep)]
mB = par[('mass',B)]
mV = par[('mass',V)]
tauB = par[('lifetime',B)]
laB= lambda_K(mB**2, mV**2, q2)
laGa = lambda_K(q2, ml**2, ml**2)
di_dj = meson_quark[(B,V)]
xi_t = ckm.xi('t',di_dj)(par)
if q2 <= 4*ml**2:
return 0
return ( sqrt(
sqrt(laB)*sqrt(laGa)/(2**9 * pi**3 * mB**3 * q2)
) * 4*GF/sqrt(2)*xi_t*alphaem/(4*pi) )
def prefactor(q2, par, B, P, lep):
GF = par['Gmu']
ml = par[('mass',lep)]
scale = config['bdecays']['scale_bpll']
alphaem = running.get_alpha(par, scale)['alpha_e']
di_dj = meson_quark[(B,P)]
xi_t = ckm.xi('t',di_dj)(par)
if q2 <= 4*ml**2:
return 0
return 4*GF/sqrt(2)*xi_t*alphaem/(4*pi)