]>
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 | |
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 | |
44 | MUONefficiency(); | |
9bb9e42a | 45 | .q |
46 | EOF | |
47 | ||
71d495df | 48 | |
9bb9e42a | 49 | aliroot -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 |
53 | EOF | |
54 | ||
55 | more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out | |
56 | more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out | |
57 | more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out | |
58 | ||
59 | more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out | |
60 | more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out | |
61 | ||
62 | rm gphysi.dat | |
63 | rm *.root | |
64 | rm testSim.out | |
65 | rm testReco.out | |
66 | rm *.eps | |
67 | ||
68 | echo "Finished" | |
69 | echo "... see results in testlong_out" | |
70 | ||
71 | cd $CURDIR |