FairShip
Loading...
Searching...
No Matches
hnl.py
Go to the documentation of this file.
1# SPDX-License-Identifier: LGPL-3.0-or-later
2# SPDX-FileCopyrightText: Copyright CERN for the benefit of the SHiP Collaboration
3
4"""
5# ==================================================================
6# Python module
7#
8# This module provides methods to compute the lifetime and
9# branching ratio of HNLs given its mass and couplings as
10# input parameters.
11#
12# Created: 30/11/2014 Elena Graverini (elena.graverini@cern.ch)
13#
14# Updated: 07/10/2017 Kyrylo Bondarenko (bondarenko@lorentz.leidenuniv.nl)
15#
16# Sample usage:
17# ipython -i hnl.py
18# In [1]: b = HNL(1.,[1.e-8, 2.e-8, 1.e-9],True)
19# HNLbranchings instance initialized with couplings:
20# U2e = 1e-08
21# U2mu = 2e-08
22# U2tau = 1e-09
23# and mass:
24# m = 1.0 GeV
25# In [2]: b.computeNLifetime()
26# Out[2]: 4.777721453160521e-05
27# In [3]: b.findBranchingRatio('N -> pi mu')
28# Out[3]: 0.11826749348890987
29#
30# ==================================================================
31"""
32
33import math
34import os
35
36import ROOT
37import shipunit as u
38from rootUtils import get_particle
39
40# Load PDG database
41pdg = ROOT.TDatabasePDG.Instance()
42
43
44def PDGname(particle):
45 """
46 Change particle name for use with the PDG database
47 """
48 if "1" in particle:
49 particle = particle.replace("1", "'")
50 if particle == "nu":
51 return "nu_e" # simple workaround to handle 3nu channel
52 return particle
53
54
55def mass(particle: str | None):
56 """
57 Read particle mass from PDG database
58 """
59 particle = PDGname(particle)
60 tPart = get_particle(particle)
61 return tPart.Mass()
62
63
64def lifetime(particle):
65 """
66 Read particle lifetime from PDG database
67 """
68 particle = PDGname(particle)
69 tPart = get_particle(particle)
70 return tPart.Lifetime()
71
72
74 """
75 CKM matrix, from http://pdg.lbl.gov/2017/reviews/rpp2016-rev-ckm-matrix.pdf
76 """
77
78 def __init__(self) -> None:
79 self.Vud = 0.9743
80 self.Vus = 0.2251
81 self.Vub = 3.6e-03
82 self.Vcd = 0.2249
83 self.Vcs = 0.9735
84 self.Vcb = 4.11e-02
85 self.Vtd = 8.6e-03
86 self.Vts = 4.0e-02
87 self.Vtb = 0.999
88
89
91 """
92 Store some constants useful for HNL physics
93 """
94
95 def __init__(self) -> None:
97 "pi+": 0.130 * u.GeV,
98 "pi0": 0.130 * u.GeV,
99 "eta": 1.2 * 0.130 * u.GeV,
100 "eta1": 0.152 * u.GeV,
101 "eta_c": 0.335 * u.GeV,
102 "rho+": 0.209 * u.GeV,
103 "rho0": 0.209 * u.GeV,
104 "omega": 0.195 * u.GeV,
105 "phi": 0.229 * u.GeV,
106 "D_s+": 0.249 * u.GeV,
107 "D*_s+": 0.315 * u.GeV,
108 } # decay constants f_h of pseudoscalar and vector mesons
109 self.GF = 1.166379e-05 / (u.GeV * u.GeV) # Fermi's constant (GeV^-2)
110 self.s2thetaw = 0.23126 # square sine of the Weinberg angle
111 self.heV = 6.58211928 * pow(10.0, -16) # no units or it messes up!!
112 self.hGeV = self.heV * pow(10.0, -9) # no units or it messes up!!
113
114
115# Load some useful constants
117
118
120 """
121 Lifetime and total and partial decay widths of an HNL
122 """
123
124 def __init__(self, mass, couplings, debug: bool = False) -> None:
125 """
126 Initialize with mass and couplings of the HNL
127
128 Inputs:
129 mass (GeV)
130 couplings (list of [U2e, U2mu, U2tau])
131 """
132 self.U2 = couplings
133 self.U = [math.sqrt(ui) for ui in self.U2]
134 self.MN = mass * u.GeV
135 # Cache the total width (constant for fixed mass/couplings) and a
136 # reusable TF1 whose parameters are set per integral() call; binding a
137 # Python callable into a TF1 is expensive.
138 self._totalWidth = None
139 self._integrand_tf1 = None
140 self.CKM = CKMmatrix()
141 self.CKMelemSq = {
142 "pi+": self.CKM.Vud**2.0,
143 "rho+": self.CKM.Vud**2.0,
144 "D_s+": self.CKM.Vcs**2.0,
145 "D*_s+": self.CKM.Vcs**2.0,
146 "K+": self.CKM.Vus**2.0,
147 # Quarks (up,down)
148 # up: 1=u, 2=c, 3=t
149 # down: 1=d, 2=s, 3=b
150 (1, 1): self.CKM.Vud**2.0,
151 (1, 2): self.CKM.Vus**2.0,
152 (1, 3): self.CKM.Vub**2.0,
153 (2, 1): self.CKM.Vcd**2.0,
154 (2, 2): self.CKM.Vcs**2.0,
155 (2, 3): self.CKM.Vcb**2.0,
156 (3, 1): self.CKM.Vtd**2.0,
157 (3, 2): self.CKM.Vts**2.0,
158 (3, 3): self.CKM.Vtb**2.0,
159 }
160 self.decays = [
161 "N -> nu nu nu",
162 "N -> e- e+ nu_e",
163 "N -> e- e+ nu_mu",
164 "N -> e- e+ nu_tau",
165 "N -> e- mu+ nu_mu",
166 "N -> mu- e+ nu_e",
167 "N -> pi0 nu_e",
168 "N -> pi0 nu_mu",
169 "N -> pi0 nu_tau",
170 "N -> pi+ e-",
171 "N -> mu- mu+ nu_e",
172 "N -> mu- mu+ nu_mu",
173 "N -> mu- mu+ nu_tau",
174 "N -> pi+ mu-",
175 "N -> eta nu_e",
176 "N -> eta nu_mu",
177 "N -> eta nu_tau",
178 "N -> rho0 nu_e",
179 "N -> rho0 nu_mu",
180 "N -> rho0 nu_tau",
181 "N -> rho+ e-",
182 "N -> omega nu_e",
183 "N -> omega nu_mu",
184 "N -> omega nu_tau",
185 "N -> rho+ mu-",
186 "N -> eta1 nu_e",
187 "N -> eta1 nu_mu",
188 "N -> eta1 nu_tau",
189 "N -> phi nu_e",
190 "N -> phi nu_mu",
191 "N -> phi nu_tau",
192 "N -> e- tau+ nu_tau",
193 "N -> tau- e+ nu_e",
194 "N -> mu- tau+ nu_tau",
195 "N -> tau- mu+ nu_mu",
196 "N -> D_s+ e-",
197 "N -> D_s+ mu-",
198 "N -> D*_s+ e-",
199 "N -> D*_s+ mu-",
200 "N -> eta_c nu_e",
201 "N -> eta_c nu_mu",
202 "N -> eta_c nu_tau",
203 ]
204 if self.MN >= 1.0:
206
207 if debug:
208 print("HNLbranchings instance initialized with couplings:")
209 print("\tU2e = %s" % self.U2[0])
210 print("\tU2mu = %s" % self.U2[1])
211 print("\tU2tau = %s" % self.U2[2])
212 print("and mass:")
213 print("\tm = %s GeV" % (self.MN))
214
215 def sqrt_lambda(self, a: float, b, c) -> float | int:
216 """
217 Useful function for decay kinematics. Returns 0 for kinematically forbidden region.
218 This is the Källén (triangle) function λ(a,b,c).
219 """
220 kallen = a**2 + b**2 + c**2 - 2 * a * b - 2 * b * c - 2 * a * c
221 if kallen < 0:
222 return 0
223 else:
224 return math.sqrt(kallen)
225
226 def QCD_correction(self):
227 """
228 Returns 3-loops QCD correction to HNL decay width into quarks
229 """
230 alpha_s = ROOT.TGraph(os.path.expandvars("$FAIRSHIP/python/alpha_s.dat"))
231 a_s = alpha_s.Eval(self.MN)
232 qcd_corr = a_s / math.pi
233 qcd_corr += 5.2 * (a_s / math.pi) ** 2.0
234 qcd_corr += 26.4 * (a_s / math.pi) ** 3.0
235 return qcd_corr
236
237 def Width_3nu(self):
238 """
239 Returns the HNL decay width into three neutrinos
240 """
241 width = (c.GF**2.0) * (self.MN**5.0) * sum(self.U2) / (192.0 * (u.pi**3.0))
242 width = 2.0 * width # Majorana case (charge conjugate channels)
243 return width
244
245 def Width_nu_f_fbar(self, alpha: int, beta: int):
246 """
247 Returns the HNL tree level decay width into the fermion-antifermion pair and a neutrino (decay through Z boson or Z and W)
248
249 Inputs:
250 - alpha is a flavour of neutrino (1,2 or 3), determine the mixing angle U_alpha
251 - beta is a flavour of the fermions: (1, 2 or 3) for charge leptons or (4, 5, 6, 7, 8, 9) for quarks
252 """
253 if (alpha not in [1, 2, 3]) or (beta not in [1, 2, 3, 4, 5, 6, 7, 8, 9]):
254 print("Width_nu_f_fbar ERROR: unknown channel alpha =", alpha, " beta =", beta)
255 quit()
256 fermions = [None, "e-", "mu-", "tau-", "u", "d", "s", "c", "b", "t"]
257 x = mass(fermions[beta]) / self.MN
258 if x > 0.5: # the decay is kinematically forbidden
259 return 0
260 width = (c.GF**2.0) * (self.MN**5.0) * self.U2[alpha - 1] / (192.0 * (math.pi**3.0))
261 L = 0.0
262 if x > 0.01:
263 logContent = (1.0 - 3.0 * x**2.0 - (1.0 - x**2.0) * math.sqrt(1.0 - 4.0 * x**2.0)) / (
264 (x**2.0) * (1 + math.sqrt(1.0 - 4.0 * x**2.0))
265 )
266 else:
267 logContent = x**4 + 4.0 * x**6 + 14.0 * x**8
268 if logContent > 0:
269 L = math.log(logContent)
270 if beta < 4: # lepton decay
271 NZ = 1
272 if alpha == beta: # interference case
273 C1 = 0.25 * (1.0 + 4.0 * c.s2thetaw + 8.0 * c.s2thetaw**2.0)
274 C2 = 0.5 * c.s2thetaw * (2.0 * c.s2thetaw + 1.0)
275 else: # no interference
276 C1 = 0.25 * (1.0 - 4.0 * c.s2thetaw + 8.0 * c.s2thetaw**2.0)
277 C2 = 0.5 * c.s2thetaw * (2.0 * c.s2thetaw - 1.0)
278 else: # decay into quarks
279 NZ = 3
280 if beta in [4, 7, 9]: # up quarks
281 C1 = 0.25 * (1.0 - 8.0 / 3.0 * c.s2thetaw + 32.0 / 9.0 * c.s2thetaw**2.0)
282 C2 = 1.0 / 3.0 * c.s2thetaw * (4.0 / 3.0 * c.s2thetaw - 1.0)
283 elif beta in [5, 6, 8]: # down quarks
284 C1 = 0.25 * (1.0 - 4.0 / 3.0 * c.s2thetaw + 8.0 / 9.0 * c.s2thetaw**2.0)
285 C2 = 1.0 / 6.0 * c.s2thetaw * (2.0 / 3.0 * c.s2thetaw - 1.0)
286 else:
287 raise ValueError(f"HNLbranchings: unsupported quark beta index {beta}")
288 width = (
289 width
290 * NZ
291 * (
292 C1
293 * (
294 (1.0 - 14.0 * x**2.0 - 2.0 * x**4.0 - 12.0 * x**6.0) * math.sqrt(1 - 4.0 * x**2)
295 + 12.0 * x**4.0 * (-1.0 + x**4.0) * L
296 )
297 + 4.0
298 * C2
299 * (
300 x**2.0 * (2.0 + 10.0 * x**2.0 - 12.0 * x**4.0) * math.sqrt(1.0 - 4.0 * x**2)
301 + 6.0 * x**4.0 * (1.0 - 2.0 * x**2 + 2.0 * x**4) * L
302 )
303 )
304 )
305 width = 2.0 * width # Majorana case (charge conjugate channels)
306 return width
307
308 def Integrand(self, xx, xi):
309 """
310 Function to integrate needed for numerical integration using ROOT. Needed for 3-body decays through W boson.
311 First argument is a list of 1 number, argument. Second is the list of 3 numbers xi = mi/MN
312 """
313 x = xx[0]
314 xl2 = xi[0] ** 2
315 xu2 = xi[1] ** 2
316 xd2 = xi[2] ** 2
317 if x == 0: # Workaround for division by zero
318 return 0
319 res = 1.0 / x
320 res *= x - xl2 - xd2
321 res *= 1.0 + xu2 - x
322 res *= self.sqrt_lambda(x, xl2, xd2)
323 res *= self.sqrt_lambda(1.0, x, xu2)
324 return res
325
326 def integral(self, x1, x2, x3: int):
327 """
328 Numerical integral needed for 3-body decays through W boson.
329 xi = mi/MN
330 """
331 if self._integrand_tf1 is None:
332 # ROOT registers TF1s globally by name, so make it unique per
333 # instance to avoid collisions between HNLbranchings objects.
334 self._integrand_tf1 = ROOT.TF1(f"hnl_integrand_{id(self):x}", self.Integrand, 0, 1, 3)
335 func = self._integrand_tf1
336 func.SetParameters(x1, x2, x3)
337 xmin = (x1 + x3) ** 2
338 xmax = (1.0 - x2) ** 2
339 wf1 = ROOT.Math.WrappedTF1(func) # Setting simple Gauss integration method
340 ig = ROOT.Math.GaussIntegrator()
341 ig.SetFunction(wf1)
342 ig.SetRelTolerance(0.001)
343 res = 12.0 * ig.Integral(xmin, xmax)
344 return res
345
346 def Width_l1_l2_nu2(self, alpha: int, beta: int):
347 """
348 Returns the HNL decay width into two different flavour leptons and a neutrino (decay through W boson)
349
350 Inputs:
351 - alpha is a flavour of the first lepton (1,2 or 3), determine the mixing angle U_alpha
352 - beta is a flavour of the second lepton and neutrino (1, 2 or 3)
353 """
354 if (alpha not in [1, 2, 3]) or (beta not in [1, 2, 3]):
355 print("Width_l1_l2_nu2 ERROR: unknown channel alpha =", alpha, " beta =", beta)
356 quit()
357 if (
358 alpha == beta
359 ): # The interference case is handled by Width_nu_f_fbar function, workaround for a total width calculation
360 return 0
361 leptons = [None, "e-", "mu-", "tau-"]
362 x1 = mass(leptons[alpha]) / self.MN
363 x2 = mass(leptons[beta]) / self.MN
364 if x1 + x2 > 1: # The decay is kinematically forbidden
365 return 0
366 width = (c.GF**2.0) * (self.MN**5.0) * self.U2[alpha - 1] / (192.0 * (math.pi**3.0))
367 width = width * self.integral(x1, x2, 0)
368 width = 2.0 * width # Majorana case (charge conjugate channels)
369 return width
370
371 def Width_l_u_d(self, alpha: int, beta: int, gamma: int):
372 """
373 Returns the HNL tree level decay width into a charged lepton, up quark and down quark (decay through W boson)
374
375 Inputs:
376 - alpha is a flavour of the charged lepton (1,2 or 3), determine the mixing angle U_alpha
377 - beta is the up quark generation (1, 2, 3 for u, c, t)
378 - gamma is the down quark generation (1, 2, 3 for d, s, b)
379 """
380 if (alpha not in [1, 2, 3]) or (beta not in [1, 2, 3]) or (gamma not in [1, 2, 3]):
381 print("Width_l_u_d ERROR: unknown channel alpha =", alpha, " beta =", beta, " gamma =", gamma)
382 quit()
383 leptons = [None, "e-", "mu-", "tau-"]
384 up_quarks = [None, "u", "c", "t"]
385 down_quarks = [None, "d", "s", "b"]
386 xl = mass(leptons[alpha]) / self.MN
387 xu = mass(up_quarks[beta]) / self.MN
388 xd = mass(down_quarks[gamma]) / self.MN
389 if xl + xu + xd > 1: # The decay is kinematically forbidden
390 return 0
391 width = (c.GF**2.0) * (self.MN**5.0) * self.U2[alpha - 1] / (192.0 * (math.pi**3.0))
392 width *= 3 * self.CKMelemSq[(beta, gamma)]
393 width *= self.integral(xl, xu, xd)
394 width = 2.0 * width # Majorana case (charge conjugate channels)
395 return width
396
397 def Width_H0_nu(self, H: str, alpha: int):
398 """
399 Returns the HNL decay width into neutral meson and neutrino
400
401 Inputs:
402 - H is a string (name of the meson)
403 - alpha is a flavour of the nu (1, 2 or 3), determine the mixing angle U_alpha
404 """
405 if (H not in ["pi0", "eta", "rho0", "omega", "eta1", "phi", "eta_c"]) or (alpha not in [1, 2, 3]):
406 print("Width_H0_nu ERROR: unknown channel H0 =", H, " alpha =", alpha)
407 quit()
408 x = mass(H) / self.MN
409 if x > 1: # The decay is kinematically forbidden
410 return 0.0
411 width = (c.GF**2.0) * (c.decayConstant[H] ** 2.0) * (self.MN**3.0) * self.U2[alpha - 1] / (32.0 * math.pi)
412 if H in ["pi0", "eta", "eta1", "eta_c"]: # pseudoscalar mesons
413 width *= (1 - x**2.0) ** 2.0
414 if H in ["rho0", "omega", "phi"]: # vector mesons
415 width *= (1.0 + 2 * x**2.0) * (1.0 - x**2.0) ** 2.0
416 if H == "rho0":
417 width *= (1.0 - 2.0 * c.s2thetaw) ** 2.0
418 if H == "omega":
419 width *= (16.0 * c.s2thetaw**2.0) / 9.0
420 if H == "phi":
421 width *= (1.0 - 4.0 / 3.0 * c.s2thetaw) ** 2.0
422 width = 2.0 * width # Majorana case (charge conjugate channels)
423 return width
424
425 def Width_H_l(self, H: str, alpha: int):
426 """
427 Returns the HNL decay width into charged meson and lepton
428
429 Inputs:
430 - H is a string (name of the positively charged meson)
431 - alpha is the lepton flavour (1, 2 or 3), determine the mixing angle U_alpha
432 """
433 if (H not in ["pi+", "rho+", "D_s+", "D*_s+"]) or (alpha not in [1, 2, 3]):
434 print("Width_H_l ERROR: unknown channel H =", H, " alpha =", alpha)
435 quit()
436 leptons = [None, "e-", "mu-", "tau-"]
437 xl = mass(leptons[alpha]) / self.MN
438 xh = mass(H) / self.MN
439 if xl + xh > 1: # The decay is kinematically forbidden
440 return 0.0
441 width = (
442 (c.GF**2.0)
443 * (c.decayConstant[H] ** 2.0)
444 * self.CKMelemSq[H]
445 * (self.MN**3.0)
446 * self.U2[alpha - 1]
447 / (16.0 * math.pi)
448 )
449 width *= self.sqrt_lambda(1.0, xl**2, xh**2)
450 if H in ["pi+", "D_s+"]: # pseudoscalar mesons
451 width *= (1.0 - xl**2.0) ** 2.0 - xh**2.0 * (1.0 + xl**2.0)
452 if H in ["rho+", "D*_s+"]: # vector mesons
453 width *= (1.0 - xl**2.0) ** 2.0 + xh**2.0 * (1.0 + xl**2.0) - 2.0 * xh**4.0
454 width = 2.0 * width # Majorana case (charge conjugate channels)
455 return width
456
457 def Width_charged_leptons(self) -> float:
458 """
459 Returns the total HNL leptonic decay width with charged leptons in final state
460 """
461 width = 0.0
462 for l1 in [1, 2, 3]:
463 for l2 in [1, 2, 3]:
464 width += self.Width_nu_f_fbar(l1, l2)
465 width += self.Width_l1_l2_nu2(l1, l2)
466 return width
467
468 def Width_neutral_mesons(self) -> float:
469 """
470 Returns the total HNL decay width into a neutral meson and a neutrino
471 """
472 mesons = ["pi0", "eta", "rho0", "omega", "eta1", "phi", "eta_c"]
473 width = 0.0
474 for m in mesons:
475 for lepton in [1, 2, 3]:
476 width += self.Width_H0_nu(m, lepton)
477 return width
478
479 def Width_charged_mesons(self) -> float:
480 """
481 Returns the total HNL decay width into a charged meson and a charged lepton
482 """
483 mesons = ["pi+", "rho+", "D_s+", "D*_s+"]
484 width = 0.0
485 for m in mesons:
486 for lepton in [1, 2, 3]:
487 width += self.Width_H_l(m, lepton)
488 return width
489
490 def Width_quarks_neutrino(self) -> float | int:
491 """
492 Returns the total HNL decay width with quarks and neutrino in final state. Uses 3-loops alpha_s correction
493 """
494 if self.MN < 1.0: # decay into quarks is not applicable at low HNL mass
495 return 0
496 width = 0.0
497 for lepton in [1, 2, 3]:
498 for q in [4, 5, 6, 7, 8, 9]:
499 width += self.Width_nu_f_fbar(lepton, q)
500 width *= 1.0 + self.QCD_corr
501 return width
502
503 def Width_quarks_lepton(self) -> float | int:
504 """
505 Returns the total HNL decay width with quarks and charged lepton in final state. Uses 3-loops alpha_s correction
506 """
507 if self.MN < 1.0: # decay into quarks is not applicable at low HNL mass
508 return 0
509 width = 0.0
510 for lepton in [1, 2, 3]:
511 for u_quark in [1, 2, 3]:
512 for d_quark in [1, 2, 3]:
513 width += self.Width_l_u_d(lepton, u_quark, d_quark)
514 width *= 1.0 + self.QCD_corr
515 return width
516
517 def NDecayWidth(self):
518 """
519 Returns the total HNL decay width
520 """
521 if self._totalWidth is None:
522 leptonWidth = self.Width_3nu() + self.Width_charged_leptons()
523 mesonWidth = self.Width_neutral_mesons() + self.Width_charged_mesons()
524 quarkWidth = self.Width_quarks_neutrino() + self.Width_quarks_lepton()
525 self._totalWidth = leptonWidth + max([mesonWidth, quarkWidth])
526 return self._totalWidth
527
528 def findBranchingRatio(self, decayString):
529 """
530 Returns the branching ratio of the selected HNL decay channel
531
532 Inputs:
533 - decayString is a string describing the decay, in the form 'N -> stuff1 ... stuffN'
534 """
535 br = 0.0
536 totalWidth = self.NDecayWidth()
537
538 if (decayString not in self.decays) and (decayString not in ["N -> hadrons", "N -> charged hadrons"]):
539 print("findBranchingRatio ERROR: unknown decay %s" % decayString)
540 quit()
541
542 if decayString == "N -> nu nu nu":
543 br = self.Width_3nu() / totalWidth # inclusive
544 if decayString == "N -> e- e+ nu_e":
545 br = self.Width_nu_f_fbar(1, 1) / totalWidth
546 if decayString == "N -> e- e+ nu_mu":
547 br = self.Width_nu_f_fbar(2, 1) / totalWidth
548 if decayString == "N -> e- e+ nu_tau":
549 br = self.Width_nu_f_fbar(3, 1) / totalWidth
550 if decayString == "N -> e- mu+ nu_mu":
551 br = self.Width_l1_l2_nu2(1, 2) / totalWidth
552 if decayString == "N -> mu- e+ nu_e":
553 br = self.Width_l1_l2_nu2(2, 1) / totalWidth
554 if decayString == "N -> pi0 nu_e":
555 br = self.Width_H0_nu("pi0", 1) / totalWidth
556 if decayString == "N -> pi0 nu_mu":
557 br = self.Width_H0_nu("pi0", 2) / totalWidth
558 if decayString == "N -> pi0 nu_tau":
559 br = self.Width_H0_nu("pi0", 3) / totalWidth
560 if decayString == "N -> pi+ e-":
561 br = self.Width_H_l("pi+", 1) / totalWidth
562 if decayString == "N -> mu- mu+ nu_e":
563 br = self.Width_nu_f_fbar(1, 2) / totalWidth
564 if decayString == "N -> mu- mu+ nu_mu":
565 br = self.Width_nu_f_fbar(2, 2) / totalWidth
566 if decayString == "N -> mu- mu+ nu_tau":
567 br = self.Width_nu_f_fbar(3, 2) / totalWidth
568 if decayString == "N -> pi+ mu-":
569 br = self.Width_H_l("pi+", 2) / totalWidth
570 if decayString == "N -> eta nu_e":
571 br = self.Width_H0_nu("eta", 1) / totalWidth
572 if decayString == "N -> eta nu_mu":
573 br = self.Width_H0_nu("eta", 2) / totalWidth
574 if decayString == "N -> eta nu_tau":
575 br = self.Width_H0_nu("eta", 3) / totalWidth
576 if decayString == "N -> rho0 nu_e":
577 br = self.Width_H0_nu("rho0", 1) / totalWidth
578 if decayString == "N -> rho0 nu_mu":
579 br = self.Width_H0_nu("rho0", 2) / totalWidth
580 if decayString == "N -> rho0 nu_tau":
581 br = self.Width_H0_nu("rho0", 3) / totalWidth
582 if decayString == "N -> rho+ e-":
583 br = self.Width_H_l("rho+", 1) / totalWidth
584 if decayString == "N -> omega nu_e":
585 br = self.Width_H0_nu("omega", 1) / totalWidth
586 if decayString == "N -> omega nu_mu":
587 br = self.Width_H0_nu("omega", 2) / totalWidth
588 if decayString == "N -> omega nu_tau":
589 br = self.Width_H0_nu("omega", 3) / totalWidth
590 if decayString == "N -> rho+ mu-":
591 br = self.Width_H_l("rho+", 2) / totalWidth
592 if decayString == "N -> eta1 nu_e":
593 br = self.Width_H0_nu("eta1", 1) / totalWidth
594 if decayString == "N -> eta1 nu_mu":
595 br = self.Width_H0_nu("eta1", 2) / totalWidth
596 if decayString == "N -> eta1 nu_tau":
597 br = self.Width_H0_nu("eta1", 3) / totalWidth
598 if decayString == "N -> phi nu_e":
599 br = self.Width_H0_nu("phi", 1) / totalWidth
600 if decayString == "N -> phi nu_mu":
601 br = self.Width_H0_nu("phi", 2) / totalWidth
602 if decayString == "N -> phi nu_tau":
603 br = self.Width_H0_nu("phi", 3) / totalWidth
604 if decayString == "N -> e- tau+ nu_tau":
605 br = self.Width_l1_l2_nu2(1, 3) / totalWidth
606 if decayString == "N -> tau- e+ nu_e":
607 br = self.Width_l1_l2_nu2(3, 1) / totalWidth
608 if decayString == "N -> mu- tau+ nu_tau":
609 br = self.Width_l1_l2_nu2(2, 3) / totalWidth
610 if decayString == "N -> tau- mu+ nu_mu":
611 br = self.Width_l1_l2_nu2(3, 2) / totalWidth
612 if decayString == "N -> D_s+ e-":
613 br = self.Width_H_l("D_s+", 1) / totalWidth
614 if decayString == "N -> D_s+ mu-":
615 br = self.Width_H_l("D_s+", 2) / totalWidth
616 if decayString == "N -> D*_s+ e-":
617 br = self.Width_H_l("D*_s+", 1) / totalWidth
618 if decayString == "N -> D*_s+ mu-":
619 br = self.Width_H_l("D*_s+", 2) / totalWidth
620 if decayString == "N -> eta_c nu_e":
621 br = self.Width_H0_nu("eta_c", 1) / totalWidth
622 if decayString == "N -> eta_c nu_mu":
623 br = self.Width_H0_nu("eta_c", 2) / totalWidth
624 if decayString == "N -> eta_c nu_tau":
625 br = self.Width_H0_nu("eta_c", 3) / totalWidth
626
627 if decayString == "N -> hadrons":
628 mesonWidth = self.Width_neutral_mesons() + self.Width_charged_mesons()
629 quarkWidth = self.Width_quarks_neutrino() + self.Width_quarks_lepton()
630 br = max([mesonWidth, quarkWidth]) / totalWidth
631 if decayString == "N -> charged hadrons":
632 br = max([self.Width_charged_mesons(), self.Width_quarks_lepton()]) / totalWidth
633 return br
634
635 def allowedChannels(self) -> dict[str, str]:
636 """
637 Returns a dictionary of kinematically allowed decay channels
638
639 Inputs:
640 - decayString is a string describing the decay, in the form 'N -> stuff1 ... stuffN'
641 """
642 m = self.MN
643 allowedDecays = {"N -> nu nu nu": "yes"}
644 if m > 2.0 * mass("e-"):
645 allowedDecays.update({"N -> e- e+ nu_e": "yes"})
646 allowedDecays.update({"N -> e- e+ nu_mu": "yes"})
647 allowedDecays.update({"N -> e- e+ nu_tau": "yes"})
648 if m > mass("e-") + mass("mu-"):
649 allowedDecays.update({"N -> e- mu+ nu_mu": "yes"})
650 allowedDecays.update({"N -> mu- e+ nu_e": "yes"})
651 if m > mass("pi0"):
652 allowedDecays.update({"N -> pi0 nu_e": "yes"})
653 allowedDecays.update({"N -> pi0 nu_mu": "yes"})
654 allowedDecays.update({"N -> pi0 nu_tau": "yes"})
655 if m > mass("pi+") + mass("e-"):
656 allowedDecays.update({"N -> pi+ e-": "yes"})
657 if m > 2.0 * mass("mu-"):
658 allowedDecays.update({"N -> mu- mu+ nu_e": "yes"})
659 allowedDecays.update({"N -> mu- mu+ nu_mu": "yes"})
660 allowedDecays.update({"N -> mu- mu+ nu_tau": "yes"})
661 if m > mass("pi+") + mass("mu-"):
662 allowedDecays.update({"N -> pi+ mu-": "yes"})
663 if m > mass("eta"):
664 allowedDecays.update({"N -> eta nu_e": "yes"})
665 allowedDecays.update({"N -> eta nu_mu": "yes"})
666 allowedDecays.update({"N -> eta nu_tau": "yes"})
667 if m > mass("rho0"):
668 allowedDecays.update({"N -> rho0 nu_e": "yes"})
669 allowedDecays.update({"N -> rho0 nu_mu": "yes"})
670 allowedDecays.update({"N -> rho0 nu_tau": "yes"})
671 if m > mass("rho+") + mass("e-"):
672 allowedDecays.update({"N -> rho+ e-": "yes"})
673 if m > mass("omega"):
674 allowedDecays.update({"N -> omega nu_e": "yes"})
675 allowedDecays.update({"N -> omega nu_mu": "yes"})
676 allowedDecays.update({"N -> omega nu_tau": "yes"})
677 if m > mass("rho+") + mass("mu-"):
678 allowedDecays.update({"N -> rho+ mu-": "yes"})
679 if m > mass("eta1"):
680 allowedDecays.update({"N -> eta1 nu_e": "yes"})
681 allowedDecays.update({"N -> eta1 nu_mu": "yes"})
682 allowedDecays.update({"N -> eta1 nu_tau": "yes"})
683 if m > mass("phi"):
684 allowedDecays.update({"N -> phi nu_e": "yes"})
685 allowedDecays.update({"N -> phi nu_mu": "yes"})
686 allowedDecays.update({"N -> phi nu_tau": "yes"})
687 if m > mass("e-") + mass("tau-"):
688 allowedDecays.update({"N -> e- tau+ nu_tau": "yes"})
689 allowedDecays.update({"N -> tau- e+ nu_e": "yes"})
690 if m > mass("mu-") + mass("tau-"):
691 allowedDecays.update({"N -> mu- tau+ nu_tau": "yes"})
692 allowedDecays.update({"N -> tau- mu+ nu_mu": "yes"})
693 if m > mass("D_s+") + mass("e-"):
694 allowedDecays.update({"N -> D_s+ e-": "yes"})
695 if m > mass("D_s+") + mass("mu-"):
696 allowedDecays.update({"N -> D_s+ mu-": "yes"})
697 if m > mass("D*_s+") + mass("e-"):
698 allowedDecays.update({"N -> D*_s+ e-": "yes"})
699 if m > mass("D*_s+") + mass("mu-"):
700 allowedDecays.update({"N -> D*_s+ mu-": "yes"})
701 if m > mass("eta_c"):
702 allowedDecays.update({"N -> eta_c nu_e": "yes"})
703 allowedDecays.update({"N -> eta_c nu_mu": "yes"})
704 allowedDecays.update({"N -> eta_c nu_tau": "yes"})
705
706 for decay in self.decays:
707 if decay not in allowedDecays:
708 allowedDecays.update({decay: "no"})
709 return allowedDecays
710
711
713 """
714 HNL physics according to the nuMSM
715 """
716
717 def __init__(self, mass, couplings, debug: bool = False) -> None:
718 """
719 Initialize with mass and couplings of the HNL
720
721 Inputs:
722 mass (GeV)
723 couplings (list of [U2e, U2mu, U2tau])
724 """
725 HNLbranchings.__init__(self, mass, couplings, debug)
726
727 def computeNLifetime(self, system: str = "SI"):
728 """
729 Compute the HNL lifetime
730
731 Inputs:
732 - system: choose between default (i.e. SI, result in s) or FairShip (result in ns)
733 """
734 self.NLifetime = c.hGeV / self.NDecayWidth()
735 if system == "FairShip":
736 self.NLifetime *= 1.0e9
737 return self.NLifetime
float Vus
Definition hnl.py:80
float Vcs
Definition hnl.py:83
float Vcd
Definition hnl.py:82
float Vcb
Definition hnl.py:84
float Vub
Definition hnl.py:81
float Vts
Definition hnl.py:86
float Vtd
Definition hnl.py:85
float Vud
Definition hnl.py:79
float Vtb
Definition hnl.py:87
None __init__(self)
Definition hnl.py:78
None __init__(self, mass, couplings, bool debug=False)
Definition hnl.py:717
NLifetime
Definition hnl.py:734
computeNLifetime(self, str system="SI")
Definition hnl.py:727
float Width_neutral_mesons(self)
Definition hnl.py:468
dict[str, str] allowedChannels(self)
Definition hnl.py:635
float|int Width_quarks_neutrino(self)
Definition hnl.py:490
NDecayWidth(self)
Definition hnl.py:517
QCD_correction(self)
Definition hnl.py:226
dict CKMelemSq
Definition hnl.py:141
Width_3nu(self)
Definition hnl.py:237
None __init__(self, mass, couplings, bool debug=False)
Definition hnl.py:124
findBranchingRatio(self, decayString)
Definition hnl.py:528
float|int sqrt_lambda(self, float a, b, c)
Definition hnl.py:215
Integrand(self, xx, xi)
Definition hnl.py:308
Width_nu_f_fbar(self, int alpha, int beta)
Definition hnl.py:245
float Width_charged_leptons(self)
Definition hnl.py:457
float Width_charged_mesons(self)
Definition hnl.py:479
Width_l_u_d(self, int alpha, int beta, int gamma)
Definition hnl.py:371
integral(self, x1, x2, int x3)
Definition hnl.py:326
Width_H0_nu(self, str H, int alpha)
Definition hnl.py:397
Width_H_l(self, str H, int alpha)
Definition hnl.py:425
Width_l1_l2_nu2(self, int alpha, int beta)
Definition hnl.py:346
float|int Width_quarks_lepton(self)
Definition hnl.py:503
dict decayConstant
Definition hnl.py:96
float GF
Definition hnl.py:109
float s2thetaw
Definition hnl.py:110
float hGeV
Definition hnl.py:112
float heV
Definition hnl.py:111
None __init__(self)
Definition hnl.py:95
lifetime(particle)
Definition hnl.py:64
mass(str|None particle)
Definition hnl.py:55
PDGname(particle)
Definition hnl.py:44