]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AlirootRun_MUONtestlong.sh
- Adding volume path attribute (moved from AliMUONGeometryModule)
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtestlong.sh
1 #!/bin/sh
2 # $Id$
3
4 CURDIR=`pwd`
5 OUTDIR=testlong_out
6
7 rm -fr $OUTDIR
8 mkdir $OUTDIR
9 cp .rootrc rootlogon.C $OUTDIR
10 cd $OUTDIR
11
12 SEED=1234567
13
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
21 MuonSim.Run(10000) 
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
39 echo "Running Trigger efficiency  ..."
40
41 aliroot -b >& testTriggerResults.out << EOF
42 .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C++
43 MUONTriggerEfficiency();
44 .q
45 EOF
46
47 echo "Running efficiency  ..."
48
49 aliroot -b >& testEfficiency.out << EOF 
50 .L $ALICE_ROOT/MUON/MUONefficiency.C++
51 // no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
52 MUONefficiency();
53 .q
54 EOF
55
56
57 aliroot -b >& testResults.out << EOF 
58 // no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
59 .x $ALICE_ROOT/MUON/MUONplotefficiency.C
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