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