Import Geant4 6.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:56:29 +02:00
parent 1d812b78b1
commit e083ffb441
1415 changed files with 111223 additions and 21207 deletions
@@ -8,13 +8,13 @@
# This example needs python2.2 http://www.python.org or later.
#
# This script may be used without or with ANAPHE e.g. lizard.
# Without lizard: just execute this file.
# With lizard: start lizard and than do
# This script may be used without or with PI.
# Without python: just execute this file.
# With python: start python2.2 and then do
# execfile("B03RunApplication.py")
import string
from PyAida import *
execfile("B03Application.py")
#executing the application could be done "by hand"
@@ -27,19 +27,17 @@ Bapp.setupSampler()
Bapp.run(30)
# using lizard and ANAPHE to create a histogram
# check if lizrd is loaded by looking for the af instance of the AnalysisFactory
if 'af' in dir():
tr = tf.create()
hf = af.createHistogramFactory(tr)
n = Bapp.nevents
minm = int(min(Bapp.messurements))-0.5
maxm = int(max(Bapp.messurements)+1)+0.5
h = hf.createHistogram1D ("10","Tracks entering in " +
'%(n)d' % vars() +
" events",30, minm, maxm)
for v in Bapp.messurements:
h.fill(v)
hplot(h)
# using PI to create a histogram
if 'af' in dir():
tr = tf.create("TracksEntering.hbook","hbook")
hf = af.createHistogramFactory(tr)
n = Bapp.nevents
minm = int(min(Bapp.messurements))-0.5
maxm = int(max(Bapp.messurements)+1)+0.5
h = hf.createHistogram1D ("10","Tracks entering in " + '%(n)d' % vars() + " events",30, minm, maxm)
for v in Bapp.messurements:
h.fill(v)
# hplot(h)
tr.commit()
tr.close()