]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/fastSim.sh
New PID Classes
[u/mrichter/AliRoot.git] / MUON / fastSim.sh
CommitLineData
3a46ff06 1#!/bin/sh
2# $Id$
3# A. De Falco, H. Woehri, INFN Cagliari, April 2007
4
5NEVENTS=1
6CURDIR=`pwd`
7
8declare -i time
9time=`date +%s`
10SEED=$time
11SEED2=$RANDOM
12OUTDIR=fastOut_$SEED$SEED2
13
14rm -fr $OUTDIR
15mkdir $OUTDIR
16cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
17cd $OUTDIR
18#echo current dircetory is $PWD
19
20###############################
21# Event Generation #
22###############################
23echo 'Performing the fast generation now ...'
24aliroot -b > gen.out 2> gen.err << EOF
25gSystem->Load("libFASTSIM");
26.L $ALICE_ROOT/MUON/fastMUONGen.C+
27fastMUONGen($NEVENTS, "galice.root", 2);
28.q
29EOF
30
31#####################################
32# Event Simulation (Fast Tracking) #
33#####################################
34echo 'Performing the fast reconstruction now ...'
35aliroot -b > sim.out 2> sim.err << EOF
36.L $ALICE_ROOT/MUON/fastMUONSim.C+
37fastMUONSim();
38.q
39EOF