9 cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
12 # Minimum number of events to have enough stat. for invariant mass fit
13 # 10000 is ok, 20000 is really fine
18 echo "Running simulation ..."
20 aliroot -b >& testSim.out << EOF
21 // Uncoment following lines to run simulation with local residual mis-alignment
22 // (generated via MUONGenerateGeometryData.C macro)
23 // AliCDBManager* man = AliCDBManager::Instance();
24 // man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
25 // man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/OCDB/MUON/ResMisAlignCDB");
26 AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
27 MuonSim.SetSeed($SEED);
28 MuonSim.SetMakeTrigger("MUON");
29 MuonSim.Run($NEVENTS);
33 echo "Running reconstruction ..."
35 aliroot -b >& testReco.out << EOF
36 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
37 gRandom->SetSeed($SEED);
38 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
39 AliTracker::SetFieldMap(field, kFALSE);
40 AliReconstruction MuonRec("galice.root");
41 MuonRec.SetRunVertexFinder(kFALSE);
42 MuonRec.SetRunLocalReconstruction("MUON");
43 MuonRec.SetRunTracking("MUON");
44 MuonRec.SetFillESD("MUON");
45 MuonRec.SetLoadAlignData("MUON");
46 MuonRec.SetNumberOfEventsPerFile($NEVENTS);
51 echo "Running Trigger efficiency ..."
53 aliroot -b >& testTriggerResults.out << EOF
54 .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
55 MUONTriggerEfficiency("galice.root", "galice.root",0);
59 echo "Running efficiency ..."
61 aliroot -b >& testEfficiency.out << EOF
62 .L $ALICE_ROOT/MUON/MUONefficiency.C+
63 // no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
64 MUONefficiency("galice.root");
69 aliroot -b >& testResults.out << EOF
70 // no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
71 .L $ALICE_ROOT/MUON/MUONplotefficiency.C+
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
80 more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
81 more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
90 echo "... see results in testlong_out"