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

Classes

class  CKMmatrix
 
class  constants
 
class  HNL
 
class  HNLbranchings
 

Functions

def PDGname (particle)
 
def mass (str|None 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 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()

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

Definition at line 63 of file hnl.py.

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

◆ mass()

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

Definition at line 54 of file hnl.py.

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

◆ PDGname()

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

Definition at line 43 of file hnl.py.

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

Variable Documentation

◆ c

constants hnl.c = constants()

Definition at line 115 of file hnl.py.

◆ pdg

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

Definition at line 40 of file hnl.py.