]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AlirootRun_MUONtestlong.sh
Bug on testlong script (Christian and Zaida)
[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 $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
10 cd $OUTDIR
11
12 FULLPATH="$CURDIR/$OUTDIR"
13 # Minimum number of events to have enough stat. for invariant mass fit
14 # 10000 is ok, 20000 is really fine
15 NEVENTS=10000
16 SEED=1234567
17
18
19 echo "Running simulation  ..."
20
21 aliroot -b >& testSim.out << EOF  
22 // Uncoment following lines to run simulation with local residual mis-alignment
23 // (generated via MUONGenerateGeometryData.C macro)
24 // AliCDBManager* man = AliCDBManager::Instance();
25 // man->SetDefaultStorage("local://$ALICE_ROOT");
26 // man->SetSpecificStorage("MUON","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
27 gRandom->SetSeed($SEED);
28 AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
29 MuonSim.SetMakeTrigger("MUON");
30 MuonSim.Run($NEVENTS); 
31 .q
32 EOF
33
34 echo "Running reconstruction  ..."
35
36 aliroot -b >& testReco.out << EOF 
37 gRandom->SetSeed($SEED);
38 AliReconstruction MuonRec("galice.root"); 
39 MuonRec.SetRunTracking("");
40 MuonRec.SetRunVertexFinder(kFALSE);
41 MuonRec.SetRunLocalReconstruction("MUON");
42 MuonRec.SetFillESD("MUON");
43 MuonRec.Run(); 
44 .q
45 EOF
46
47 echo "Running Trigger efficiency  ..."
48
49 aliroot -b >& testTriggerResults.out << EOF
50 .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
51 MUONTriggerEfficiency();
52 .q
53 EOF
54
55 echo "Running efficiency  ..."
56
57 aliroot -b >& testEfficiency.out << EOF 
58 .L $ALICE_ROOT/MUON/MUONefficiency.C+
59 // no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
60 MUONefficiency();
61 .q
62 EOF
63
64
65 aliroot -b >& testResults.out << EOF 
66 // no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
67 .x $ALICE_ROOT/MUON/MUONplotefficiency.C
68 .q
69 EOF
70
71 more  testSim.out | grep 'RunSimulation: Execution time:'  > testTime.out
72 more  testSim.out | grep 'RunSDigitization: Execution time:'  >> testTime.out
73 more  testSim.out | grep 'RunDigitization: Execution time:'  >> testTime.out 
74
75 more  testReco.out | grep 'RunLocalReconstruction: Execution time for MUON'  >> testTime.out
76 more  testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
77
78 rm gphysi.dat
79 rm *.root
80 rm testSim.out
81 rm testReco.out
82 rm *.eps
83
84 echo "Finished"  
85 echo "... see results in testlong_out"
86
87 cd $CURDIR