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

Classes

class  CKMmatrix
class  constants
class  HNLbranchings
class  HNL

Functions

 PDGname (particle)
 mass (str|None 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 HNLs given its mass and couplings as
#   input parameters.
#
#   Created: 30/11/2014 Elena Graverini (elena.graverini@cern.ch)
#
#   Updated: 07/10/2017 Kyrylo Bondarenko (bondarenko@lorentz.leidenuniv.nl)
#
#   Sample usage:
#     ipython -i hnl.py
#     In [1]: b = HNL(1.,[1.e-8, 2.e-8, 1.e-9],True)
#     HNLbranchings instance initialized with couplings:
#          U2e   = 1e-08
#          U2mu  = 2e-08
#          U2tau = 1e-09
#     and mass:
#          m = 1.0 GeV
#     In [2]: b.computeNLifetime()
#     Out[2]: 4.777721453160521e-05
#     In [3]: b.findBranchingRatio('N -> pi mu')
#     Out[3]: 0.11826749348890987
#
# ==================================================================

Function Documentation

◆ lifetime()

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

Definition at line 64 of file hnl.py.

64def lifetime(particle):
65 """
66 Read particle lifetime from PDG database
67 """
68 particle = PDGname(particle)
69 tPart = get_particle(particle)
70 return tPart.Lifetime()
71
72

◆ mass()

hnl.mass ( str | None particle)
Read particle mass from PDG database

Definition at line 55 of file hnl.py.

55def mass(particle: str | None):
56 """
57 Read particle mass from PDG database
58 """
59 particle = PDGname(particle)
60 tPart = get_particle(particle)
61 return tPart.Mass()
62
63

◆ PDGname()

hnl.PDGname ( particle)
Change particle name for use with the PDG database

Definition at line 44 of file hnl.py.

44def PDGname(particle):
45 """
46 Change particle name for use with the PDG database
47 """
48 if "1" in particle:
49 particle = particle.replace("1", "'")
50 if particle == "nu":
51 return "nu_e" # simple workaround to handle 3nu channel
52 return particle
53
54

Variable Documentation

◆ c

hnl.c = constants()

Definition at line 116 of file hnl.py.

◆ pdg

hnl.pdg = ROOT.TDatabasePDG.Instance()

Definition at line 41 of file hnl.py.