]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MFT/runMFT.sh
update on output object in AliMuonForwardTrackFinder.cxx
[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
11RUN=130850 # 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 \
22 $ALICE_ROOT/MFT/AliMFTClusterQA.C \
23 $ALICE_ROOT/MFT/AliMFTGeometry.root \
24 $OUTDIR
25cd $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
47echo "Finished"
48echo "... see results in $OUTDIR"
49ls -latr
50tar czf out.tar.gz *.out
51rm -f *.out *.so *.d
52cd $CURDIR