]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - MFT/runMFT.sh
Double check if SM is running added. Some redundant output removed from SM
[u/mrichter/AliRoot.git] / MFT / runMFT.sh
... / ...
CommitLineData
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 'current directory:' $CURDIR
8OUTDIR=${CURDIR}/test
9echo 'working directory:' $OUTDIR
10mkdir $OUTDIR
11RUN=169099 # run number for OCDB access
12SIMDIR="generated" # sub-directory where to move simulated files prior to reco
13# Copy *ALL* the macros we need in the output directory, not to mess
14# with our source dir in any way.
15cp $ALICE_ROOT/MFT/.rootrc \
16 $ALICE_ROOT/MFT/Config.C \
17 $ALICE_ROOT/MFT/rootlogon.C \
18 $ALICE_ROOT/MFT/runReconstruction.C \
19 $ALICE_ROOT/MFT/runSimulation.C \
20 $ALICE_ROOT/MFT/AliMFTClusterQA.C \
21 $ALICE_ROOT/MFT/AliMFTGeometry.root \
22 $ALICE_ROOT/MFT/AODtrain.C \
23 $ALICE_ROOT/MFT/RunAnalysisTaskMFTExample.C \
24 $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.h \
25 $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.cxx \
26 $OUTDIR
27cd $OUTDIR
28
29###############################################################################
30#
31# Performing SIMULATION
32#
33###############################################################################
34
35echo "Running simulation ..."
36aliroot -l -b -q runSimulation.C\($NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err
37mkdir $SIMDIR
38echo "Copying generated files to $SIMDIR"
39cp $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
40
41###############################################################################
42#
43# Performing RECONSTRUCTION and QA
44#
45###############################################################################
46
47rm -f AliESD*.root *QA*.root
48echo "Running reconstruction ..."
49cd $OUTDIR
50
51aliroot -l -b -q runReconstruction.C\(\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
52
53aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
54
55###############################################################################
56#
57# Creating AODs
58#
59###############################################################################
60
61echo "Creating AODs ..."
62echo aliroot -l -b -q AODtrain.C
63aliroot -l -b -q AODtrain.C >$OUTDIR/AODLog.out 2>$OUTDIR/AODLog.err
64
65###############################################################################
66#
67# Performing analysis
68#
69###############################################################################
70
71echo "Performing analysis ..."
72echo aliroot -l -b -q RunAnalysisTaskMFTExample.C
73aliroot -l -b -q RunAnalysisTaskMFTExample.C >$OUTDIR/analysisLog.out 2>$OUTDIR/analysisLog.err
74
75echo "Finished"
76echo "... see results in $OUTDIR"
77ls -latr
78tar czf out.tar.gz *.out
79rm -f *.out *.so *.d
80cd $CURDIR