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