12 echo "Running simulation ..."
14 aliroot -b >& testSim.out << EOF
16 MuonSim.SetConfigFile("$ALICE_ROOT/MUON/Config.C")
17 // Minimum number of events to have enough stat. for invariant mass fit
18 // 10000 is ok, 20000 is really fine
23 echo "Running reconstruction ..."
25 aliroot -b >& testReco.out << EOF
26 TPluginManager* pluginManager = gROOT->GetPluginManager();
27 pluginManager->AddHandler("AliReconstructor", "MUON","AliMUONReconstructor", "MUON","AliMUONReconstructor()")
28 AliReconstruction MuonRec("galice.root")
29 MuonRec.SetRunTracking("")
30 MuonRec.SetRunVertexFinder(kFALSE)
31 MuonRec.SetRunLocalReconstruction("MUON")
32 MuonRec.SetFillESD("MUON")
37 echo "Running efficiency ..."
39 aliroot -b >& testEfficiency.out << EOF
40 .includepath $ALICE_ROOT/STEER
41 .includepath $ALICE_ROOT/MUON
42 .L $ALICE_ROOT/MUON/MUONefficiency.C++
43 // no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
49 aliroot -b >& testResults.out << EOF
50 // no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
51 .x $ALICE_ROOT/MUON/MUONplotefficiency.C
55 more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
56 more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
57 more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
59 more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
60 more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
69 echo "... see results in testlong_out"