]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MFT/runMFT.sh
.so cleanup: no .so ext to GetLibraries()
[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 'current directory:' $CURDIR
8 OUTDIR=${CURDIR}/test
9 echo 'working directory:' $OUTDIR
10 mkdir $OUTDIR
11 RUN=169099  # run number for OCDB access
12 SIMDIR="generated" # sub-directory where to move simulated files prior to reco
13 # Copy *ALL* the macros we need in the output directory, not to mess
14 # with our source dir in any way.
15 cp $ALICE_ROOT/MFT/.rootrc \
16    $ALICE_ROOT/MFT/Config.C \
17    $ALICE_ROOT/MFT/rootlogon.C \
18    $ALICE_ROOT/MFT/runReconstruction.C \
19    $ALICE_ROOT/MFT/runSimulation.C \
20    $ALICE_ROOT/MFT/AliMFTClusterQA.C \
21    $ALICE_ROOT/MFT/AliMFTGeometry.root \
22    $ALICE_ROOT/MFT/AODtrain.C \
23    $ALICE_ROOT/MFT/RunAnalysisTaskMFTExample.C \
24    $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.h \
25    $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.cxx \
26    $OUTDIR 
27 cd $OUTDIR
28
29 ###############################################################################
30
31 # Performing SIMULATION
32
33 ###############################################################################
34
35 echo "Running simulation  ..."
36 aliroot -l -b -q runSimulation.C\($NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err
37 mkdir $SIMDIR
38 echo "Copying generated files to $SIMDIR"
39 cp $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
40
41 ###############################################################################
42
43 # Performing RECONSTRUCTION and QA
44
45 ###############################################################################
46
47 rm -f AliESD*.root *QA*.root
48 echo "Running reconstruction  ..."
49 cd $OUTDIR
50
51 aliroot -l -b -q runReconstruction.C\(\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
52       
53 aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
54
55 ###############################################################################
56
57 # Creating AODs
58 #
59 ###############################################################################
60   
61 echo "Creating AODs  ..."
62 echo aliroot -l -b -q AODtrain.C
63 aliroot -l -b -q AODtrain.C >$OUTDIR/AODLog.out 2>$OUTDIR/AODLog.err
64
65 ###############################################################################
66
67 # Performing analysis
68 #
69 ###############################################################################
70   
71 echo "Performing analysis  ..."
72 echo aliroot -l -b -q RunAnalysisTaskMFTExample.C
73 aliroot -l -b -q RunAnalysisTaskMFTExample.C >$OUTDIR/analysisLog.out 2>$OUTDIR/analysisLog.err
74
75 echo "Finished"  
76 echo "... see results in $OUTDIR"
77 ls -latr
78 tar czf out.tar.gz *.out
79 rm -f *.out *.so *.d
80 cd $CURDIR