FairShip
Loading...
Searching...
No Matches
rpvsusy.RPVSUSYbranchings Class Reference
Inheritance diagram for rpvsusy.RPVSUSYbranchings:
[legend]

Public Member Functions

None __init__ (self, mass, couplings, sfmass, benchmark, bool debug=False)
list[str] Get_Prod_Modes (self)
list[str] Get_Dec_Modes (self)
None AddChannelsToPythia (self, P8Gen, bool verbose=True)
 Width_H_L (self, H, L)
 Width_N_L (self, H, L)
 NdecayWidth (self)
 NprodWidth (self)
 findDecayBranchingRatio (self, str decayString)
 findProdBranchingRatio (self, decayString)

Public Attributes

 MN = mass * u.GeV
 U = couplings
list U2 = [ui * ui for ui in self.U]
 sfmass = sfmass
int bench = benchmark
dict decays
dict prods

Detailed Description

Lifetime and total and partial decay widths of an RPV neutralino

Definition at line 174 of file rpvsusy.py.

Constructor & Destructor Documentation

◆ __init__()

None rpvsusy.RPVSUSYbranchings.__init__ ( self,
mass,
couplings,
sfmass,
benchmark,
bool debug = False )
Initialize with mass and couplings of the RPV neutralino

Inputs:
mass (GeV)
which benchmark scenario (1,2,3,4,5)
couplings (list of [\lambda production, \lambda decay])
sfermion mass to normalise the couplings by (GeV)

Definition at line 179 of file rpvsusy.py.

179 def __init__(self, mass, couplings, sfmass, benchmark, debug: bool = False) -> None:
180 r"""
181 Initialize with mass and couplings of the RPV neutralino
182
183 Inputs:
184 mass (GeV)
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)
188 """
189 self.MN = mass * u.GeV
190 self.U = couplings
191 self.U2 = [ui * ui for ui in self.U]
192 self.sfmass = sfmass
193 self.bench = benchmark
194 self.decays = {
195 1: ["N -> K+ mu-", "N -> K*+ mu-", "N -> K*0 nu_mu", "N -> K_L0 nu_mu", "N -> K_S0 nu_mu"],
196 2: [
197 "N -> K+ mu-",
198 "N -> K*+ mu-",
199 "N -> K*0 nu_mu",
200 "N -> K_L0 nu_mu",
201 "N -> K_S0 nu_mu",
202 "N -> eta nu_mu",
203 "N -> eta' nu_mu",
204 "N -> phi nu_mu",
205 ],
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"],
209 }
210
211 self.prods = {
212 1: ["D+ -> N mu+"],
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+"],
217 }
218
219 if debug:
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))
227 print("and mass:")
228 print("\tm = %s GeV" % (self.MN))
229

Member Function Documentation

◆ AddChannelsToPythia()

None rpvsusy.RPVSUSYbranchings.AddChannelsToPythia ( self,
P8Gen,
bool verbose = True )

Definition at line 236 of file rpvsusy.py.

236 def AddChannelsToPythia(self, P8Gen, verbose: bool = True) -> None:
237 decays_tmp = self.decays[self.bench]
238 for decay in decays_tmp:
239 decay_cpy = decay
240 decay_cpy = decay_cpy.replace("N -> ", "")
241 particles = decay_cpy.split()
242 codes = [PDGcode(p) for p in particles]
243 print(decay)
244 bf = self.findDecayBranchingRatio(decay)
245 if (
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)
252 ):
253 bf = bf / 2.0
254 P8Gen.SetParameters(
255 "9900015:addChannel = 1 {:.12} 0 {}".format(bf, " ".join(str(code) for code in codes))
256 )
257 P8Gen.SetParameters(
258 "9900015:addChannel = 1 {:.12} 0 {}".format(bf, " ".join(str(-code) for code in codes))
259 )
260 else:
261 P8Gen.SetParameters(
262 "9900015:addChannel = 1 {:.12} 0 {}".format(bf, " ".join(str(code) for code in codes))
263 )
264 if verbose:
265 print("debug readdecay table", particles, codes, bf)
266

