]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AlirootRun_MUONtest.sh
Updated test script AlirootRun_MUONtest.script:
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtest.sh
CommitLineData
fa701981 1#!/bin/sh
2# $Id$
3
4CURDIR=`pwd`
5OUTDIR=test_out
6
7rm -fr $OUTDIR
8mkdir $OUTDIR
9cp .rootrc $OUTDIR
10cd $OUTDIR
11
12echo "Running simulation ..."
13
14aliroot -b >& testSim.out << EOF
15AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C")
16MuonSim.Run(10)
17.q
18EOF
19
20echo "Running reconstruction ..."
21
22aliroot -b >& testReco.out << EOF
23TPluginManager* pluginManager = gROOT->GetPluginManager();
24pluginManager->AddHandler("AliReconstructor", "MUON","AliMUONReconstructor", "MUON","AliMUONReconstructor()")
25AliReconstruction MuonRec("galice.root")
26MuonRec.SetRunTracking("")
27MuonRec.SetRunVertexFinder(kFALSE)
28MuonRec.SetRunLocalReconstruction("MUON")
29MuonRec.SetFillESD("MUON")
30MuonRec.Run()
31.q
32EOF
33
34echo "Running mass plot ..."
35
36aliroot -b >& testResults.out << EOF
37.includepath $ALICE_ROOT/STEER
38.includepath $ALICE_ROOT/MUON
39.L $ALICE_ROOT/MUON/MUONmassPlot_ESD.C++
40MUONmassPlot("galice.root",0,24999);
41.q
42EOF
43
44echo "Finished"
45echo "... see results in test_out"
46
47cd $CURDIR