SND@LHC Software
Loading...
Searching...
No Matches
rpvsusy Namespace Reference

Classes

class  constants
 
class  RPVSUSY
 
class  RPVSUSYbranchings
 

Functions

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

Variables

 pdg = ROOT.TDatabasePDG.Instance()
 
 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 84 of file rpvsusy.py.

84def lifetime(particle):
85 """
86 Read particle lifetime from PDG database
87 """
88 particle = PDGname(particle)
89 tPart = pdg.GetParticle(particle)
90 if particle=="D0" or particle=="D0bar" :
91 return 4.1e-13
92 elif particle=="D+" or particle=="D-":
93 return 1.0e-12
94 elif particle=="D_s+" or particle=="D_s-":
95 return 5.0e-13
96 elif particle=="B0" or particle=="B0bar":
97 return 1.5e-12
98 elif particle=="B+" or particle=="B-":
99 return 1.6e-12
100
101 return tPart.Lifetime()
102
103

◆ mass()

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

Definition at line 68 of file rpvsusy.py.

68def mass(particle):
69 """
70 Read particle mass from PDG database
71 """
72 particle = PDGname(particle)
73 tPart = pdg.GetParticle(particle)
74 return tPart.Mass()
75

◆ PDGcode()

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

Definition at line 60 of file rpvsusy.py.

60def PDGcode(particle):
61 """
62 Read particle ID from PDG database
63 """
64 particle = PDGname(particle)
65 tPart = pdg.GetParticle(particle)
66 return int(tPart.PdgCode())
67

◆ 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: return 'd'
46 if 'up' in particle: return 'u'
47 if 'strange' in particle: return 's'
48 if 'charm' in particle: return 'c'
49 if 'bottom' in particle: return 'b'
50 if 'beauty' in particle: return 'b'
51 if 'top' in particle: return 't'
52 if '1' in particle:
53 particle = particle.replace('1',"'")
54 if (not (('-' in particle) or ('+' in particle) or ('0' in particle)
55 or ('nu_' in particle) or ('eta' in particle) or ('phi' in particle) )
56 and (particle not in ['d','u','s','c','b','t'])):
57 particle += '+'
58 return particle
59

◆ width()

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

Definition at line 76 of file rpvsusy.py.

76def width(particle):
77 """
78 Read particle width from PDG database
79 """
80 particle = PDGname(particle)
81 tPart = pdg.GetParticle(particle)
82 return tPart.Width()
83

Variable Documentation

◆ c

rpvsusy.c = constants()

Definition at line 145 of file rpvsusy.py.

◆ pdg

rpvsusy.pdg = ROOT.TDatabasePDG.Instance()

Definition at line 39 of file rpvsusy.py.