Removed overlaps/extrusions down to 1 micrometer
[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
858e5b75 19MuonSim.Run(1000)
9bb9e42a 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
858e5b75 37echo "Running Trigger efficiency ..."
38
39aliroot -b >& testTriggerResults.out << EOF
40.includepath $ALICE_ROOT/STEER
41.includepath $ALICE_ROOT/MUON
42.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C++
43MUONTriggerEfficiency();
44.q
45EOF
46
9bb9e42a 47echo "Running efficiency ..."
48
49aliroot -b >& testEfficiency.out << EOF
71d495df 50.includepath $ALICE_ROOT/STEER
51.includepath $ALICE_ROOT/MUON
52.L $ALICE_ROOT/MUON/MUONefficiency.C++
53// no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
54MUONefficiency();
9bb9e42a 55.q
56EOF
57
71d495df 58
9bb9e42a 59aliroot -b >& testResults.out << EOF
71d495df 60// no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
61.x $ALICE_ROOT/MUON/MUONplotefficiency.C
9bb9e42a 62.q
63EOF
64
65more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
66more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
67more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
68
69more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
70more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
71
72rm gphysi.dat
73rm *.root
74rm testSim.out
75rm testReco.out
76rm *.eps
77
78echo "Finished"
79echo "... see results in testlong_out"
80
81cd $CURDIR