Updated test script AlirootRun_MUONtest.script:
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Dec 2005 09:02:17 +0000 (09:02 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Dec 2005 09:02:17 +0000 (09:02 +0000)
- the outputs are redirected in files;
- all produced files are put in a new test_out directory

MUON/AlirootRun_MUONtest.sh [new file with mode: 0755]

diff --git a/MUON/AlirootRun_MUONtest.sh b/MUON/AlirootRun_MUONtest.sh
new file mode 100755 (executable)
index 0000000..83dc78f
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/sh
+# $Id$
+
+CURDIR=`pwd`
+OUTDIR=test_out
+
+rm -fr $OUTDIR
+mkdir $OUTDIR
+cp .rootrc $OUTDIR
+cd $OUTDIR
+
+echo "Running simulation  ..."
+
+aliroot -b >& testSim.out << EOF 
+AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C")
+MuonSim.Run(10)
+.q
+EOF
+
+echo "Running reconstruction  ..."
+
+aliroot -b >& testReco.out << EOF
+TPluginManager* pluginManager = gROOT->GetPluginManager();
+pluginManager->AddHandler("AliReconstructor", "MUON","AliMUONReconstructor", "MUON","AliMUONReconstructor()")
+AliReconstruction MuonRec("galice.root")
+MuonRec.SetRunTracking("")
+MuonRec.SetRunVertexFinder(kFALSE)
+MuonRec.SetRunLocalReconstruction("MUON")
+MuonRec.SetFillESD("MUON")
+MuonRec.Run()
+.q
+EOF
+
+echo "Running mass plot  ..."
+
+aliroot -b >& testResults.out << EOF
+.includepath $ALICE_ROOT/STEER
+.includepath $ALICE_ROOT/MUON
+.L $ALICE_ROOT/MUON/MUONmassPlot_ESD.C++
+MUONmassPlot("galice.root",0,24999);
+.q
+EOF
+
+echo "Finished"  
+echo "... see results in test_out"
+
+cd $CURDIR