]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MFT/runMFT.sh
MFT Analysis support classes added
[u/mrichter/AliRoot.git] / MFT / runMFT.sh
1 #!/bin/bash
2 date
3 # first declare default values
4 NEVENTS=10   # Number of events to be simulated
5 SIMCONFIG="Config.C"   # default simulation configuration file
6 CURDIR=`pwd`
7 echo $CURDIR
8 OUTDIR=${CURDIR}/test
9 echo $OUTDIR
10 mkdir $OUTDIR
11 RUN=169099  # run number for OCDB access
12 SEED=12345  # random number generator seed should be used
13 SIMDIR="generated" # sub-directory where to move simulated files prior to reco
14 # Copy *ALL* the macros we need in the output directory, not to mess
15 # with our source dir in any way.
16 cp $ALICE_ROOT/MFT/.rootrc \
17    $ALICE_ROOT/Config.C \
18    $ALICE_ROOT/MFT/rootlogon.C \
19    $ALICE_ROOT/runReconstruction.C \
20    $ALICE_ROOT/runSimulation.C \
21    $ALICE_ROOT/MFT/AliMFTClusterQA.C \
22    $ALICE_ROOT/MFT/AliMFTGeometry.root \
23    $ALICE_ROOT/AODtrain.C \
24    $OUTDIR 
25 cd $OUTDIR
26
27 ###############################################################################
28
29 # Performing SIMULATION
30
31 ###############################################################################
32
33 echo "Running simulation  ..."
34 aliroot -l -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err
35 mkdir $SIMDIR
36 echo "Copying generated files to $SIMDIR"
37 cp $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
38
39 ###############################################################################
40
41 # Performing RECONSTRUCTION and QA
42
43 ###############################################################################
44
45 rm -f AliESD*.root *QA*.root
46 echo "Running reconstruction  ..."
47 cd $OUTDIR
48
49 aliroot -l -b -q runReconstruction.C\($SEED,\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
50       
51 aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
52
53 ###############################################################################
54
55 # Creating AODs
56 #
57 ###############################################################################
58   
59 echo "Creating AODs  ..."
60 echo aliroot -l -b -q AODtrain.C
61 aliroot -l -b -q AODtrain.C >$OUTDIR/AODLog.out 2>$OUTDIR/AODLog.err
62
63 echo "Finished"  
64 echo "... see results in $OUTDIR"
65 ls -latr
66 tar czf out.tar.gz *.out
67 rm -f *.out *.so *.d
68 cd $CURDIR