]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MFT/runMFT.sh
ALIROOT-5420 Changes for CDH v3
[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`
4fe8ee42 7echo 'current directory:' $CURDIR
c95698be 8OUTDIR=${CURDIR}/test
4fe8ee42 9echo 'working directory:' $OUTDIR
c95698be 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 \
4fe8ee42 17 $ALICE_ROOT/MFT/Config.C \
c95698be 18 $ALICE_ROOT/MFT/rootlogon.C \
4fe8ee42 19 $ALICE_ROOT/MFT/runReconstruction.C \
20 $ALICE_ROOT/MFT/runSimulation.C \
c95698be 21 $ALICE_ROOT/MFT/AliMFTClusterQA.C \
22 $ALICE_ROOT/MFT/AliMFTGeometry.root \
4fe8ee42 23 $ALICE_ROOT/MFT/AODtrain.C \
24 $ALICE_ROOT/MFT/RunAnalysisTaskMFTExample.C \
25 $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.h \
26 $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.cxx \
c95698be 27 $OUTDIR
28cd $OUTDIR
f7cc8591 29
c95698be 30###############################################################################
31#
32# Performing SIMULATION
33#
34###############################################################################
f7cc8591 35
36echo "Running simulation ..."
37aliroot -l -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err
38mkdir $SIMDIR
39echo "Copying generated files to $SIMDIR"
40cp $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
41
c95698be 42###############################################################################
43#
f7cc8591 44# Performing RECONSTRUCTION and QA
c95698be 45#
46###############################################################################
f0e880b5 47
f7cc8591 48rm -f AliESD*.root *QA*.root
49echo "Running reconstruction ..."
50cd $OUTDIR
f0e880b5 51
f7cc8591 52aliroot -l -b -q runReconstruction.C\($SEED,\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
53
54aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
f0e880b5 55
f7cc8591 56###############################################################################
57#
58# Creating AODs
59#
60###############################################################################
61
62echo "Creating AODs ..."
63echo aliroot -l -b -q AODtrain.C
64aliroot -l -b -q AODtrain.C >$OUTDIR/AODLog.out 2>$OUTDIR/AODLog.err
f0e880b5 65
4fe8ee42 66###############################################################################
67#
68# Performing analysis
69#
70###############################################################################
71
72echo "Performing analysis ..."
73echo aliroot -l -b -q RunAnalysisTaskMFTExample.C
74aliroot -l -b -q RunAnalysisTaskMFTExample.C >$OUTDIR/analysisLog.out 2>$OUTDIR/analysisLog.err
75
c95698be 76echo "Finished"
77echo "... see results in $OUTDIR"
78ls -latr
79tar czf out.tar.gz *.out
80rm -f *.out *.so *.d
81cd $CURDIR