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