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

Classes

class  CKMmatrix
 
class  constants
 
class  HNL
 
class  HNLbranchings
 

Functions

 PDGname (particle)
 
 mass (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 55 of file hnl.py.

55def lifetime(particle):
56 """
57 Read particle lifetime from PDG database
58 """
59 particle = PDGname(particle)
60 tPart = pdg.GetParticle(particle)
61 return tPart.Lifetime()
62

◆ mass()

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

Definition at line 47 of file hnl.py.

47def mass(particle):
48 """
49 Read particle mass from PDG database
50 """
51 particle = PDGname(particle)
52 tPart = pdg.GetParticle(particle)
53 return tPart.Mass()
54

◆ PDGname()

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

Definition at line 38 of file hnl.py.

38def PDGname(particle):
39 """
40 Change particle name for use with the PDG database
41 """
42 if '1' in particle:
43 particle = particle.replace('1',"'")
44 if particle == 'nu': return 'nu_e' # simple workaround to handle 3nu channel
45 return particle
46

Variable Documentation

◆ c

hnl.c = constants()

Definition at line 100 of file hnl.py.

◆ pdg

hnl.pdg = ROOT.TDatabasePDG.Instance()

Definition at line 36 of file hnl.py.