]>
Commit | Line | Data |
---|---|---|
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 | RUN=0 | |
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/Align/Data","local://$ALICE_ROOT/MUON/ResMisAlignCDB"); | |
27 | gRandom->SetSeed($SEED); | |
28 | AliCDBManager::Instance()->SetRun($RUN); | |
29 | AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C"); | |
30 | MuonSim.SetMakeTrigger("MUON"); | |
31 | MuonSim.Run($NEVENTS); | |
32 | .q | |
33 | EOF | |
34 | ||
35 | echo "Running reconstruction ..." | |
36 | ||
37 | aliroot -b >& testReco.out << EOF | |
38 | AliCDBManager::Instance()->SetRun($RUN); | |
39 | gRandom->SetSeed($SEED); | |
40 | AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG); | |
41 | AliTracker::SetFieldMap(field, kFALSE); | |
42 | AliReconstruction MuonRec("galice.root"); | |
43 | MuonRec.SetRunVertexFinder(kFALSE); | |
44 | MuonRec.SetRunLocalReconstruction("MUON"); | |
45 | MuonRec.SetRunTracking("MUON"); | |
46 | MuonRec.SetFillESD("MUON"); | |
47 | MuonRec.SetLoadAlignData("MUON"); | |
48 | MuonRec.SetNumberOfEventsPerFile($NEVENTS); | |
49 | MuonRec.Run(); | |
50 | .q | |
51 | EOF | |
52 | ||
53 | echo "Running Trigger efficiency ..." | |
54 | ||
55 | aliroot -b >& testTriggerResults.out << EOF | |
56 | .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+ | |
57 | MUONTriggerEfficiency("galice.root", "galice.root",0); | |
58 | .q | |
59 | EOF | |
60 | ||
61 | echo "Running efficiency ..." | |
62 | ||
63 | aliroot -b >& testEfficiency.out << EOF | |
64 | .L $ALICE_ROOT/MUON/MUONefficiency.C+ | |
65 | // no argument assumes Upsilon but MUONefficiency(443) handles Jpsi | |
66 | MUONefficiency("galice.root"); | |
67 | .q | |
68 | EOF | |
69 | ||
70 | ||
71 | aliroot -b >& testResults.out << EOF | |
72 | // no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi | |
73 | .L $ALICE_ROOT/MUON/MUONplotefficiency.C+ | |
74 | MUONplotefficiency(); | |
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 | ||
85 | #rm gphysi.dat | |
86 | #rm *.root | |
87 | #rm testSim.out | |
88 | #rm testReco.out | |
89 | #rm *.eps | |
90 | ||
91 | echo "Finished" | |
92 | echo "... see results in testlong_out" | |
93 | ||
94 | cd $CURDIR |