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/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 \
27 ###############################################################################
29 # Performing SIMULATION
31 ###############################################################################
32 echo "Running simulation ..."
33 aliroot -l -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err
35 echo "Copying generated files to $SIMDIR"
36 cp $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
37 ###############################################################################
39 # Performing RECONSTRUCTION
41 ###############################################################################
42 rm -f AliESD*.root *QA*.root
43 echo "Running reconstruction ..."
46 aliroot -l -b -q runReconstruction.C\($SEED,\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
48 aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
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
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
58 aliroot -l -b -q FilterMuonGlobalTracks.C+\(\) >$OUTDIR/filterGlobalTracks.out 2>$OUTDIR/filterGlobalTracks.err
61 echo "... see results in $OUTDIR"
63 tar czf out.tar.gz *.out