◆ findDecayBranchingRatio()

rpvsusy.RPVSUSYbranchings.findDecayBranchingRatio ( self,
str decayString )
Returns the branching ratio of the selected SUSY RPV neutralino decay channel

Inputs:
- decayString is a string describing the decay, in the form 'N -> stuff1 ... stuffN'

Definition at line 413 of file rpvsusy.py.

413 def findDecayBranchingRatio(self, decayString: str):
414 """
415 Returns the branching ratio of the selected SUSY RPV neutralino decay channel
416
417 Inputs:
418 - decayString is a string describing the decay, in the form 'N -> stuff1 ... stuffN'
419 """
420 match = re.search(r"->\ (.+?)\ ", decayString)
421 if match is None:
422 raise ValueError(f"Malformed decay string: {decayString!r}")
423 had = match.group(1)
424 decaysplit = decayString.split(" ")
425 lep = ""
426 for split in decaysplit:
427 if split.find("mu") > -1 or split.find("e") > -1 or split.find("tau") > -1:
428 lep = split
429 if had == "pi+" or had == "pi-" or had == "pi0":
430 print(
431 "findBranchingRatio() ERROR: Pions in final "
432 "state have not been implemented, please choose "
433 "a different decay mode of out...\n"
434 )
435 print(self.decays)
436 return -999
437
438 corrdecstring = f"N -> {had} {lep}"
439 listdecs = self.decays[self.bench]
440 gooddec = False
441 print("findBranchingRation() INFO: You have chosen the decay: '", corrdecstring)
442 for dec in listdecs:
443 if corrdecstring in dec:
444 gooddec = True
445 if gooddec is False:
446 print("findBranchingRation() ERROR: Badly formulated decay string, please choose one of the following\n")
447 print(self.decays)
448 return -999
449
450 br = 0.0
451 totalwidth = self.NdecayWidth()
452 if totalwidth > 0.0:
453 br = self.Width_H_L(had, lep) / totalwidth
454 return br
455

◆ findProdBranchingRatio()

rpvsusy.RPVSUSYbranchings.findProdBranchingRatio ( self,
decayString )
Returns the branching ratio of the selected SUSY RPV neutralino product channel

Inputs:
- decayString is a string describing the decay, in the form 'H -> N ... stuffN'

Definition at line 456 of file rpvsusy.py.

456 def findProdBranchingRatio(self, decayString):
457 """
458 Returns the branching ratio of the selected SUSY RPV neutralino product channel
459
460 Inputs:
461 - decayString is a string describing the decay, in the form 'H -> N ... stuffN'
462 """
463 match = re.search(r"(.+?)\ ->", decayString)
464 if match is None:
465 raise ValueError(f"Malformed decay string: {decayString!r}")
466 had = match.group(1)
467 decaysplit = decayString.split(" ")
468 lep = ""
469 for split in decaysplit:
470 if split.find("mu") > -1 or split.find("e") > -1 or split.find("tau") > -1:
471 lep = split
472 if had == "pi+" or had == "pi-" or had == "pi0":
473 print(
474 "findProdBranchingRatio() ERROR: Pions in final "
475 "state have not been implemented, please choose "
476 "a different decay mode of out...\n"
477 )
478 print(self.decays)
479 return -999
480
481 corrdecstring = f"{had} -> N {lep}"
482 listdecs = self.prods[self.bench]
483 gooddec = False
484 print("findProdBranchingRation() INFO: You have chosen the decay: '", corrdecstring)
485 for dec in listdecs:
486 if corrdecstring in dec:
487 gooddec = True
488 if gooddec is False:
489 print(
490 "findProdBranchingRation() ERROR: Badly formulated decay string, please choose one of the following\n"
491 )
492 print(self.decays)
493 return -999
494
495 br = self.Width_N_L(had, lep) / (self.Width_N_L(had, lep) + c.hGeV / lifetime(had))
496 return br
497
498

◆ Get_Dec_Modes()

list[str] rpvsusy.RPVSUSYbranchings.Get_Dec_Modes ( self)

