9 cp .rootrc 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
18 CDBDIRECTORY="$ALICE_ROOT/MUON/CDB/Default";
19 CDB="local://$CDBDIRECTORY";
21 if [ ! -d $CDBDIRECTORY"/MUON" ]; then
23 echo "Generating Condition Database in directory $CDBDIRECTORY. This may take a while, so please be patient..."
25 aliroot -b >& testGenerateCalibrations.out << EOF
26 .L $ALICE_ROOT/MUON/MUONCDB.C++
27 gRandom->SetSeed($SEED);
28 generateCalibrations("$CDB",true);
34 echo "Condition Database found in directory $CDBDIRECTORY. Will use it if needed."
38 echo "Running simulation ..."
40 aliroot -b >& testSim.out << EOF
41 gRandom->SetSeed($SEED);
42 AliCDBManager::Instance()->SetDefaultStorage("$CDB");
43 AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
48 echo "Running reconstruction ..."
50 aliroot -b >& testReco.out << EOF
51 gRandom->SetSeed($SEED);
52 AliCDBManager::Instance()->SetDefaultStorage("$CDB");
53 AliReconstruction MuonRec("galice.root")
54 MuonRec.SetRunTracking("")
55 MuonRec.SetRunVertexFinder(kFALSE)
56 MuonRec.SetRunLocalReconstruction("MUON")
57 MuonRec.SetFillESD("MUON")
62 echo "Running Trigger efficiency ..."
64 aliroot -b >& testTriggerResults.out << EOF
65 .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C++
66 MUONTriggerEfficiency();
70 echo "Running efficiency ..."
72 aliroot -b >& testEfficiency.out << EOF
73 .L $ALICE_ROOT/MUON/MUONefficiency.C++
74 // no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
80 aliroot -b >& testResults.out << EOF
81 // no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
82 .x $ALICE_ROOT/MUON/MUONplotefficiency.C
86 more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
87 more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
88 more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
90 more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
91 more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
100 echo "... see results in testlong_out"