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