]>
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 | |
5d150022 | 9 | cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR |
9bb9e42a | 10 | cd $OUTDIR |
11 | ||
40bd99d2 | 12 | # Minimum number of events to have enough stat. for invariant mass fit |
13 | # 10000 is ok, 20000 is really fine | |
bcb6fe52 | 14 | NEVENTS=10000 |
b7368825 | 15 | SEED=1234567 |
16 | ||
40bd99d2 | 17 | |
9bb9e42a | 18 | echo "Running simulation ..." |
19 | ||
20 | aliroot -b >& testSim.out << EOF | |
f6d516e9 | 21 | // Uncoment following lines to run simulation with local residual mis-alignment |
22 | // (generated via MUONGenerateGeometryData.C macro) | |
23 | // AliCDBManager* man = AliCDBManager::Instance(); | |
162637e4 | 24 | // man->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); |
25 | // man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/OCDB/MUON/ResMisAlignCDB"); | |
40bd99d2 | 26 | AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C"); |
a8724132 | 27 | MuonSim.SetSeed($SEED); |
10c8d1ce | 28 | MuonSim.SetMakeTrigger("MUON"); |
5c6f99c2 | 29 | MuonSim.Run($NEVENTS); |
9bb9e42a | 30 | .q |
31 | EOF | |
32 | ||
33 | echo "Running reconstruction ..." | |
34 | ||
35 | aliroot -b >& testReco.out << EOF | |
162637e4 | 36 | man->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); |
40bd99d2 | 37 | gRandom->SetSeed($SEED); |
b97b210c | 38 | AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG); |
b6675e8f | 39 | AliTracker::SetFieldMap(field, kFALSE); |
5c6f99c2 | 40 | AliReconstruction MuonRec("galice.root"); |
5c6f99c2 | 41 | MuonRec.SetRunVertexFinder(kFALSE); |
42 | MuonRec.SetRunLocalReconstruction("MUON"); | |
bcb6fe52 | 43 | MuonRec.SetRunTracking("MUON"); |
5c6f99c2 | 44 | MuonRec.SetFillESD("MUON"); |
bcb6fe52 | 45 | MuonRec.SetLoadAlignData("MUON"); |
46 | MuonRec.SetNumberOfEventsPerFile($NEVENTS); | |
5c6f99c2 | 47 | MuonRec.Run(); |
9bb9e42a | 48 | .q |
49 | EOF | |
50 | ||
858e5b75 | 51 | echo "Running Trigger efficiency ..." |
52 | ||
53 | aliroot -b >& testTriggerResults.out << EOF | |
5c6f99c2 | 54 | .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+ |
bcb6fe52 | 55 | MUONTriggerEfficiency("galice.root", "galice.root",0); |
858e5b75 | 56 | .q |
57 | EOF | |
58 | ||
9bb9e42a | 59 | echo "Running efficiency ..." |
60 | ||
61 | aliroot -b >& testEfficiency.out << EOF | |
5c6f99c2 | 62 | .L $ALICE_ROOT/MUON/MUONefficiency.C+ |
71d495df | 63 | // no argument assumes Upsilon but MUONefficiency(443) handles Jpsi |
bcb6fe52 | 64 | MUONefficiency("galice.root"); |
9bb9e42a | 65 | .q |
66 | EOF | |
67 | ||
71d495df | 68 | |
9bb9e42a | 69 | aliroot -b >& testResults.out << EOF |
71d495df | 70 | // no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi |
bcb6fe52 | 71 | .L $ALICE_ROOT/MUON/MUONplotefficiency.C+ |
72 | MUONplotefficiency(); | |
9bb9e42a | 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 | ||
b6675e8f | 83 | #rm gphysi.dat |
84 | #rm *.root | |
85 | #rm testSim.out | |
86 | #rm testReco.out | |
87 | #rm *.eps | |
9bb9e42a | 88 | |
89 | echo "Finished" | |
90 | echo "... see results in testlong_out" | |
91 | ||
92 | cd $CURDIR |