9 cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
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
19 echo "Running simulation ..."
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","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
27 gRandom->SetSeed($SEED);
28 AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
29 MuonSim.SetMakeTrigger("MUON");
30 MuonSim.Run($NEVENTS);
34 echo "Running reconstruction ..."
36 aliroot -b >& testReco.out << EOF
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.SetRunTracking("");
42 MuonRec.SetRunVertexFinder(kFALSE);
43 MuonRec.SetRunLocalReconstruction("MUON");
44 MuonRec.SetFillESD("MUON");
45 MuonRec.SetLoadAlignData("MUON")
50 echo "Running Trigger efficiency ..."
52 aliroot -b >& testTriggerResults.out << EOF
53 .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
54 MUONTriggerEfficiency();
58 echo "Running efficiency ..."
60 aliroot -b >& testEfficiency.out << EOF
61 .L $ALICE_ROOT/MUON/MUONefficiency.C+
62 // no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
68 aliroot -b >& testResults.out << EOF
69 // no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
70 .x $ALICE_ROOT/MUON/MUONplotefficiency.C
74 more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
75 more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
76 more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
78 more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
79 more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
88 echo "... see results in testlong_out"