9 cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $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/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);
35 echo "Running reconstruction ..."
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);
53 echo "Running Trigger efficiency ..."
55 aliroot -b >& testTriggerResults.out << EOF
56 .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
57 MUONTriggerEfficiency("galice.root", "galice.root",0);
61 echo "Running efficiency ..."
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");
71 aliroot -b >& testResults.out << EOF
72 // no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
73 .L $ALICE_ROOT/MUON/MUONplotefficiency.C+
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
82 more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
83 more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
92 echo "... see results in testlong_out"