]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AlirootRun_MUONtestlong.sh
- MUONefficiency.C run in compiled mode;
[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
71d495df 40.includepath $ALICE_ROOT/STEER
41.includepath $ALICE_ROOT/MUON
42.L $ALICE_ROOT/MUON/MUONefficiency.C++
43// no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
44MUONefficiency();
9bb9e42a 45.q
46EOF
47
71d495df 48
9bb9e42a 49aliroot -b >& testResults.out << EOF
71d495df 50// no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
51.x $ALICE_ROOT/MUON/MUONplotefficiency.C
9bb9e42a 52.q
53EOF
54
55more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
56more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
57more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
58
59more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
60more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
61
62rm gphysi.dat
63rm *.root
64rm testSim.out
65rm testReco.out
66rm *.eps
67
68echo "Finished"
69echo "... see results in testlong_out"
70
71cd $CURDIR