ATLAS Offline Software
Functions | Variables
physics_parameters Namespace Reference

Functions

def nonblank_lines (f)
 
def isint (value)
 
def isfloat (value)
 

Variables

 f = open('mass_width_2019.mcd', "r")
 
string url = 'http://pdg.lbl.gov/2019/mcdata/mass_width_2019.mcd'
 
 response = urllib2.urlopen(url)
 
 html = response.read()
 
string file_name = url.split('/')[-1]
 
list stripped_list = []
 
 stripped_line = line.strip()
 
 split_line = line.strip().split(" ")
 
 p_dict = dict([])
 
 EW_dict = dict([])
 
 parameters = dict([])
 
 lastkey = sorted (parameters[k].keys())[-1]
 
 secondtolastkey = sorted (parameters[k].keys())[-2]
 

Function Documentation

◆ isfloat()

def physics_parameters.isfloat (   value)

Definition at line 67 of file physics_parameters.py.

67 def isfloat(value):
68  try:
69  float(value)
70  return value
71  except ValueError:
72  return False
73 
74 # Write particle dictionary from PDG API:
75 # differenciate between particles with widths and without
76 

◆ isint()

def physics_parameters.isint (   value)

Definition at line 58 of file physics_parameters.py.

58 def isint(value):
59  try:
60  int(value)
61  if (int(value) != 12 and int(value) != 14 and int(value) != 16):
62  return value
63  except ValueError:
64  return False
65 
66 # Function to detect float

◆ nonblank_lines()

def physics_parameters.nonblank_lines (   f)

Definition at line 39 of file physics_parameters.py.

39 def nonblank_lines(f):
40  for l in f:
41  line = l.rstrip()
42  if line:
43  yield line
44 
45 # Loop over lines and strip to extract the parameters in a list

Variable Documentation

◆ EW_dict

physics_parameters.EW_dict = dict([])

Definition at line 102 of file physics_parameters.py.

◆ f

physics_parameters.f = open('mass_width_2019.mcd', "r")

Definition at line 21 of file physics_parameters.py.

◆ file_name

string physics_parameters.file_name = url.split('/')[-1]

Definition at line 32 of file physics_parameters.py.

◆ html

physics_parameters.html = response.read()

Definition at line 29 of file physics_parameters.py.

◆ lastkey

physics_parameters.lastkey = sorted (parameters[k].keys())[-1]

Definition at line 156 of file physics_parameters.py.

◆ p_dict

physics_parameters.p_dict = dict([])

Definition at line 77 of file physics_parameters.py.

◆ parameters

physics_parameters.parameters = dict([])

Definition at line 144 of file physics_parameters.py.

◆ response

physics_parameters.response = urllib2.urlopen(url)

Definition at line 28 of file physics_parameters.py.

◆ secondtolastkey

physics_parameters.secondtolastkey = sorted (parameters[k].keys())[-2]

Definition at line 157 of file physics_parameters.py.

◆ split_line

physics_parameters.split_line = line.strip().split(" ")

Definition at line 51 of file physics_parameters.py.

◆ stripped_line

physics_parameters.stripped_line = line.strip()

Definition at line 49 of file physics_parameters.py.

◆ stripped_list

list physics_parameters.stripped_list = []

Definition at line 46 of file physics_parameters.py.

◆ url

string physics_parameters.url = 'http://pdg.lbl.gov/2019/mcdata/mass_width_2019.mcd'

Definition at line 27 of file physics_parameters.py.

CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
physics_parameters.nonblank_lines
def nonblank_lines(f)
Definition: physics_parameters.py:39
physics_parameters.isint
def isint(value)
Definition: physics_parameters.py:58
readCCLHist.float
float
Definition: readCCLHist.py:83
physics_parameters.isfloat
def isfloat(value)
Definition: physics_parameters.py:67