xboa
|
Classes | |
class | rg |
root globals line_color_int=1, line_style_int=1, line_width_int=2, fill_color_int=None, stats_bool=False, hist_title_string='' More... | |
Functions | |
def | substitute |
Read in file_name_in and write to file_name_out, replacing key with value in switch_dict. More... | |
def | __y_function_wrapper |
def | nd_newton_raphson1 |
Root finding in an arbitrary dimensional system. More... | |
def | nd_newton_raphson2 |
Alternative version of nd_newton_raphson1. More... | |
def | has_multiprocessing |
Raise an exception if multiprocessing libraries have not been imported properly. More... | |
def | has_maus |
Raise an exception if MAUS tracking library has not been imported properly. More... | |
def | has_root |
Raise an exception if ROOT graphics libraries have not been imported properly. More... | |
def | has_numpy |
Raise an exception if NumPy numerical algebra libraries have not been imported properly. More... | |
def | has_matplot |
Raise an exception if NumPy numerical algebra libraries have not been imported properly. More... | |
def | has_json |
Raise an exception if json data libraries have not been imported properly. More... | |
def | min_max |
Return minimum and maximum of a list (i) discarding values with ~0 weight and (ii) adding a margin. More... | |
def | multisort |
Sort a list of lists by the first list. More... | |
def | n_bins |
Dynamically decide a number of bins depending on the number of points in the histogram. More... | |
def | histogram |
Get a 1d or 2d list of bin weights from a set of data, weights and bin edges. More... | |
def | get_bin_edges |
Get a sorted list of equally spaced bin edges from a list of floats. More... | |
def | make_root_canvas |
Make a root canvas with name canvas_name_string-<index> where <index> is a unique integer starting from 0. More... | |
def | make_root_histogram |
Make a root histogram with data taken from float lists and axes named after the axis strings. More... | |
def | make_root_legend |
Build a legend for the canvas. More... | |
def | make_matplot_histogram |
Make a matplot graph with data taken from float lists and axes naemd after the axis strings. More... | |
def | make_root_graph |
Make a root graph with data taken from float lists and axes named after the axis strings. More... | |
def | make_matplot_graph |
Make a matplot graph with data taken from float lists and axes naemd after the axis strings. More... | |
def | make_root_multigraph |
Print several different graphs on the same canvas. More... | |
def | make_matplot_multigraph |
Print several different graphs on the same axes. More... | |
def | make_matplot_scatter |
Make a matplot scatter graph with data taken from float lists and axes naemd after the axis strings. More... | |
def | wait_for_root |
Force python to halt processing until ROOT windows are closed. More... | |
def | clear_root |
Close root plots (and free memory) More... | |
def | wait_for_matplot |
Show any plots made using matplotlib on the screen. More... | |
def | matplot_show_and_continue |
Show matplotlib plots and return to the script. More... | |
def | make_doc |
def | make_dist_preliminaries |
Preliminaries to making a distribution: More... | |
def | subprocess |
Make a function call in a subprocess; return the subprocess pid. More... | |
def | kill_all_subprocesses |
Kill all subprocesses generated by Common.subprocess call; automatically called at exit unless kill_subprocesses_at_exit is set to False Note that this makes a call to the os, which may take a bit of time to respond. More... | |
def | kolmogorov_smirnov_test |
Convenience wrapper for ROOT kolmogorov-smirnov test. More... | |
def | __atexit |
Calls some functions automatically at exit. More... | |
def | make_grid |
Make a rectangular n_dimensional grid of points evenly spaced between [-1,1] in each dimension. More... | |
def | make_shell |
Make a shell of points that sit on a hyper-ellipsoid defined by ellipse matrix. More... | |
def | normalise_vector |
Normalise vector so that vector.T() * matrix.inverse * vector = 1. More... | |
def | __function_with_queue |
Wrapper function to put multiprocessing output into a queue. More... | |
def | process_list |
Run multiprocessing on a list of arguments. More... | |
def | common_overview_doc |
Creates some summary documentation for the Common module. More... | |
Variables | |
string | xboa_version = '0.15.1' |
int | float_tolerance = 1 |
kill_subprocesses_at_exit = True | |
__has_maus = False | |
__has_root = True | |
__has_numpy = True | |
__has_matplot = True | |
__has_multiprocessing = True | |
__has_json = True | |
dictionary | pdg_pid_to_muon1 = {-13:'mu+'} |
dictionary | muon1_pid_to_pdg = {} |
dictionary | icool_pid_to_pdg = {0:0, 1:-11, 2:-13, 3:211, 4:321, 5:2212, -1:11, -2:13, -3:-211, -4:-321, -5:-2212} |
dictionary | pdg_pid_to_icool = {} |
dictionary | mars_pid_to_pdg = {1:2212, 2:2112, 3:211, 4:-211, 5:321, 6:-321, 7:-13, 8:13, 9:22, 10:11, 11:-11, 12:-2212, 13:111, 14:1000010020, 15:1000010030, 16:1000020030, 17:1000020040, 18:14, 19:-14, 20:12, 21:-12, 22:130, 23:310, 24:311, 25:-311,26:3122,27:-3122,28:0,29:0,30:0,31:-2112,32:0,33:0,34:0,35:0,36:0,38:0,39:0,40:0} |
dictionary | pdg_pid_to_mars = {} |
dictionary | pdg_pid_to_mass = {0:0, 11:0.510998910, 12:0., 13:105.6583668, 14:0., 22:0., 111:134.9766, 211:139.57018, 321:493.667, 2112:939.56536, 2212:938.271996, 1000010020:1876.1239, 1000010030:2809.432, 1000020030:2809.41346, 1000020040: 3728.4001, 130:497.614, 310:497.614, 311:497.614, 3122:1115.683} |
dictionary | pdg_pid_to_name |
dictionary | pdg_pid_to_charge = {0:0, 11:-1, 12:0, 13:-1, 14:0, 22:0, 111:0, 211:+1, 321:+1, 2112:0, 2212:+1, 1000010020:0, 1000010030:0, 1000020030:0, 1000020040:0, 130:0, 310:0, 311:0, 3122:0, -11:+1, -12:0, -13:+1, -14:0, -211:-1, -321:-1, -2112:0, -2212:-1, -3122:0} |
dictionary | constants = {'c_light':299.792458, 'pi':3.14159265,'echarge':1} |
dictionary | units |
list | _canvas_persistent = [] |
privates More... | |
list | _hist_persistent = [] |
list | _graph_persistent = [] |
list | _legend_persistent = [] |
int | _figure_index = 1 |
pyplot globals More... | |
wrapped_y_function = None | |
list | __mp_subprocesses = [] |
list | __fk_subprocesses = [] |
tuple | __doc__ = common_overview_doc() |
def xboa.Common.substitute | ( | file_name_in, | |
file_name_out, | |||
switch_dict | |||
) |
Read in file_name_in and write to file_name_out, replacing key with value in switch_dict.
Must be a built in function somewhere to do same...
e.g. Common.substitute('file.in', 'file.out', {'energy':'momentum'})
Definition at line 176 of file Common.py.
References xboa.Common.__y_function_wrapper().
|
private |
Definition at line 187 of file Common.py.
References xboa.Common.nd_newton_raphson1(), xboa.Common.nd_newton_raphson2(), and xboa.Common.wrapped_y_function.
Referenced by xboa.Common.substitute().
def xboa.Common.nd_newton_raphson1 | ( | y_function, | |
y_tolerances_list, | |||
x_start_values_list, | |||
x_deltas_list, | |||
max_iteration = 10 , |
|||
x_upper_limits = None , |
|||
x_lower_limits = None , |
|||
verbose = True |
|||
) |
Root finding in an arbitrary dimensional system.
Returns x-value for y(x) = 0; caveat is dimension of y must equal dimension of x. If you use this, you might find more and better root finding functions in SciPy module
e.g. nd_newton_raphson(some_function, [0.1, 0.1], [0,0], [1,1]) will find root to y(x) < (0.1,0.1); starting at x=(0,0); initial error estimated to be [1,1]. some_function would be called like some_function([x_0, x_1]) and should return a list like [y_0,y_1]
Definition at line 209 of file Common.py.
References xboa.Common.has_numpy(), and xboa.Common.nd_newton_raphson2().
Referenced by xboa.Common.__y_function_wrapper().
def xboa.Common.nd_newton_raphson2 | ( | y_function, | |
y_tolerances_list, | |||
x_start_values_list, | |||
x_deltas_list, | |||
max_iteration = 10 , |
|||
x_upper_limits = None , |
|||
x_lower_limits = None , |
|||
verbose = True |
|||
) |
Alternative version of nd_newton_raphson1.
Here y_function takes a list of lists of x_values, of length dimension+1 and returns a list of lists of y_values Optimisation for when y_function can be made faster by running several jobs at once...
e.g. nd_newton_raphson(some_function, [0.1, 0.1], [0,0], [1,1]) will find root to y(x) < (0.1,0.1); starting at x=(0,0); initial error estimated to be [1,1]. some_function would be called like some_function([[x_00, x_01] ,[x_10, x_11], [x_20, x_21]) and should return a list like [[y_00,y_01],[y_10,y_11],[y_20,y_21]]
Definition at line 230 of file Common.py.
References xboa.Common.has_maus(), and xboa.Common.has_multiprocessing().
Referenced by xboa.Common.__y_function_wrapper(), and xboa.Common.nd_newton_raphson1().
def xboa.Common.has_multiprocessing | ( | ) |
Raise an exception if multiprocessing libraries have not been imported properly.
Definition at line 282 of file Common.py.
References xboa.Common.has_root().
Referenced by xboa.Common.make_doc(), and xboa.Common.nd_newton_raphson2().
def xboa.Common.has_maus | ( | ) |
Raise an exception if MAUS tracking library has not been imported properly.
Definition at line 289 of file Common.py.
References xboa.Common.has_numpy().
Referenced by xboa.Common.nd_newton_raphson2().
def xboa.Common.has_root | ( | ) |
Raise an exception if ROOT graphics libraries have not been imported properly.
Definition at line 296 of file Common.py.
References xboa.Common.has_matplot().
Referenced by xboa.Common.get_bin_edges(), xboa.Common.has_multiprocessing(), xboa.Common.make_doc(), xboa.Common.make_matplot_graph(), xboa.Common.make_matplot_histogram(), xboa.Common.make_root_canvas(), and xboa.Common.make_root_histogram().
def xboa.Common.has_numpy | ( | ) |
Raise an exception if NumPy numerical algebra libraries have not been imported properly.
Definition at line 303 of file Common.py.
References xboa.Common.has_json().
Referenced by xboa.Common.__atexit(), xboa.Common.has_maus(), xboa.Common.kill_all_subprocesses(), xboa.Common.make_grid(), xboa.Common.make_root_legend(), xboa.Common.n_bins(), and xboa.Common.nd_newton_raphson1().
def xboa.Common.has_matplot | ( | ) |
Raise an exception if NumPy numerical algebra libraries have not been imported properly.
Definition at line 310 of file Common.py.
References xboa.Common.min_max().
Referenced by xboa.Common.has_root(), xboa.Common.make_matplot_multigraph(), xboa.Common.make_matplot_scatter(), xboa.Common.make_root_graph(), xboa.Common.make_root_legend(), and xboa.Common.make_root_multigraph().
def xboa.Common.has_json | ( | ) |
Raise an exception if json data libraries have not been imported properly.
Definition at line 317 of file Common.py.
Referenced by xboa.Common.has_numpy().
def xboa.Common.min_max | ( | x_float_list, | |
weight_list = [] , |
|||
margin = 0.1 , |
|||
xmin = None , |
|||
xmax = None |
|||
) |
Return minimum and maximum of a list (i) discarding values with ~0 weight and (ii) adding a margin.
For making histograms.
e.g. Common.min_max([0.1,0.2,0.3,0.4], [0,1,1,1], 0.2) will return [0.16,0.44]
Definition at line 335 of file Common.py.
References xboa.Common.multisort().
Referenced by xboa.Common.has_matplot(), xboa.Common.histogram(), xboa.Common.make_matplot_graph(), xboa.Common.make_matplot_histogram(), xboa.Common.make_root_canvas(), xboa.Common.make_root_graph(), and xboa.Common.make_root_multigraph().
def xboa.Common.multisort | ( | list_of_lists | ) |
Sort a list of lists by the first list.
Definition at line 356 of file Common.py.
References xboa.Common.histogram(), and xboa.Common.n_bins().
Referenced by xboa.Common.make_matplot_histogram(), xboa.Common.make_root_graph(), xboa.Common.make_root_multigraph(), and xboa.Common.min_max().
def xboa.Common.n_bins | ( | n_points, | |
nx_bins = None , |
|||
ny_bins = None , |
|||
nz_bins = None , |
|||
n_dimensions = 1 |
|||
) |
Dynamically decide a number of bins depending on the number of points in the histogram.
Return value is a tuple (nx_bins, ny_bins, nz_bins), setting 0 to values that are out of the dimension range
Definition at line 383 of file Common.py.
References xboa.Common.has_numpy().
Referenced by xboa.Common.multisort().
def xboa.Common.histogram | ( | x_values, | |
x_bins, | |||
y_values = None , |
|||
y_bins = None , |
|||
weights = None |
|||
) |
Get a 1d or 2d list of bin weights from a set of data, weights and bin edges.
Return value is a tuple of (bin_weights, x_bins, y_bins)
Definition at line 408 of file Common.py.
References xboa.Common.get_bin_edges(), xboa.Common.make_root_canvas(), and xboa.Common.min_max().
Referenced by xboa.Common.multisort().
def xboa.Common.get_bin_edges | ( | list_of_variables, | |
number_of_bins, | |||
xmin = None , |
|||
xmax = None |
|||
) |
Get a sorted list of equally spaced bin edges from a list of floats.
Definition at line 436 of file Common.py.
References xboa.Common.has_root(), and xboa.Common.make_root_histogram().
Referenced by xboa.Common.histogram().
def xboa.Common.make_root_canvas | ( | name_string, | |
title_string = None , |
|||
bg_color = rg.canvas_fill_color , |
|||
highlight_color = rg.canvas_highlight_color , |
|||
border_mode = rg.canvas_border_mode , |
|||
frame_fill_color = rg.hist_fill_color |
|||
) |
Make a root canvas with name canvas_name_string-<index> where <index> is a unique integer starting from 0.
Definition at line 458 of file Common.py.
References xboa.Common.has_root(), and xboa.Common.min_max().
Referenced by xboa.Common.histogram().
def xboa.Common.make_root_histogram | ( | name_string, | |
x_float_list, | |||
x_axis_string, | |||
n_x_bins, | |||
y_float_list = [] , |
|||
y_axis_string = '' , |
|||
n_y_bins = 0 , |
|||
weight_list = [] , |
|||
xmin = None , |
|||
xmax = None , |
|||
ymin = None , |
|||
ymax = None , |
|||
line_color = rg.line_color , |
|||
line_style = rg.line_style , |
|||
line_width = rg.line_width , |
|||
fill_color = rg.fill_color , |
|||
stats = rg.stats , |
|||
hist_title_string = '' |
|||
) |
Make a root histogram with data taken from float lists and axes named after the axis strings.
Return value is the histogram
Definition at line 496 of file Common.py.
References xboa.Common.has_root(), and xboa.Common.make_root_legend().
Referenced by xboa.Common.get_bin_edges(), and xboa.Common.make_matplot_histogram().
def xboa.Common.make_root_legend | ( | canvas, | |
root_item_list | |||
) |
Build a legend for the canvas.
Definition at line 529 of file Common.py.
References xboa.Common.has_matplot(), xboa.Common.has_numpy(), and xboa.Common.make_matplot_histogram().
Referenced by xboa.Common.make_root_histogram().
def xboa.Common.make_matplot_histogram | ( | x_float_list, | |
x_axis_string, | |||
n_x_bins, | |||
y_float_list = [] , |
|||
y_axis_string = '' , |
|||
n_y_bins = 0 , |
|||
weight_list = [] |
|||
) |
Make a matplot graph with data taken from float lists and axes naemd after the axis strings.
Return value is a tuple of (hist, graph) matplot can format using tex expressions - use '$some math expression$' to include math text in your labels
After building the graph, use matplotlib.pyplot.show() to show something on the screen
Definition at line 611 of file Common.py.
References xboa.Common.has_root(), xboa.Common.make_root_graph(), xboa.Common.make_root_histogram(), xboa.Common.min_max(), and xboa.Common.multisort().
Referenced by xboa.Common.make_root_legend().
def xboa.Common.make_root_graph | ( | name_string, | |
x_float_list, | |||
x_axis_string, | |||
y_float_list, | |||
y_axis_string, | |||
sort = True , |
|||
xmin = None , |
|||
xmax = None , |
|||
ymin = None , |
|||
ymax = None , |
|||
line_color = rg.line_color , |
|||
line_style = rg.line_style , |
|||
line_width = rg.line_width , |
|||
fill_color = rg.graph_fill_color , |
|||
hist_title_string = '' |
|||
) |
Make a root graph with data taken from float lists and axes named after the axis strings.
Return value is a tuple of (hist, graph)
Return value is a tuple of (histogram, graph)
Definition at line 666 of file Common.py.
References xboa.Common.has_matplot(), xboa.Common.make_matplot_graph(), xboa.Common.make_root_multigraph(), xboa.Common.min_max(), and xboa.Common.multisort().
Referenced by xboa.Common.make_matplot_histogram().
def xboa.Common.make_matplot_graph | ( | x_float_list, | |
x_axis_string, | |||
y_float_list, | |||
y_axis_string, | |||
sort = True |
|||
) |
Make a matplot graph with data taken from float lists and axes naemd after the axis strings.
Return value is a tuple of (hist, graph) matplot can format using tex expressions - use '$some math expression$' to include math text in your labels
After building the graph, use matplotlib.pyplot.show() to show something on the screen
Definition at line 704 of file Common.py.
References xboa.Common.has_root(), xboa.Common.make_matplot_multigraph(), and xboa.Common.min_max().
Referenced by xboa.Common.make_root_graph().
def xboa.Common.make_root_multigraph | ( | name_string, | |
x_float_list_of_lists, | |||
x_axis_string, | |||
y_float_list_of_lists, | |||
y_axis_string | |||
) |
Print several different graphs on the same canvas.
Some default colour scheme is applied, but it may not be the best...
E.g. Common.make_root_multigraph('example', [[1.,2.,3.,4.], [1.,4.,9.,16.]], 'x', [[1.,2.,3.,4.],[1.,2.,3.,4.]], 'f(x)') will make a graph of f = x and f = x^0.5
Definition at line 734 of file Common.py.
References xboa.Common.has_matplot(), xboa.Common.make_matplot_scatter(), xboa.Common.min_max(), and xboa.Common.multisort().
Referenced by xboa.Common.make_root_graph().
def xboa.Common.make_matplot_multigraph | ( | x_float_list_of_lists, | |
x_axis_string, | |||
y_float_list_of_lists, | |||
y_axis_string | |||
) |
Print several different graphs on the same axes.
Some default colour scheme is applied, but it may not be the best...
E.g. Common.make_matplot_multigraph('example', [[1.,2.,3.,4.], [1.,4.,9.,16.]], 'x', [[1.,2.,3.,4.],[1.,2.,3.,4.]], 'f(x)') will make a graph of f = x and f = x^0.5
Definition at line 767 of file Common.py.
References xboa.Common.clear_root(), xboa.Common.has_matplot(), and xboa.Common.wait_for_root().
Referenced by xboa.Common.make_matplot_graph().
def xboa.Common.make_matplot_scatter | ( | x_float_list, | |
x_axis_string, | |||
y_float_list, | |||
y_axis_string | |||
) |
Make a matplot scatter graph with data taken from float lists and axes naemd after the axis strings.
matplot can format using tex expressions - use '$some math expression$' to include math text in your labels
After building the graph, use matplotlib.pyplot.show() to show something on the screen
Definition at line 800 of file Common.py.
References xboa.Common.has_matplot(), xboa.Common.matplot_show_and_continue(), and xboa.Common.wait_for_matplot().
Referenced by xboa.Common.make_root_multigraph().
def xboa.Common.wait_for_root | ( | ) |
Force python to halt processing until ROOT windows are closed.
Definition at line 816 of file Common.py.
References xboa.Common.make_doc(), and xboa.Common.subprocess().
Referenced by xboa.Common.make_matplot_multigraph().
def xboa.Common.clear_root | ( | ) |
Close root plots (and free memory)
Definition at line 829 of file Common.py.
Referenced by xboa.Common.make_matplot_multigraph().
def xboa.Common.wait_for_matplot | ( | ) |
Show any plots made using matplotlib on the screen.
Definition at line 836 of file Common.py.
References xboa.Common.make_dist_preliminaries().
Referenced by xboa.Common.make_matplot_scatter().
def xboa.Common.matplot_show_and_continue | ( | ) |
Show matplotlib plots and return to the script.
Definition at line 842 of file Common.py.
Referenced by xboa.Common.make_matplot_scatter().
def xboa.Common.make_doc | ( | source_folder = os.getcwd() , |
|
target_folder = os.getcwd() , |
|||
test = True |
|||
) |
Definition at line 850 of file Common.py.
References xboa.Common.has_multiprocessing(), xboa.Common.has_root(), and xboa.Common.subprocess().
Referenced by xboa.Common.wait_for_root().
def xboa.Common.make_dist_preliminaries | ( | source_folder = os.getcwd() , |
|
target_folder = os.getcwd() , |
|||
test = True |
|||
) |
Preliminaries to making a distribution:
Definition at line 874 of file Common.py.
References xboa.Common.kill_all_subprocesses().
Referenced by xboa.Common.wait_for_matplot().
def xboa.Common.subprocess | ( | function, | |
args | |||
) |
Make a function call in a subprocess; return the subprocess pid.
Definition at line 891 of file Common.py.
References xboa.Common.__atexit(), xboa.Common.kill_all_subprocesses(), and xboa.Common.kolmogorov_smirnov_test().
Referenced by xboa.Common.make_doc(), and xboa.Common.wait_for_root().
def xboa.Common.kill_all_subprocesses | ( | ) |
Kill all subprocesses generated by Common.subprocess call; automatically called at exit unless kill_subprocesses_at_exit is set to False Note that this makes a call to the os, which may take a bit of time to respond.
Definition at line 916 of file Common.py.
References xboa.Common.has_numpy(), and xboa.Common.make_grid().
Referenced by xboa.Common.make_dist_preliminaries(), and xboa.Common.subprocess().
def xboa.Common.kolmogorov_smirnov_test | ( | list_1, | |
list_2 | |||
) |
Convenience wrapper for ROOT kolmogorov-smirnov test.
Definition at line 930 of file Common.py.
References xboa.Common.make_shell().
Referenced by xboa.Common.subprocess().
|
private |
Calls some functions automatically at exit.
Definition at line 944 of file Common.py.
References xboa.Common.has_numpy(), xboa.Common.make_grid(), and xboa.Common.normalise_vector().
Referenced by xboa.Common.subprocess().
def xboa.Common.make_grid | ( | n_dimensions, | |
n_per_dimension | |||
) |
Make a rectangular n_dimensional grid of points evenly spaced between [-1,1] in each dimension.
Return value is a list of numpy.matrices with shape (n_dimensions, 1)
Definition at line 961 of file Common.py.
References xboa.Common.__function_with_queue(), xboa.Common.has_numpy(), and xboa.Common.normalise_vector().
Referenced by xboa.Common.__atexit(), and xboa.Common.kill_all_subprocesses().
def xboa.Common.make_shell | ( | n_per_dimension, | |
ellipse | |||
) |
Make a shell of points that sit on a hyper-ellipsoid defined by ellipse matrix.
Points are defined on a (hyper-)cuboidal grid and then compressed so that lengths are all 1. Doesn't necessarily mean points are evenly spaced. Return value is a list of numpy.matrices with shape (n_dimensions, 1)
Definition at line 988 of file Common.py.
References xboa.Common.process_list().
Referenced by xboa.Common.kolmogorov_smirnov_test().
def xboa.Common.normalise_vector | ( | vector, | |
matrix_inverse | |||
) |
Normalise vector so that vector.T() * matrix.inverse * vector = 1.
Return value is a list of numpy.matrices with shape (vec_length,1)
Definition at line 1009 of file Common.py.
Referenced by xboa.Common.__atexit(), and xboa.Common.make_grid().
|
private |
Wrapper function to put multiprocessing output into a queue.
tuple of (index, Output) is placed into queue; if function_call throws an exception, the exception is placed on the queue instead
Definition at line 1029 of file Common.py.
References xboa.Common.common_overview_doc().
Referenced by xboa.Common.make_grid().
def xboa.Common.process_list | ( | function_call, | |
list_of_args, | |||
max_n_processes | |||
) |
Run multiprocessing on a list of arguments.
Returns list of return values, one for each function call. List is always sorted into same order as input.
e.g. process_list(time.sleep, [(3, ), (6, ), (2, )], 2) will multiprocess the time.sleep function with inputs 3, 6 and 2 across 2 cores and return list like [None, None, None].
Definition at line 1051 of file Common.py.
Referenced by xboa.Common.make_shell().
def xboa.Common.common_overview_doc | ( | verbose = False | ) |
Creates some summary documentation for the Common module.
If verbose is True then will also print any functions or data not included in summary
Definition at line 1075 of file Common.py.
Referenced by xboa.Common.__function_with_queue().
dictionary icool_pid_to_pdg = {0:0, 1:-11, 2:-13, 3:211, 4:321, 5:2212, -1:11, -2:13, -3:-211, -4:-321, -5:-2212} |
dictionary mars_pid_to_pdg = {1:2212, 2:2112, 3:211, 4:-211, 5:321, 6:-321, 7:-13, 8:13, 9:22, 10:11, 11:-11, 12:-2212, 13:111, 14:1000010020, 15:1000010030, 16:1000020030, 17:1000020040, 18:14, 19:-14, 20:12, 21:-12, 22:130, 23:310, 24:311, 25:-311,26:3122,27:-3122,28:0,29:0,30:0,31:-2112,32:0,33:0,34:0,35:0,36:0,38:0,39:0,40:0} |
dictionary pdg_pid_to_mass = {0:0, 11:0.510998910, 12:0., 13:105.6583668, 14:0., 22:0., 111:134.9766, 211:139.57018, 321:493.667, 2112:939.56536, 2212:938.271996, 1000010020:1876.1239, 1000010030:2809.432, 1000020030:2809.41346, 1000020040: 3728.4001, 130:497.614, 310:497.614, 311:497.614, 3122:1115.683} |
dictionary pdg_pid_to_name |
dictionary pdg_pid_to_charge = {0:0, 11:-1, 12:0, 13:-1, 14:0, 22:0, 111:0, 211:+1, 321:+1, 2112:0, 2212:+1, 1000010020:0, 1000010030:0, 1000020030:0, 1000020040:0, 130:0, 310:0, 311:0, 3122:0, -11:+1, -12:0, -13:+1, -14:0, -211:-1, -321:-1, -2112:0, -2212:-1, -3122:0} |
dictionary constants = {'c_light':299.792458, 'pi':3.14159265,'echarge':1} |
dictionary units |
wrapped_y_function = None |
Definition at line 186 of file Common.py.
Referenced by xboa.Common.__y_function_wrapper().
tuple __doc__ = common_overview_doc() |