]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MFT/runMFT.sh
Pi0 peak band adjusted to 2013 period
[u/mrichter/AliRoot.git] / MFT / runMFT.sh
index bcbaa6c7448d5290d83ddbfdd525466bf5300e11..63e7c04b97c669a896b89317d7f001c53a40d52d 100644 (file)
@@ -4,12 +4,11 @@ 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.
@@ -18,43 +17,60 @@ cp $ALICE_ROOT/MFT/.rootrc \
    $ALICE_ROOT/MFT/rootlogon.C \
    $ALICE_ROOT/MFT/runReconstruction.C \
    $ALICE_ROOT/MFT/runSimulation.C \
-   $ALICE_ROOT/MFT/AliMuonForwardTrackFinder.C \
    $ALICE_ROOT/MFT/AliMFTClusterQA.C \
    $ALICE_ROOT/MFT/AliMFTGeometry.root \
+   $ALICE_ROOT/MFT/AODtrain.C \
+   $ALICE_ROOT/MFT/RunAnalysisTaskMFTExample.C \
+   $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.h \
+   $ALICE_ROOT/MFT/AliAnalysisTaskMFTExample.cxx \
    $OUTDIR 
 cd $OUTDIR
+
 ###############################################################################
 # 
 # Performing SIMULATION
 # 
 ###############################################################################
-  echo "Running simulation  ..."
-  aliroot -l -b -q runSimulation.C\($SEED,$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
+
+echo "Running simulation  ..."
+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
+
 ###############################################################################
 # 
-# Performing RECONSTRUCTION
+# Performing RECONSTRUCTION and QA
 # 
 ###############################################################################
-  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 AliMFTClusterQA.C\(\) >$OUTDIR/mftClusterQA.out 2>$OUTDIR/mftClusterQA.err
+rm -f AliESD*.root *QA*.root
+echo "Running reconstruction  ..."
+cd $OUTDIR
 
-  aliroot -l -b -q AliMuonForwardTrackFinder.C\($RUN,1\) >$OUTDIR/globalTracking.withBransonCorrection.out 2>$OUTDIR/globalTracking.withBransonCorrection.err
-  mv MuonGlobalTracking.QA.run$RUN.root MuonGlobalTracking.QA.run$RUN.withBransonCorrection.root 
-  mv MuonGlobalTracks.root MuonGlobalTracks.withBransonCorrection.root 
+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
 
-  aliroot -l -b -q AliMuonForwardTrackFinder.C\($RUN,0\) >$OUTDIR/globalTracking.withoutBransonCorrection.out 2>$OUTDIR/globalTracking.withoutBransonCorrection.err
-  mv MuonGlobalTracking.QA.run$RUN.root MuonGlobalTracking.QA.run$RUN.withoutBransonCorrection.root 
-  mv MuonGlobalTracks.root MuonGlobalTracks.withoutBransonCorrection.root 
+###############################################################################
+# 
+# Creating AODs
+#
+###############################################################################
+  
+echo "Creating AODs  ..."
+echo aliroot -l -b -q AODtrain.C
+aliroot -l -b -q AODtrain.C >$OUTDIR/AODLog.out 2>$OUTDIR/AODLog.err
 
-  aliroot -l -b -q FilterMuonGlobalTracks.C+\(\) >$OUTDIR/filterGlobalTracks.out 2>$OUTDIR/filterGlobalTracks.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"