]>
Commit | Line | Data |
---|---|---|
c95698be | 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=130850 # run number for OCDB access | |
f777042e | 12 | SEED=12345 # random number generator seed should be used |
c95698be | 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/AliMuonForwardTrackFinder.C \ | |
22 | $ALICE_ROOT/MFT/AliMFTClusterQA.C \ | |
23 | $ALICE_ROOT/MFT/AliMFTGeometry.root \ | |
24 | $OUTDIR | |
25 | cd $OUTDIR | |
26 | ############################################################################### | |
27 | # | |
28 | # Performing SIMULATION | |
29 | # | |
30 | ############################################################################### | |
31 | echo "Running simulation ..." | |
32 | aliroot -l -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err | |
33 | mkdir $SIMDIR | |
34 | echo "Copying generated files to $SIMDIR" | |
35 | cp $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR | |
36 | ############################################################################### | |
37 | # | |
38 | # Performing RECONSTRUCTION | |
39 | # | |
40 | ############################################################################### | |
41 | rm -f AliESD*.root *QA*.root | |
42 | echo "Running reconstruction ..." | |
43 | cd $OUTDIR | |
44 | aliroot -l -b -q runReconstruction.C\($SEED,\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err | |
45 | aliroot -l -b -q AliMuonForwardTrackFinder.C\(\) >$OUTDIR/globalTracking.out 2>$OUTDIR/globalTracking.err | |
46 | aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err | |
47 | echo "Finished" | |
48 | echo "... see results in $OUTDIR" | |
49 | ls -latr | |
50 | tar czf out.tar.gz *.out | |
51 | rm -f *.out *.so *.d | |
52 | cd $CURDIR |