Config.C updated
[u/mrichter/AliRoot.git] / MFT / runMFT.sh
CommitLineData
c95698be 1#!/bin/bash
2date
3# first declare default values
4NEVENTS=10 # Number of events to be simulated
5SIMCONFIG="Config.C" # default simulation configuration file
6CURDIR=`pwd`
7echo $CURDIR
8OUTDIR=${CURDIR}/test
9echo $OUTDIR
10mkdir $OUTDIR
274c2dce 11RUN=169099 # run number for OCDB access
f777042e 12SEED=12345 # random number generator seed should be used
c95698be 13SIMDIR="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.
16cp $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 \
49a2348b 22 $ALICE_ROOT/MFT/FilterMuonGlobalTracks.C \
c95698be 23 $ALICE_ROOT/MFT/AliMFTClusterQA.C \
24 $ALICE_ROOT/MFT/AliMFTGeometry.root \
25 $OUTDIR
26cd $OUTDIR
27###############################################################################
28#
29# Performing SIMULATION
30#
31###############################################################################
32 echo "Running simulation ..."
33 aliroot -l -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err
34 mkdir $SIMDIR
35 echo "Copying generated files to $SIMDIR"
36 cp $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
37###############################################################################
38#
39# Performing RECONSTRUCTION
40#
41###############################################################################
42 rm -f AliESD*.root *QA*.root
43 echo "Running reconstruction ..."
44 cd $OUTDIR
f0e880b5 45
c95698be 46 aliroot -l -b -q runReconstruction.C\($SEED,\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
f0e880b5 47
c95698be 48 aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
f0e880b5 49
50 aliroot -l -b -q AliMuonForwardTrackFinder.C\($RUN,1\) >$OUTDIR/globalTracking.withBransonCorrection.out 2>$OUTDIR/globalTracking.withBransonCorrection.err
51 mv MuonGlobalTracking.QA.run$RUN.root MuonGlobalTracking.QA.run$RUN.withBransonCorrection.root
52 mv MuonGlobalTracks.root MuonGlobalTracks.withBransonCorrection.root
53
54 aliroot -l -b -q AliMuonForwardTrackFinder.C\($RUN,0\) >$OUTDIR/globalTracking.withoutBransonCorrection.out 2>$OUTDIR/globalTracking.withoutBransonCorrection.err
55 mv MuonGlobalTracking.QA.run$RUN.root MuonGlobalTracking.QA.run$RUN.withoutBransonCorrection.root
56 mv MuonGlobalTracks.root MuonGlobalTracks.withoutBransonCorrection.root
57
58 aliroot -l -b -q FilterMuonGlobalTracks.C+\(\) >$OUTDIR/filterGlobalTracks.out 2>$OUTDIR/filterGlobalTracks.err
59
c95698be 60echo "Finished"
61echo "... see results in $OUTDIR"
62ls -latr
63tar czf out.tar.gz *.out
64rm -f *.out *.so *.d
65cd $CURDIR