Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
+5 -5
View File
@@ -40,7 +40,7 @@ from array import array
def plot_range(xmin, xmax, xmargin=0.):
xmaxlog= 10
xminlog= -10
if(xmax!=0.):
xmaxlog= log10(xmax)
@@ -78,9 +78,9 @@ def init_root():
return canvas
# ------------------------------------------------------------------
# ------------------------------------------------------------------
# do a plot
# ------------------------------------------------------------------
# ------------------------------------------------------------------
def make_plot(xlist, user_title, axis_titile, q_super_impose=0):
ekin_array, y_array = array('d'), array('d')
@@ -88,12 +88,12 @@ def make_plot(xlist, user_title, axis_titile, q_super_impose=0):
for x in xlist:
ekin_array.append(x[0])
y_array.append(x[1])
# plot range
xmin= min(ekin_array)
xmax= max(ekin_array)
xrange= plot_range(xmin, xmax)
ymin= min(y_array)
ymax= max(y_array)
yrange= plot_range(ymin, ymax, 2)