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

Classes

class  constants
 
class  RPVSUSY
 
class  RPVSUSYbranchings
 

Functions

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

Variables

ROOT pdg = ROOT.TDatabasePDG.Instance()
 
constants 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()

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

Definition at line 103 of file rpvsusy.py.

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

◆ mass()

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

Definition at line 85 of file rpvsusy.py.

85def mass(particle):
86 """
87 Read particle mass from PDG database
88 """
89 particle = PDGname(particle)
90 tPart = pdg.GetParticle(particle)
91 return tPart.Mass()
92
93

◆ PDGcode()

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

Definition at line 76 of file rpvsusy.py.

76def PDGcode(particle: str) -> int:
77 """
78 Read particle ID from PDG database
79 """
80 particle = PDGname(particle)
81 tPart = pdg.GetParticle(particle)
82 return int(tPart.PdgCode())
83
84

◆ PDGname()

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

Definition at line 44 of file rpvsusy.py.

44def PDGname(particle):
45 """
46 Trim particle name for use with the PDG database
47 """
48 if "down" in particle:
49 return "d"
50 if "up" in particle:
51 return "u"
52 if "strange" in particle:
53 return "s"
54 if "charm" in particle:
55 return "c"
56 if "bottom" in particle:
57 return "b"
58 if "beauty" in particle:
59 return "b"
60 if "top" in particle:
61 return "t"
62 if "1" in particle:
63 particle = particle.replace("1", "'")
64 if not (
65 ("-" in particle)
66 or ("+" in particle)
67 or ("0" in particle)
68 or ("nu_" in particle)
69 or ("eta" in particle)
70 or ("phi" in particle)
71 ) and (particle not in ["d", "u", "s", "c", "b", "t"]):
72 particle += "+"
73 return particle
74
75

◆ width()

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

Definition at line 94 of file rpvsusy.py.

94def width(particle):
95 """
96 Read particle width from PDG database
97 """
98 particle = PDGname(particle)
99 tPart = pdg.GetParticle(particle)
100 return tPart.Width()
101
102

Variable Documentation

◆ c

constants rpvsusy.c = constants()

Definition at line 175 of file rpvsusy.py.

◆ pdg

ROOT rpvsusy.pdg = ROOT.TDatabasePDG.Instance()

Definition at line 41 of file rpvsusy.py.