3 # first declare default values
4 NEVENTS=10 # Number of events to be simulated
5 SIMCONFIG="Config.C" # default simulation configuration file
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 \
27 ###############################################################################
29 # Performing SIMULATION
31 ###############################################################################
33 echo "Running simulation ..."
34 aliroot -l -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err
36 echo "Copying generated files to $SIMDIR"
37 cp $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
39 ###############################################################################
41 # Performing RECONSTRUCTION and QA
43 ###############################################################################
45 rm -f AliESD*.root *QA*.root
46 echo "Running reconstruction ..."
49 aliroot -l -b -q runReconstruction.C\($SEED,\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
51 aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
53 ###############################################################################
57 ###############################################################################
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
64 echo "... see results in $OUTDIR"
66 tar czf out.tar.gz *.out