5# ==================================================================
8# This module provides methods to compute the lifetime and
9# branching ratio of SUSY RPV neutralino given its mass and couplings as
12# Created: 30/04/2016 Konstantinos A. Petridis (konstantinos.petridis@cern.ch)
15# ipython -i rpvsusy.py
16# In [1]: b = RPVSYSY(1.,[1, 1],1e3,1,True)
17# HNLbranchings instance initialized with couplings:
18# \lambda_{production} = 1GeV
19# \lambda_{decay} = 1GeV
20# universal sfermion mass = 1e3GeV
23# 1 (values between 1 and 5)
26# In [2]: b.computeNLifetime()
27# Out[2]: 0.0219634078804
28# In [3]: b.findBranchingRatio('N -> K+ mu-')
29# Out[3]: 0.11826749348890987
31# ==================================================================
38from rootUtils
import get_particle
43 Trim particle name for use with the PDG database
45 if "down" in particle:
49 if "strange" in particle:
51 if "charm" in particle:
53 if "bottom" in particle:
55 if "beauty" in particle:
60 particle = particle.replace(
"1",
"'")
65 or (
"nu_" in particle)
66 or (
"eta" in particle)
67 or (
"phi" in particle)
68 )
and (particle
not in [
"d",
"u",
"s",
"c",
"b",
"t"]):
75 Read particle ID from PDG database
78 tPart = get_particle(particle)
79 return int(tPart.PdgCode())
84 Read particle mass from PDG database
87 tPart = get_particle(particle)
93 Read particle width from PDG database
96 tPart = get_particle(particle)
102 Read particle lifetime from PDG database
105 if particle ==
"D0" or particle ==
"D0bar":
107 elif particle ==
"D+" or particle ==
"D-":
109 elif particle ==
"D_s+" or particle ==
"D_s-":
111 elif particle ==
"B0" or particle ==
"B0bar":
113 elif particle ==
"B+" or particle ==
"B-":
116 return get_particle(particle).Lifetime()
121 Store some constants useful for HNL physics
128 "K_L0": 0.156 / math.sqrt(2) * u.GeV,
129 "K_S0": 0.156 / math.sqrt(2) * u.GeV,
130 "K*0": 0.230 * u.GeV,
131 "K*0_bar": 0.230 * u.GeV,
132 "K*+": 0.230 * u.GeV,
133 "K*-": 0.230 * u.GeV,
134 "phi": 0.230 * u.GeV,
135 "eta": -0.142 * u.GeV,
136 "eta'": 0.038 * u.GeV,
138 "D*+": 0.205 * u.GeV,
140 "D*-": 0.205 * u.GeV,
141 "D_s+": 0.259 * u.GeV,
142 "D*_s+": 0.259 * u.GeV,
143 "D_s-": 0.259 * u.GeV,
144 "D*_s-": 0.259 * u.GeV,
148 "B_s0": 0.228 * u.GeV,
149 "B0_bar": 0.191 * u.GeV,
150 "B_s0_bar": 0.228 * u.GeV,
153 self.
GF = 1.166379e-05 / (u.GeV * u.GeV)
154 self.
MW = 80.385 * u.GeV
155 self.
gW2 = self.
GF / math.sqrt(2) * 8 * self.
MW * self.
MW
158 self.
heV = 6.58211928 * pow(10.0, -16)
166 "tneutrino": self.
gW2 * self.
t2thetaw * 1.0 / 32.0,
176 Lifetime and total and partial decay widths of an RPV neutralino
179 def __init__(self, mass, couplings, sfmass, benchmark, debug: bool =
False) ->
None:
181 Initialize with mass and couplings of the RPV neutralino
185 which benchmark scenario (1,2,3,4,5)
186 couplings (list of [\lambda production, \lambda decay])
187 sfermion mass to normalise the couplings by (GeV)
189 self.
MN = mass * u.GeV
191 self.
U2 = [ui * ui
for ui
in self.
U]
195 1: [
"N -> K+ mu-",
"N -> K*+ mu-",
"N -> K*0 nu_mu",
"N -> K_L0 nu_mu",
"N -> K_S0 nu_mu"],
206 3: [
"N -> K+ mu-",
"N -> K*+ mu-",
"N -> K*0 nu_mu",
"N -> K_L0 nu_mu",
"N -> K_S0 nu_mu"],
207 4: [
"N -> D+ mu-",
"N -> D*+ mu-",
"N -> K*0 nu_mu",
"N -> K_L0 nu_mu",
"N -> K_S0 nu_mu"],
208 5: [
"N -> K+ tau-",
"N -> K*+ tau-",
"N -> K*0 nu_tau",
"N -> K_L0 nu_tau",
"N -> K_S0 nu_tau"],
213 2: [
"D_s+ -> N mu+"],
214 3: [
"B0 -> N nu_mu"],
215 4: [
"B0 -> N nu_mu"],
216 5: [
"B0 -> N nu_tau",
"B+ -> N tau+"],
220 print(
"RPVSUSYbranchings instance initialized with couplings:")
221 print(
"\t benchmark scenario = %d" % self.
bench)
222 print(
"\t production coupling = %s" % self.
U[0])
223 print(
"\t decay coupling = %s" % self.
U[1])
224 print(
"\t sfermion mass = %s" % self.
sfmass)
225 print(
"\t total prod coupling = %s" % (self.
U[0] / self.
sfmass**2))
226 print(
"\t total decay coupling = %s" % (self.
U[1] / self.
sfmass**2))
228 print(
"\tm = %s GeV" % (self.
MN))
238 for decay
in decays_tmp:
240 decay_cpy = decay_cpy.replace(
"N -> ",
"")
241 particles = decay_cpy.split()
242 codes = [
PDGcode(p)
for p
in particles]
246 any(
"K+" in s
for s
in particles)
247 or any(
"K-" in s
for s
in particles)
248 or any(
"K*+" in s
for s
in particles)
249 or any(
"K*-" in s
for s
in particles)
250 or any(
"K*0" in s
for s
in particles)
251 or any(
"K*0_bar" in s
for s
in particles)
255 "9900015:addChannel = 1 {:.12} 0 {}".format(bf,
" ".join(str(code)
for code
in codes))
258 "9900015:addChannel = 1 {:.12} 0 {}".format(bf,
" ".join(str(-code)
for code
in codes))
262 "9900015:addChannel = 1 {:.12} 0 {}".format(bf,
" ".join(str(code)
for code
in codes))
265 print(
"debug readdecay table", particles, codes, bf)
269 Returns the RPV neutralino decay width into neutral meson and lepton
272 - H is a string (name of the meson)
273 - L is a string (name of the lepton)
282 - 2 * self.
MN**2 *
mass(H) ** 2
283 - 2 * self.
MN**2 *
mass(L) ** 2
287 if "nu_mu" in L
or "nu_e" in L
or "nu_tau" in L:
290 / (self.
sfmass**4 * 128 * u.pi * self.
MN**3)
291 * c.GST2[
"sneutrino"]
292 * c.decayConstant[H] ** 2
298 / (self.
sfmass**4 * 128 * u.pi * self.
MN**3)
300 * c.decayConstant[H] ** 2
304 if "K*" in H
or "D*" in H
or "phi" in H:
305 if "nu_mu" in L
or "nu_e" in L
or "nu_tau" in L:
308 / (self.
sfmass**4 * 2 * u.pi * self.
MN**3)
309 * c.GST2[
"tneutrino"]
310 * c.decayConstant[H] ** 2
311 * (2 * (self.
MN**2 -
mass(L) ** 2) ** 2 -
mass(H) ** 2 * (
mass(H) ** 2 + self.
MN**2 +
mass(L) ** 2))
316 / (self.
sfmass**4 * 2 * u.pi * self.
MN**3)
318 * c.decayConstant[H] ** 2
319 * (2 * (self.
MN**2 -
mass(L) ** 2) ** 2 -
mass(H) ** 2 * (
mass(H) ** 2 + self.
MN**2 +
mass(L) ** 2))
321 width = self.
U2[1] * tmp_width
323 if self.
bench == 1
and (
"K_" in H
or "K*" in H):
324 width = (self.
U2[0] + self.
U2[1]) * tmp_width
326 if self.
bench == 2
and (
"eta" in H
or "phi" in H):
327 width = self.
U2[0] * tmp_width
335 Returns the Meson decay width to RPV neutralino and lepton
337 - H is a string (name of the meson)
338 - L is a string (name of the lepton)
347 - 2 * self.
MN**2 *
mass(H) ** 2
348 - 2 * self.
MN**2 *
mass(L) ** 2
353 if "nu_mu" in L
or "nu_e" in L
or "nu_tau" in L:
357 * c.GST2[
"sneutrino"]
358 * c.decayConstant[H] ** 2
366 * c.decayConstant[H] ** 2
370 if "K*" in H
or "D*" in H
or "phi" in H:
371 if "nu_mu" in L
or "nu_e" in L
or "nu_tau" in L:
375 * c.GST2[
"tneutrino"]
376 * c.decayConstant[H] ** 2
377 * (2 * (self.
MN**2 -
mass(L) ** 2) ** 2 -
mass(H) ** 2 * (
mass(H) ** 2 + self.
MN**2 +
mass(L) ** 2))
384 * c.decayConstant[H] ** 2
385 * (2 * (self.
MN**2 -
mass(L) ** 2) ** 2 -
mass(H) ** 2 * (
mass(H) ** 2 + self.
MN**2 +
mass(L) ** 2))
388 width = self.
U2[0] * tmp_width
394 Returns the total SUSYRPV neutralino decay width
397 hadlist = [m.group(1)
for dec
in declist
if (m := re.search(
r"->\ (.+?)\ ", dec))]
398 leplist = [dlist[1].strip()
for dlist
in [re.findall(
r"\ \w+", dec)
for dec
in declist]]
399 print(leplist, hadlist)
400 totalwidth = sum([self.
Width_H_L(hadlist[i], leplist[i])
for i
in range(0, len(hadlist))])
405 Returns the total SUSYRPV neutralino production width
408 hadlist = [m.group(1)
for dec
in declist
if (m := re.search(
r"(.+?)\ ->", dec))]
409 leplist = [dlist[1].strip()
for dlist
in [re.findall(
r"\ \w+", dec)
for dec
in declist]]
410 totalwidth = sum([self.
Width_N_L(hadlist[i], leplist[i])
for i
in range(0, len(hadlist))])
415 Returns the branching ratio of the selected SUSY RPV neutralino decay channel
418 - decayString is a string describing the decay, in the form 'N -> stuff1 ... stuffN'
420 match = re.search(
r"->\ (.+?)\ ", decayString)
422 raise ValueError(f
"Malformed decay string: {decayString!r}")
424 decaysplit = decayString.split(
" ")
426 for split
in decaysplit:
427 if split.find(
"mu") > -1
or split.find(
"e") > -1
or split.find(
"tau") > -1:
429 if had ==
"pi+" or had ==
"pi-" or had ==
"pi0":
431 "findBranchingRatio() ERROR: Pions in final "
432 "state have not been implemented, please choose "
433 "a different decay mode of out...\n"
438 corrdecstring = f
"N -> {had} {lep}"
441 print(
"findBranchingRation() INFO: You have chosen the decay: '", corrdecstring)
443 if corrdecstring
in dec:
446 print(
"findBranchingRation() ERROR: Badly formulated decay string, please choose one of the following\n")
453 br = self.
Width_H_L(had, lep) / totalwidth
458 Returns the branching ratio of the selected SUSY RPV neutralino product channel
461 - decayString is a string describing the decay, in the form 'H -> N ... stuffN'
463 match = re.search(
r"(.+?)\ ->", decayString)
465 raise ValueError(f
"Malformed decay string: {decayString!r}")
467 decaysplit = decayString.split(
" ")
469 for split
in decaysplit:
470 if split.find(
"mu") > -1
or split.find(
"e") > -1
or split.find(
"tau") > -1:
472 if had ==
"pi+" or had ==
"pi-" or had ==
"pi0":
474 "findProdBranchingRatio() ERROR: Pions in final "
475 "state have not been implemented, please choose "
476 "a different decay mode of out...\n"
481 corrdecstring = f
"{had} -> N {lep}"
484 print(
"findProdBranchingRation() INFO: You have chosen the decay: '", corrdecstring)
486 if corrdecstring
in dec:
490 "findProdBranchingRation() ERROR: Badly formulated decay string, please choose one of the following\n"
501 SUSY RPV neutralino physics according to the nuMSM
504 def __init__(self, mass, couplings, sfmass, benchmark, debug: bool =
False) ->
None:
506 Initialize with mass and couplings of the HNL
510 couplings (list of [\lambda_{production}^{2}, \lambda_{decay}^{2}])
511 mass of universal sfermion
512 which benchmark (integer between 1 and 5 inclusive)
514 RPVSUSYbranchings.__init__(self, mass, couplings, sfmass, benchmark, debug)
518 Compute the RPV neutralino lifetime
521 - system: choose between default (i.e. SI, result in s) or FairShip (result in ns)
527 if system ==
"FairShip":
computeNLifetime(self, str system="SI")
None __init__(self, mass, couplings, sfmass, benchmark, bool debug=False)
list[str] Get_Dec_Modes(self)
list[str] Get_Prod_Modes(self)
None __init__(self, mass, couplings, sfmass, benchmark, bool debug=False)
findDecayBranchingRatio(self, str decayString)
findProdBranchingRatio(self, decayString)
None AddChannelsToPythia(self, P8Gen, bool verbose=True)
int PDGcode(str particle)