]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MFT/runMFT.sh
Geometry and simulation file modified
[u/mrichter/AliRoot.git] / MFT / runMFT.sh
index 424046d4d9f6b61976b2f74fd185bc5ef3bb209e..63e7c04b97c669a896b89317d7f001c53a40d52d 100644 (file)
@@ -4,23 +4,25 @@ date
 NEVENTS=10   # Number of events to be simulated
 SIMCONFIG="Config.C"   # default simulation configuration file
 CURDIR=`pwd`
-echo $CURDIR
+echo 'current directory:' $CURDIR
 OUTDIR=${CURDIR}/test
-echo $OUTDIR
+echo 'working directory:' $OUTDIR
 mkdir $OUTDIR
 RUN=169099  # run number for OCDB access
-SEED=12345  # random number generator seed should be used
 SIMDIR="generated" # sub-directory where to move simulated files prior to reco
 # Copy *ALL* the macros we need in the output directory, not to mess
 # with our source dir in any way.
 cp $ALICE_ROOT/MFT/.rootrc \
-   $ALICE_ROOT/Config.C \
+   $ALICE_ROOT/MFT/Config.C \
    $ALICE_ROOT/MFT/rootlogon.C \
-   $ALICE_ROOT/runReconstruction.C \
-   $ALICE_ROOT/runSimulation.C \
+   $ALICE_ROOT/MFT/runReconstruction.C \
+   $ALICE_ROOT/MFT/runSimulation.C \
    $ALICE_ROOT/MFT/AliMFTClusterQA.C \
    $ALICE_ROOT/MFT/AliMFTGeometry.root \
-   $ALICE_ROOT/AODtrain.C \
+   $ALICE_ROOT/MFT/AODtrain.C \
+   $ALICE_ROOT/MFT/RunAnalysisTaskMFTExample.C \
+   $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.h \
+   $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.cxx \
    $OUTDIR 
 cd $OUTDIR
 
@@ -31,7 +33,7 @@ cd $OUTDIR
 ###############################################################################
 
 echo "Running simulation  ..."
-aliroot -l -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err
+aliroot -l -b -q runSimulation.C\($NEVENTS,\""$SIMCONFIG"\",$RUN\) >$OUTDIR/testSim.out 2>$OUTDIR/testSim.err
 mkdir $SIMDIR
 echo "Copying generated files to $SIMDIR"
 cp $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
@@ -46,7 +48,7 @@ rm -f AliESD*.root *QA*.root
 echo "Running reconstruction  ..."
 cd $OUTDIR
 
-aliroot -l -b -q runReconstruction.C\($SEED,\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
+aliroot -l -b -q runReconstruction.C\(\""SAVEDIGITS"\"\) >$OUTDIR/testReco.out 2>$OUTDIR/testReco.err
       
 aliroot -l -b -q AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
 
@@ -60,6 +62,16 @@ echo "Creating AODs  ..."
 echo aliroot -l -b -q AODtrain.C
 aliroot -l -b -q AODtrain.C >$OUTDIR/AODLog.out 2>$OUTDIR/AODLog.err
 
+###############################################################################
+# 
+# Performing analysis
+#
+###############################################################################
+  
+echo "Performing analysis  ..."
+echo aliroot -l -b -q RunAnalysisTaskMFTExample.C
+aliroot -l -b -q RunAnalysisTaskMFTExample.C >$OUTDIR/analysisLog.out 2>$OUTDIR/analysisLog.err
+
 echo "Finished"  
 echo "... see results in $OUTDIR"
 ls -latr