Definition at line 233 of file rpvsusy.py.

233 def Get_Dec_Modes(self) -> list[str]:
234 return self.decays[self.bench]
235

◆ Get_Prod_Modes()

list[str] rpvsusy.RPVSUSYbranchings.Get_Prod_Modes ( self)

Definition at line 230 of file rpvsusy.py.

230 def Get_Prod_Modes(self) -> list[str]:
231 return self.prods[self.bench]
232

◆ NdecayWidth()

rpvsusy.RPVSUSYbranchings.NdecayWidth ( self)
Returns the total SUSYRPV neutralino decay width

Definition at line 392 of file rpvsusy.py.

392 def NdecayWidth(self):
393 """
394 Returns the total SUSYRPV neutralino decay width
395 """
396 declist = self.decays[self.bench]
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))])
401 return totalwidth
402

◆ NprodWidth()

rpvsusy.RPVSUSYbranchings.NprodWidth ( self)
Returns the total SUSYRPV neutralino production width

Definition at line 403 of file rpvsusy.py.

403 def NprodWidth(self):
404 """
405 Returns the total SUSYRPV neutralino production width
406 """
407 declist = self.prods[self.bench]
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))])
411 return totalwidth
412

◆ Width_H_L()

rpvsusy.RPVSUSYbranchings.Width_H_L ( self,
H,
L )
Returns the RPV neutralino decay width into neutral meson and lepton

Inputs:
- H is a string (name of the meson)
- L is a string (name of the lepton)

Definition at line 267 of file rpvsusy.py.

267 def Width_H_L(self, H, L):
268 """
269 Returns the RPV neutralino decay width into neutral meson and lepton
270
271 Inputs:
272 - H is a string (name of the meson)
273 - L is a string (name of the lepton)
274 """
275 if (mass(H) + mass(L)) > self.MN:
276 return 0.0
277
278 phsp = math.sqrt(
279 self.MN**4
280 + mass(H) ** 4
281 + mass(L) ** 4
282 - 2 * self.MN**2 * mass(H) ** 2
283 - 2 * self.MN**2 * mass(L) ** 2
284 - 2 * mass(H) ** 2 * mass(L) ** 2
285 )
286 tmp_width = 0
287 if "nu_mu" in L or "nu_e" in L or "nu_tau" in L:
288 tmp_width = (
289 phsp
290 / (self.sfmass**4 * 128 * u.pi * self.MN**3)
291 * c.GST2["sneutrino"]
292 * c.decayConstant[H] ** 2
293 * (self.MN**2 + mass(L) ** 2 - mass(H) ** 2)
294 )
295 else:
296 tmp_width = (
297 phsp
298 / (self.sfmass**4 * 128 * u.pi * self.MN**3)
299 * c.GST2["slepton"]
300 * c.decayConstant[H] ** 2
301 * (self.MN**2 + mass(L) ** 2 - mass(H) ** 2)
302 )
303
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:
306 tmp_width = (
307 phsp
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))
312 )
313 else:
314 tmp_width = (
315 phsp
316 / (self.sfmass**4 * 2 * u.pi * self.MN**3)
317 * c.GST2["tlepton"]
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))
320 )
321 width = self.U2[1] * tmp_width
322 # contributions both from decay and production couplings
323 if self.bench == 1 and ("K_" in H or "K*" in H):
324 width = (self.U2[0] + self.U2[1]) * tmp_width
325 # contributions only from production coupling
326 if self.bench == 2 and ("eta" in H or "phi" in H):
327 width = self.U2[0] * tmp_width
328
329 # Majorana case (charge conjugate channels)
330 width = 2.0 * width
331 return width
332

◆ Width_N_L()

rpvsusy.RPVSUSYbranchings.Width_N_L ( self,
H,
L )
Returns the Meson decay width to RPV neutralino and lepton
Inputs:
- H is a string (name of the meson)
- L is a string (name of the lepton)

Definition at line 333 of file rpvsusy.py.

