FairShip
Loading...
Searching...
No Matches
rpvsusy Namespace Reference

Classes

class  constants
class  RPVSUSYbranchings
class  RPVSUSY

Functions

 PDGname (particle)
int PDGcode (str particle)
 mass (particle)
 width (particle)
 lifetime (particle)

Variables

 c = constants()

Detailed Description

# ==================================================================
#   Python module
#
#   This module provides methods to compute the lifetime and
#   branching ratio of SUSY RPV neutralino given its mass and couplings as
#   input parameters.
#
#   Created: 30/04/2016 Konstantinos A. Petridis (konstantinos.petridis@cern.ch)
#
#   Sample usage:
#     ipython -i rpvsusy.py
#     In [1]: b = RPVSYSY(1.,[1, 1],1e3,1,True)
#     HNLbranchings instance initialized with couplings:
#          \lambda_{production}       = 1GeV
#          \lambda_{decay}            = 1GeV
#          universal sfermion mass    = 1e3GeV
#
#     benchmark scenario:
#          1 (values between 1 and 5)
#     and mass:
#          m = 1.0 GeV
#     In [2]: b.computeNLifetime()
#     Out[2]: 0.0219634078804
#     In [3]: b.findBranchingRatio('N -> K+ mu-')
#     Out[3]: 0.11826749348890987
#
# ==================================================================

Function Documentation

◆ lifetime()

rpvsusy.lifetime ( particle)
Read particle lifetime from PDG database

Definition at line 100 of file rpvsusy.py.

100def lifetime(particle):
101 """
102 Read particle lifetime from PDG database
103 """
104 particle = PDGname(particle)
105 if particle == "D0" or particle == "D0bar":
106 return 4.1e-13
107 elif particle == "D+" or particle == "D-":
108 return 1.0e-12
109 elif particle == "D_s+" or particle == "D_s-":
110 return 5.0e-13
111 elif particle == "B0" or particle == "B0bar":
112 return 1.5e-12
113 elif particle == "B+" or particle == "B-":
114 return 1.6e-12
115
116 return get_particle(particle).Lifetime()
117
118

◆ mass()

rpvsusy.mass ( particle)
Read particle mass from PDG database

Definition at line 82 of file rpvsusy.py.

82def mass(particle):
83 """
84 Read particle mass from PDG database
85 """
86 particle = PDGname(particle)
87 tPart = get_particle(particle)
88 return tPart.Mass()
89
90

◆ PDGcode()

int rpvsusy.PDGcode ( str particle)
Read particle ID from PDG database

Definition at line 73 of file rpvsusy.py.

73def PDGcode(particle: str) -> int:
74 """
75 Read particle ID from PDG database
76 """
77 particle = PDGname(particle)
78 tPart = get_particle(particle)
79 return int(tPart.PdgCode())
80
81

◆ PDGname()

rpvsusy.PDGname ( particle)
Trim particle name for use with the PDG database

Definition at line 41 of file rpvsusy.py.

41def PDGname(particle):
42 """
43 Trim particle name for use with the PDG database
44 """
45 if "down" in particle:
46 return "d"
47 if "up" in particle:
48 return "u"
49 if "strange" in particle:
50 return "s"
51 if "charm" in particle:
52 return "c"
53 if "bottom" in particle:
54 return "b"
55 if "beauty" in particle:
56 return "b"
57 if "top" in particle:
58 return "t"
59 if "1" in particle:
60 particle = particle.replace("1", "'")
61 if not (
62 ("-" in particle)
63 or ("+" in particle)
64 or ("0" in particle)
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"]):
69 particle += "+"
70 return particle
71
72

◆ width()

rpvsusy.width ( particle)
Read particle width from PDG database

Definition at line 91 of file rpvsusy.py.

91def width(particle):
92 """
93 Read particle width from PDG database
94 """
95 particle = PDGname(particle)
96 tPart = get_particle(particle)
97 return tPart.Width()
98
99

Variable Documentation

◆ c

rpvsusy.c = constants()

Definition at line 171 of file rpvsusy.py.