New test script: simulation of 10000 events with standard Config.C,
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtestlong.sh
CommitLineData
9bb9e42a 1#!/bin/sh
2# $Id$
3
4CURDIR=`pwd`
5OUTDIR=testlong_out
6
7rm -fr $OUTDIR
8mkdir $OUTDIR
9cp .rootrc $OUTDIR
10cd $OUTDIR
11
12echo "Running simulation ..."
13
14aliroot -b >& testSim.out << EOF
15AliSimulation MuonSim
16MuonSim.SetConfigFile("$ALICE_ROOT/MUON/Config.C")
17// Minimum number of events to have enough stat. for invariant mass fit
18// 10000 is ok, 20000 is really fine
19MuonSim.Run(10000)
20.q
21EOF
22
23echo "Running reconstruction ..."
24
25aliroot -b >& testReco.out << EOF
26TPluginManager* pluginManager = gROOT->GetPluginManager();
27pluginManager->AddHandler("AliReconstructor", "MUON","AliMUONReconstructor", "MUON","AliMUONReconstructor()")
28AliReconstruction MuonRec("galice.root")
29MuonRec.SetRunTracking("")
30MuonRec.SetRunVertexFinder(kFALSE)
31MuonRec.SetRunLocalReconstruction("MUON")
32MuonRec.SetFillESD("MUON")
33MuonRec.Run()
34.q
35EOF
36
37echo "Running efficiency ..."
38
39aliroot -b >& testEfficiency.out << EOF
40.x ../MUONefficiency.C
41.q
42EOF
43
44aliroot -b >& testResults.out << EOF
45.x ../MUONplotefficiency.C
46.q
47EOF
48
49more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
50more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
51more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
52
53more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
54more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
55
56rm gphysi.dat
57rm *.root
58rm testSim.out
59rm testReco.out
60rm *.eps
61
62echo "Finished"
63echo "... see results in testlong_out"
64
65cd $CURDIR