Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
print_units_physical_constants Namespace Reference

Functions

def print_constants
 

Variables

tuple pi_digits
 
tuple pi Decimal((0, pi_digits, 1 - len(pi_digits)))
 
tuple c_m_s Decimal((0, (2, 9, 9, 7, 9, 2, 4, 5, 8), 0))
 
tuple e_C Decimal((0, (1, 6, 0, 2, 1, 7, 6, 6, 3, 4), -28))
 
tuple h_Js Decimal((0, (6, 6, 2, 6, 0, 7, 0, 1, 5), -42))
 
 h_eVs h_Js/e_C
 
tuple h_MeVs h_eVs/Decimal((0, (1,), 6))
 
tuple h_GeVs h_eVs/Decimal((0, (1,), 9))
 
tuple hbar_Js h_Js/(2 * pi)
 
tuple hbar_eVs h_eVs/(2 * pi)
 
tuple hbar_MeVs h_MeVs/(2 * pi)
 
tuple hbar_GeVs h_GeVs/(2 * pi)
 
tuple degree_radian pi/Decimal((0, (1, 8, 0), 0))
 
int J_eV 1
 
tuple J_GeV J_eV/Decimal((0, (1,), 9))
 
list full_constants
 
list float_constants [(n, float(v), u) for n, v, u in full_constants]
 

Function Documentation

def print_units_physical_constants.print_constants (   constants)

Definition at line 161 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 161 of file print_units_physical_constants.py

References print().

+ Here is the call graph for this function:

Variable Documentation

tuple print_units_physical_constants.c_m_s Decimal((0, (2, 9, 9, 7, 9, 2, 4, 5, 8), 0))

Definition at line 123 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 123 of file print_units_physical_constants.py

tuple print_units_physical_constants.degree_radian pi/Decimal((0, (1, 8, 0), 0))

Definition at line 138 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 138 of file print_units_physical_constants.py

tuple print_units_physical_constants.e_C Decimal((0, (1, 6, 0, 2, 1, 7, 6, 6, 3, 4), -28))

Definition at line 125 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 125 of file print_units_physical_constants.py

list print_units_physical_constants.float_constants [(n, float(v), u) for n, v, u in full_constants]

Definition at line 158 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 158 of file print_units_physical_constants.py

list print_units_physical_constants.full_constants
Initial value:
1 [
2  ("pi", pi, ""),
3  ("speed of light in vacuum", c_m_s, "m/s"),
4  ("electron charge", e_C, "C"),
5  ("Planck constant", h_Js, "J*s"),
6  ("Planck constant", h_eVs, "eV*s"),
7  ("Planck constant", h_MeVs, "MeV*s"),
8  ("Planck constant", h_GeVs, "GeV*s"),
9  ("reduced Planck constant", hbar_Js, "J*s"),
10  ("reduced Planck constant", hbar_eVs, "eV*s"),
11  ("reduced Planck constant", hbar_MeVs, "MeV*s"),
12  ("reduced Planck constant", hbar_GeVs, "GeV*s"),
13  ("degree", degree_radian, "radian"),
14  ("Joule", J_eV, "eV"),
15  ("Joule", J_GeV, "GeV"),
16 ]

Definition at line 142 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 142 of file print_units_physical_constants.py

print_units_physical_constants.h_eVs h_Js/e_C

Definition at line 128 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 128 of file print_units_physical_constants.py

tuple print_units_physical_constants.h_GeVs h_eVs/Decimal((0, (1,), 9))

Definition at line 130 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 130 of file print_units_physical_constants.py

tuple print_units_physical_constants.h_Js Decimal((0, (6, 6, 2, 6, 0, 7, 0, 1, 5), -42))

Definition at line 127 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 127 of file print_units_physical_constants.py

tuple print_units_physical_constants.h_MeVs h_eVs/Decimal((0, (1,), 6))

Definition at line 129 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 129 of file print_units_physical_constants.py

tuple print_units_physical_constants.hbar_eVs h_eVs/(2 * pi)

Definition at line 133 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 133 of file print_units_physical_constants.py

tuple print_units_physical_constants.hbar_GeVs h_GeVs/(2 * pi)

Definition at line 135 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 135 of file print_units_physical_constants.py

tuple print_units_physical_constants.hbar_Js h_Js/(2 * pi)

Definition at line 132 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 132 of file print_units_physical_constants.py

tuple print_units_physical_constants.hbar_MeVs h_MeVs/(2 * pi)

Definition at line 134 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 134 of file print_units_physical_constants.py

int print_units_physical_constants.J_eV 1

Definition at line 139 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 139 of file print_units_physical_constants.py

tuple print_units_physical_constants.J_GeV J_eV/Decimal((0, (1,), 9))

Definition at line 140 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 140 of file print_units_physical_constants.py

tuple print_units_physical_constants.pi Decimal((0, pi_digits, 1 - len(pi_digits)))

Definition at line 117 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 117 of file print_units_physical_constants.py

tuple print_units_physical_constants.pi_digits

Definition at line 10 of file print_units_physical_constants.py.

View newest version in sPHENIX GitHub at line 10 of file print_units_physical_constants.py