]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MFT/runMFT.sh
EMCAL/DCAL Trigger Mapping for Run 2
[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
c95698be 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 \
4fe8ee42 16 $ALICE_ROOT/MFT/Config.C \
c95698be 17 $ALICE_ROOT/MFT/rootlogon.C \
4fe8ee42 18 $ALICE_ROOT/MFT/runReconstruction.C \
19 $ALICE_ROOT/MFT/runSimulation.C \
c95698be 20 $ALICE_ROOT/MFT/AliMFTClusterQA.C \
21 $ALICE_ROOT/MFT/AliMFTGeometry.root \
4fe8ee42 22 $ALICE_ROOT/MFT/AODtrain.C \
23 $ALICE_ROOT/MFT/RunAnalysisTaskMFTExample.C \
24 $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.h \
25 $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.cxx \
c95698be 26 $OUTDIR
27cd $OUTDIR
f7cc8591 28
c95698be 29###############################################################################
30#
31# Performing SIMULATION
32#
33###############################################################################
f7cc8591 34
35echo "Running simulation ..."
190a8304 36aliroot -l -b -q runSimulation.C\($NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err
f7cc8591 37mkdir $SIMDIR
38echo "Copying generated files to $SIMDIR"
39cp $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
40
c95698be 41###############################################################################
42#
f7cc8591 43# Performing RECONSTRUCTION and QA
c95698be 44#
45###############################################################################
f0e880b5 46
f7cc8591 47rm -f AliESD*.root *QA*.root
48echo "Running reconstruction ..."
49cd $OUTDIR
f0e880b5 50
190a8304 51aliroot -l -b -q runReconstruction.C\(\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
f7cc8591 52
53aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
f0e880b5 54
f7cc8591 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
f0e880b5 64
4fe8ee42 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
c95698be 75echo "Finished"
76echo "... see results in $OUTDIR"
77ls -latr
78tar czf out.tar.gz *.out
79rm -f *.out *.so *.d
80cd $CURDIR