333 def Width_N_L(self, H, L):
334 """
335 Returns the Meson decay width to RPV neutralino and lepton
336 Inputs:
337 - H is a string (name of the meson)
338 - L is a string (name of the lepton)
339 """
340
341 if mass(H) < (self.MN + mass(L)):
342 return 0.0
343 phsp = math.sqrt(
344 self.MN**4
345 + mass(H) ** 4
346 + mass(L) ** 4
347 - 2 * self.MN**2 * mass(H) ** 2
348 - 2 * self.MN**2 * mass(L) ** 2
349 - 2 * mass(H) ** 2 * mass(L) ** 2
350 )
351
352 tmp_width = 0
353 if "nu_mu" in L or "nu_e" in L or "nu_tau" in L:
354 tmp_width = (
355 phsp
356 / (self.sfmass**4 * 64 * u.pi * mass(H) ** 3)
357 * c.GST2["sneutrino"]
358 * c.decayConstant[H] ** 2
359 * (mass(H) ** 2 - self.MN**2 - mass(L) ** 2)
360 )
361 else:
362 tmp_width = (
363 phsp
364 / (self.sfmass**4 * 64 * u.pi * mass(H) ** 3)
365 * c.GST2["slepton"]
366 * c.decayConstant[H] ** 2
367 * (mass(H) ** 2 - self.MN**2 - mass(L) ** 2)
368 )
369
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:
372 tmp_width = (
373 phsp
374 / (self.sfmass**4 * 3 * u.pi * mass(H) ** 3)
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))
378 )
379 else:
380 tmp_width = (
381 phsp
382 / (self.sfmass**4 * 3 * u.pi * mass(H) ** 3)
383 * c.GST2["tlepton"]
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))
386 )
387
388 width = self.U2[0] * tmp_width
389
390 return width
391

Member Data Documentation

◆ bench

rpvsusy.RPVSUSYbranchings.bench = benchmark

Definition at line 193 of file rpvsusy.py.

◆ decays

rpvsusy.RPVSUSYbranchings.decays
Initial value:
= {
1: ["N -> K+ mu-", "N -> K*+ mu-", "N -> K*0 nu_mu", "N -> K_L0 nu_mu", "N -> K_S0 nu_mu"],
2: [
"N -> K+ mu-",
"N -> K*+ mu-",
"N -> K*0 nu_mu",
"N -> K_L0 nu_mu",
"N -> K_S0 nu_mu",
"N -> eta nu_mu",
"N -> eta' nu_mu",
"N -> phi nu_mu",
],
3: ["N -> K+ mu-", "N -> K*+ mu-", "N -> K*0 nu_mu", "N -> K_L0 nu_mu", "N -> K_S0 nu_mu"],
4: ["N -> D+ mu-", "N -> D*+ mu-", "N -> K*0 nu_mu", "N -> K_L0 nu_mu", "N -> K_S0 nu_mu"],
5: ["N -> K+ tau-", "N -> K*+ tau-", "N -> K*0 nu_tau", "N -> K_L0 nu_tau", "N -> K_S0 nu_tau"],
}

Definition at line 194 of file rpvsusy.py.

◆ MN

rpvsusy.RPVSUSYbranchings.MN = mass * u.GeV

Definition at line 189 of file rpvsusy.py.

◆ prods

dict rpvsusy.RPVSUSYbranchings.prods
Initial value:
= {
1: ["D+ -> N mu+"],
2: ["D_s+ -> N mu+"],
3: ["B0 -> N nu_mu"],
4: ["B0 -> N nu_mu"],
5: ["B0 -> N nu_tau", "B+ -> N tau+"],
}

Definition at line 211 of file rpvsusy.py.

◆ sfmass

rpvsusy.RPVSUSYbranchings.sfmass = sfmass

Definition at line 192 of file rpvsusy.py.

◆ U

rpvsusy.RPVSUSYbranchings.U = couplings

Definition at line 190 of file rpvsusy.py.

◆ U2

list rpvsusy.RPVSUSYbranchings.U2 = [ui * ui for ui in self.U]

Definition at line 191 of file rpvsusy.py.


The documentation for this class was generated from the following file: