]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MFT/runMFT.sh
bug-fix and increase in the range of the axis for in cone mc pt sum 2D histos
[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 $CURDIR
8 OUTDIR=${CURDIR}/test
9 echo $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/AliMuonForwardTrackFinder.C \
22    $ALICE_ROOT/MFT/FilterMuonGlobalTracks.C \
23    $ALICE_ROOT/MFT/AliMFTClusterQA.C \
24    $ALICE_ROOT/MFT/AliMFTGeometry.root \
25    $OUTDIR 
26 cd $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
45
46   aliroot -l -b -q runReconstruction.C\($SEED,\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
47
48   aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
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
60 echo "Finished"  
61 echo "... see results in $OUTDIR"
62 ls -latr
63 tar czf out.tar.gz *.out
64 rm -f *.out *.so *.d
65 cd $CURDIR