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_scipy |
Raise an exception if SciPy math/analysis 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 | 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 | _sum_weight |
def | _get_fit_ellipse_covariance_matrix |
def | _update_fit_ellipse_cut |
def | fit_ellipse |
Fit an ellipse of arbitrary dimension n to a set of points. More... | |
def | make_root_ellipse_function |
Make a ROOT TFunction for a given beam ellipse. More... | |
def | common_overview_doc |
Creates some summary documentation for the common module. More... | |
Variables | |
string | xboa_version = '0.16.2' |
int | float_tolerance = 1 |
kill_subprocesses_at_exit = True | |
__has_maus = False | |
__has_root = True | |
__has_scipy = 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 = [] |
list | _function_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._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 187 of file _common.py.
|
private |
Definition at line 198 of file _common.py.
References xboa.common._common.wrapped_y_function.
def xboa.common._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 220 of file _common.py.
References xboa.common._common.nd_newton_raphson2().
def xboa.common._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 241 of file _common.py.
References xboa.common._common.has_numpy().
Referenced by xboa.common._common.nd_newton_raphson1().
def xboa.common._common.has_multiprocessing | ( | ) |
Raise an exception if multiprocessing libraries have not been imported properly.
Definition at line 293 of file _common.py.
Referenced by xboa.common._common.subprocess().
def xboa.common._common.has_maus | ( | ) |
Raise an exception if MAUS tracking library has not been imported properly.
Definition at line 300 of file _common.py.
def xboa.common._common.has_root | ( | ) |
Raise an exception if ROOT graphics libraries have not been imported properly.
Definition at line 307 of file _common.py.
Referenced by xboa.common._common.make_root_canvas(), xboa.common._common.make_root_ellipse_function(), xboa.common._common.make_root_graph(), xboa.common._common.make_root_histogram(), xboa.common._common.make_root_legend(), xboa.common._common.make_root_multigraph(), and xboa.common._common.subprocess().
def xboa.common._common.has_numpy | ( | ) |
Raise an exception if NumPy numerical algebra libraries have not been imported properly.
Definition at line 314 of file _common.py.
Referenced by xboa.common._common.histogram(), xboa.common._common.make_grid(), xboa.common._common.make_matplot_histogram(), xboa.common._common.make_shell(), xboa.common._common.nd_newton_raphson2(), and xboa.common._common.normalise_vector().
def xboa.common._common.has_scipy | ( | ) |
Raise an exception if SciPy math/analysis libraries have not been imported properly.
Definition at line 321 of file _common.py.
def xboa.common._common.has_matplot | ( | ) |
Raise an exception if NumPy numerical algebra libraries have not been imported properly.
Definition at line 329 of file _common.py.
Referenced by xboa.common._common.make_matplot_graph(), xboa.common._common.make_matplot_histogram(), xboa.common._common.make_matplot_multigraph(), xboa.common._common.make_matplot_scatter(), xboa.common._common.matplot_show_and_continue(), and xboa.common._common.wait_for_matplot().
def xboa.common._common.has_json | ( | ) |
Raise an exception if json data libraries have not been imported properly.
Definition at line 336 of file _common.py.
def xboa.common._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 354 of file _common.py.
Referenced by xboa.common._common.get_bin_edges(), xboa.common._common.make_matplot_graph(), xboa.common._common.make_matplot_multigraph(), xboa.common._common.make_root_graph(), xboa.common._common.make_root_histogram(), and xboa.common._common.make_root_multigraph().
def xboa.common._common.multisort | ( | list_of_lists | ) |
Sort a list of lists by the first list.
Definition at line 375 of file _common.py.
Referenced by xboa.common._common.make_matplot_graph(), xboa.common._common.make_matplot_multigraph(), and xboa.common._common.make_root_graph().
def xboa.common._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 402 of file _common.py.
def xboa.common._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 427 of file _common.py.
References xboa.common._common.has_numpy().
def xboa.common._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 455 of file _common.py.
References xboa.common._common.make_root_canvas(), and xboa.common._common.min_max().
def xboa.common._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 477 of file _common.py.
References xboa.common._common.has_root(), and xboa.common._common.make_root_histogram().
Referenced by xboa.common._common.get_bin_edges().
def xboa.common._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 515 of file _common.py.
References xboa.common._common.has_root(), and xboa.common._common.min_max().
Referenced by xboa.common._common.make_root_canvas(), and xboa.common._common.make_root_graph().
def xboa.common._common.make_root_legend | ( | canvas, | |
root_item_list | |||
) |
Build a legend for the canvas.
Definition at line 548 of file _common.py.
References xboa.common._common.has_root().
def xboa.common._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 632 of file _common.py.
References xboa.common._common.has_matplot(), xboa.common._common.has_numpy(), and xboa.common._common.make_root_graph().
def xboa.common._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 687 of file _common.py.
References xboa.common._common.has_root(), xboa.common._common.make_root_histogram(), xboa.common._common.min_max(), and xboa.common._common.multisort().
Referenced by xboa.common._common.make_matplot_histogram().
def xboa.common._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 725 of file _common.py.
References xboa.common._common.has_matplot(), xboa.common._common.min_max(), and xboa.common._common.multisort().
def xboa.common._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 755 of file _common.py.
References xboa.common._common.has_root(), and xboa.common._common.min_max().
def xboa.common._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 788 of file _common.py.
References xboa.common._common.has_matplot(), xboa.common._common.min_max(), and xboa.common._common.multisort().
def xboa.common._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 821 of file _common.py.
References xboa.common._common.has_matplot().
def xboa.common._common.wait_for_root | ( | ) |
Force python to halt processing until ROOT windows are closed.
Definition at line 837 of file _common.py.
def xboa.common._common.clear_root | ( | ) |
Close root plots (and free memory)
Definition at line 852 of file _common.py.
def xboa.common._common.wait_for_matplot | ( | ) |
Show any plots made using matplotlib on the screen.
Definition at line 863 of file _common.py.
References xboa.common._common.has_matplot().
def xboa.common._common.matplot_show_and_continue | ( | ) |
Show matplotlib plots and return to the script.
Definition at line 869 of file _common.py.
References xboa.common._common.has_matplot(), and xboa.common._common.subprocess().
def xboa.common._common.subprocess | ( | function, | |
args | |||
) |
Make a function call in a subprocess; return the subprocess pid.
Definition at line 885 of file _common.py.
References xboa.common._common.has_multiprocessing(), and xboa.common._common.has_root().
Referenced by xboa.common._common.matplot_show_and_continue().
def xboa.common._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 910 of file _common.py.
Referenced by xboa.common._common.__atexit().
def xboa.common._common.kolmogorov_smirnov_test | ( | list_1, | |
list_2 | |||
) |
Convenience wrapper for ROOT kolmogorov-smirnov test.
Definition at line 924 of file _common.py.
|
private |
Calls some functions automatically at exit.
Definition at line 938 of file _common.py.
References xboa.common._common.kill_all_subprocesses().
def xboa.common._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 955 of file _common.py.
References xboa.common._common.has_numpy().
Referenced by xboa.common._common.make_shell().
def xboa.common._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 982 of file _common.py.
References xboa.common._common.has_numpy(), xboa.common._common.make_grid(), and xboa.common._common.normalise_vector().
def xboa.common._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 1003 of file _common.py.
References xboa.common._common.has_numpy().
Referenced by xboa.common._common.make_shell().
|
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 1023 of file _common.py.
def xboa.common._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 1045 of file _common.py.
|
private |
Definition at line 1067 of file _common.py.
Referenced by xboa.common._common._get_fit_ellipse_covariance_matrix(), and xboa.common._common.fit_ellipse().
|
private |
Definition at line 1071 of file _common.py.
References xboa.common._common._sum_weight().
Referenced by xboa.common._common.fit_ellipse().
|
private |
Definition at line 1089 of file _common.py.
Referenced by xboa.common._common.fit_ellipse().
def xboa.common._common.fit_ellipse | ( | points, | |
eps_cut, | |||
weights = None , |
|||
max_number_of_iterations = 10 , |
|||
verbose = True |
|||
) |
Fit an ellipse of arbitrary dimension n to a set of points.
Returns ellipse centre vector <x> and defining matrix V. The ensemble of points on the ellipse is given by (x-<x>)^T*V^{-1}*(x-<x>) where x is a particle vector and V is the defining matrix.
Definition at line 1122 of file _common.py.
References xboa.common._common._get_fit_ellipse_covariance_matrix(), xboa.common._common._sum_weight(), and xboa.common._common._update_fit_ellipse_cut().
def xboa.common._common.make_root_ellipse_function | ( | mean, | |
cov, | |||
contours = None , |
|||
xmin = -1e3 , |
|||
xmax = 1e3 , |
|||
ymin = -1e3 , |
|||
ymax = 1e3 |
|||
) |
Make a ROOT TFunction for a given beam ellipse.
Returns a ROOT TFunction. Note ROOT TFunction does not like drawing small ellipses if the ellipse matrix is highly correlated (i.e. determinant near zero). A workaround is to make a TGraph with appropriate points (using e.g. formula given by this function). May be possible to fix by increasing the number of points in plot (func.SetNpy).
Definition at line 1169 of file _common.py.
References xboa.common._common.has_root().
def xboa.common._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 1198 of file _common.py.
string xboa_version = '0.16.2' |
Definition at line 42 of file _common.py.
int float_tolerance = 1 |
Definition at line 43 of file _common.py.
kill_subprocesses_at_exit = True |
Definition at line 44 of file _common.py.
__has_maus = False |
Definition at line 46 of file _common.py.
__has_root = True |
Definition at line 53 of file _common.py.
__has_scipy = True |
Definition at line 61 of file _common.py.
__has_numpy = True |
Definition at line 69 of file _common.py.
__has_matplot = True |
Definition at line 78 of file _common.py.
__has_multiprocessing = True |
Definition at line 87 of file _common.py.
__has_json = True |
Definition at line 94 of file _common.py.
dictionary pdg_pid_to_muon1 = {-13:'mu+'} |
Definition at line 101 of file _common.py.
dictionary muon1_pid_to_pdg = {} |
Definition at line 102 of file _common.py.
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} |
Definition at line 106 of file _common.py.
dictionary pdg_pid_to_icool = {} |
Definition at line 107 of file _common.py.
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} |
Definition at line 117 of file _common.py.
dictionary pdg_pid_to_mars = {} |
Definition at line 118 of file _common.py.
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} |
Definition at line 122 of file _common.py.
dictionary pdg_pid_to_name |
Definition at line 123 of file _common.py.
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} |
Definition at line 126 of file _common.py.
dictionary constants = {'c_light':299.792458, 'pi':3.14159265,'echarge':1} |
Definition at line 129 of file _common.py.
dictionary units |
Definition at line 130 of file _common.py.
list _canvas_persistent = [] |
privates
Definition at line 168 of file _common.py.
list _hist_persistent = [] |
Definition at line 169 of file _common.py.
list _graph_persistent = [] |
Definition at line 170 of file _common.py.
list _legend_persistent = [] |
Definition at line 171 of file _common.py.
list _function_persistent = [] |
Definition at line 172 of file _common.py.
int _figure_index = 1 |
pyplot globals
Definition at line 175 of file _common.py.
wrapped_y_function = None |
Definition at line 197 of file _common.py.
Referenced by xboa.common._common.__y_function_wrapper().
list __mp_subprocesses = [] |
Definition at line 876 of file _common.py.
list __fk_subprocesses = [] |
Definition at line 877 of file _common.py.
tuple __doc__ = common_overview_doc() |
Definition at line 1244 of file _common.py.