]>
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 | |
b7368825 | 9 | cp .rootrc rootlogon.C $OUTDIR |
9bb9e42a | 10 | cd $OUTDIR |
11 | ||
b7368825 | 12 | SEED=1234567 |
13 | ||
9bb9e42a | 14 | echo "Running simulation ..." |
15 | ||
16 | aliroot -b >& testSim.out << EOF | |
17 | AliSimulation MuonSim | |
18 | MuonSim.SetConfigFile("$ALICE_ROOT/MUON/Config.C") | |
19 | // Minimum number of events to have enough stat. for invariant mass fit | |
20 | // 10000 is ok, 20000 is really fine | |
b7368825 | 21 | MuonSim.Run(10000) |
9bb9e42a | 22 | .q |
23 | EOF | |
24 | ||
25 | echo "Running reconstruction ..." | |
26 | ||
27 | aliroot -b >& testReco.out << EOF | |
28 | TPluginManager* pluginManager = gROOT->GetPluginManager(); | |
29 | pluginManager->AddHandler("AliReconstructor", "MUON","AliMUONReconstructor", "MUON","AliMUONReconstructor()") | |
30 | AliReconstruction MuonRec("galice.root") | |
31 | MuonRec.SetRunTracking("") | |
32 | MuonRec.SetRunVertexFinder(kFALSE) | |
33 | MuonRec.SetRunLocalReconstruction("MUON") | |
34 | MuonRec.SetFillESD("MUON") | |
35 | MuonRec.Run() | |
36 | .q | |
37 | EOF | |
38 | ||
858e5b75 | 39 | echo "Running Trigger efficiency ..." |
40 | ||
41 | aliroot -b >& testTriggerResults.out << EOF | |
858e5b75 | 42 | .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C++ |
43 | MUONTriggerEfficiency(); | |
44 | .q | |
45 | EOF | |
46 | ||
9bb9e42a | 47 | echo "Running efficiency ..." |
48 | ||
49 | aliroot -b >& testEfficiency.out << EOF | |
71d495df | 50 | .L $ALICE_ROOT/MUON/MUONefficiency.C++ |
51 | // no argument assumes Upsilon but MUONefficiency(443) handles Jpsi | |
52 | MUONefficiency(); | |
9bb9e42a | 53 | .q |
54 | EOF | |
55 | ||
71d495df | 56 | |
9bb9e42a | 57 | aliroot -b >& testResults.out << EOF |
71d495df | 58 | // no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi |
59 | .x $ALICE_ROOT/MUON/MUONplotefficiency.C | |
9bb9e42a | 60 | .q |
61 | EOF | |
62 | ||
63 | more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out | |
64 | more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out | |
65 | more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out | |
66 | ||
67 | more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out | |
68 | more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out | |
69 | ||
70 | rm gphysi.dat | |
71 | rm *.root | |
72 | rm testSim.out | |
73 | rm testReco.out | |
74 | rm *.eps | |
75 | ||
76 | echo "Finished" | |
77 | echo "... see results in testlong_out" | |
78 | ||
79 | cd $CURDIR |