3 # first declare default values
4 NEVENTS=10 # Number of events to be simulated
5 SIMCONFIG="Config.C" # default simulation configuration file
7 echo 'current directory:' $CURDIR
9 echo 'working directory:' $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 \
29 ###############################################################################
31 # Performing SIMULATION
33 ###############################################################################
35 echo "Running simulation ..."
36 aliroot -l -b -q runSimulation.C\($NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err
38 echo "Copying generated files to $SIMDIR"
39 cp $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
41 ###############################################################################
43 # Performing RECONSTRUCTION and QA
45 ###############################################################################
47 rm -f AliESD*.root *QA*.root
48 echo "Running reconstruction ..."
51 aliroot -l -b -q runReconstruction.C\(\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
53 aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
55 ###############################################################################
59 ###############################################################################
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
65 ###############################################################################
69 ###############################################################################
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
76 echo "... see results in $OUTDIR"
78 tar czf out.tar.gz *.out