]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MFT/runMFT.sh
MFT Analysis support classes added
[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 \
f7cc8591 17 $ALICE_ROOT/Config.C \
c95698be 18 $ALICE_ROOT/MFT/rootlogon.C \
f7cc8591 19 $ALICE_ROOT/runReconstruction.C \
20 $ALICE_ROOT/runSimulation.C \
c95698be 21 $ALICE_ROOT/MFT/AliMFTClusterQA.C \
22 $ALICE_ROOT/MFT/AliMFTGeometry.root \
f7cc8591 23 $ALICE_ROOT/AODtrain.C \
c95698be 24 $OUTDIR
25cd $OUTDIR
f7cc8591 26
c95698be 27###############################################################################
28#
29# Performing SIMULATION
30#
31###############################################################################
f7cc8591 32
33echo "Running simulation ..."
34aliroot -l -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err
35mkdir $SIMDIR
36echo "Copying generated files to $SIMDIR"
37cp $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
38
c95698be 39###############################################################################
40#
f7cc8591 41# Performing RECONSTRUCTION and QA
c95698be 42#
43###############################################################################
f0e880b5 44
f7cc8591 45rm -f AliESD*.root *QA*.root
46echo "Running reconstruction ..."
47cd $OUTDIR
f0e880b5 48
f7cc8591 49aliroot -l -b -q runReconstruction.C\($SEED,\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
50
51aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
f0e880b5 52
f7cc8591 53###############################################################################
54#
55# Creating AODs
56#
57###############################################################################
58
59echo "Creating AODs ..."
60echo aliroot -l -b -q AODtrain.C
61aliroot -l -b -q AODtrain.C >$OUTDIR/AODLog.out 2>$OUTDIR/AODLog.err
f0e880b5 62
c95698be 63echo "Finished"
64echo "... see results in $OUTDIR"
65ls -latr
66tar czf out.tar.gz *.out
67rm -f *.out *.so *.d
68cd $CURDIR