]>
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 | FULLPATH="$CURDIR/$OUTDIR" |
13 | # Minimum number of events to have enough stat. for invariant mass fit | |
14 | # 10000 is ok, 20000 is really fine | |
b6675e8f | 15 | NEVENTS=10 |
b7368825 | 16 | SEED=1234567 |
17 | ||
40bd99d2 | 18 | |
9bb9e42a | 19 | echo "Running simulation ..." |
20 | ||
21 | aliroot -b >& testSim.out << EOF | |
f6d516e9 | 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"); | |
40bd99d2 | 27 | gRandom->SetSeed($SEED); |
40bd99d2 | 28 | AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C"); |
10c8d1ce | 29 | MuonSim.SetMakeTrigger("MUON"); |
5c6f99c2 | 30 | MuonSim.Run($NEVENTS); |
9bb9e42a | 31 | .q |
32 | EOF | |
33 | ||
34 | echo "Running reconstruction ..." | |
35 | ||
36 | aliroot -b >& testReco.out << EOF | |
40bd99d2 | 37 | gRandom->SetSeed($SEED); |
b6675e8f | 38 | AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k4kG); |
39 | AliTracker::SetFieldMap(field, kFALSE); | |
5c6f99c2 | 40 | AliReconstruction MuonRec("galice.root"); |
41 | MuonRec.SetRunTracking(""); | |
42 | MuonRec.SetRunVertexFinder(kFALSE); | |
43 | MuonRec.SetRunLocalReconstruction("MUON"); | |
44 | MuonRec.SetFillESD("MUON"); | |
45 | MuonRec.Run(); | |
9bb9e42a | 46 | .q |
47 | EOF | |
48 | ||
858e5b75 | 49 | echo "Running Trigger efficiency ..." |
50 | ||
51 | aliroot -b >& testTriggerResults.out << EOF | |
5c6f99c2 | 52 | .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+ |
858e5b75 | 53 | MUONTriggerEfficiency(); |
54 | .q | |
55 | EOF | |
56 | ||
9bb9e42a | 57 | echo "Running efficiency ..." |
58 | ||
59 | aliroot -b >& testEfficiency.out << EOF | |
5c6f99c2 | 60 | .L $ALICE_ROOT/MUON/MUONefficiency.C+ |
71d495df | 61 | // no argument assumes Upsilon but MUONefficiency(443) handles Jpsi |
62 | MUONefficiency(); | |
9bb9e42a | 63 | .q |
64 | EOF | |
65 | ||
71d495df | 66 | |
9bb9e42a | 67 | aliroot -b >& testResults.out << EOF |
71d495df | 68 | // no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi |
69 | .x $ALICE_ROOT/MUON/MUONplotefficiency.C | |
9bb9e42a | 70 | .q |
71 | EOF | |
72 | ||
73 | more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out | |
74 | more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out | |
75 | more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out | |
76 | ||
77 | more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out | |
78 | more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out | |
79 | ||
b6675e8f | 80 | #rm gphysi.dat |
81 | #rm *.root | |
82 | #rm testSim.out | |
83 | #rm testReco.out | |
84 | #rm *.eps | |
9bb9e42a | 85 | |
86 | echo "Finished" | |
87 | echo "... see results in testlong_out" | |
88 | ||
89 | cd $CURDIR |