]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MFT/runMFT.sh
Bug fixed in MFTbaseLinkDef.h
[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 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/MFT/Config.C \
18    $ALICE_ROOT/MFT/rootlogon.C \
19    $ALICE_ROOT/MFT/runReconstruction.C \
20    $ALICE_ROOT/MFT/runSimulation.C \
21    $ALICE_ROOT/MFT/AliMFTClusterQA.C \
22    $ALICE_ROOT/MFT/AliMFTGeometry.root \
23    $ALICE_ROOT/MFT/AODtrain.C \
24    $ALICE_ROOT/MFT/RunAnalysisTaskMFTExample.C \
25    $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.h \
26    $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.cxx \
27    $OUTDIR 
28 cd $OUTDIR
29
30 ###############################################################################
31
32 # Performing SIMULATION
33
34 ###############################################################################
35
36 echo "Running simulation  ..."
37 aliroot -l -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err
38 mkdir $SIMDIR
39 echo "Copying generated files to $SIMDIR"
40 cp $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
41
42 ###############################################################################
43
44 # Performing RECONSTRUCTION and QA
45
46 ###############################################################################
47
48 rm -f AliESD*.root *QA*.root
49 echo "Running reconstruction  ..."
50 cd $OUTDIR
51
52 aliroot -l -b -q runReconstruction.C\($SEED,\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
53       
54 aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
55
56 ###############################################################################
57
58 # Creating AODs
59 #
60 ###############################################################################
61   
62 echo "Creating AODs  ..."
63 echo aliroot -l -b -q AODtrain.C
64 aliroot -l -b -q AODtrain.C >$OUTDIR/AODLog.out 2>$OUTDIR/AODLog.err
65
66 ###############################################################################
67
68 # Performing analysis
69 #
70 ###############################################################################
71   
72 echo "Performing analysis  ..."
73 echo aliroot -l -b -q RunAnalysisTaskMFTExample.C
74 aliroot -l -b -q RunAnalysisTaskMFTExample.C >$OUTDIR/analysisLog.out 2>$OUTDIR/analysisLog.err
75
76 echo "Finished"  
77 echo "... see results in $OUTDIR"
78 ls -latr
79 tar czf out.tar.gz *.out
80 rm -f *.out *.so *.d
81 cd $CURDIR