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 // Uncoment following lines to run simulation with local residual mis-alignment
42 // (generated via MUONGenerateGeometryData.C macro)
43 // AliCDBManager* man = AliCDBManager::Instance();
44 // man->SetDefaultStorage("local://$ALICE_ROOT");
45 // man->SetSpecificStorage("MUON","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
46 gRandom->SetSeed($SEED);
47 AliCDBManager::Instance()->SetDefaultStorage("$CDB");
48 AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
49 MuonSim.SetMakeTrigger("MUON");
50 MuonSim.Run($NEVENTS);
54 echo "Running reconstruction ..."
56 aliroot -b >& testReco.out << EOF
57 gRandom->SetSeed($SEED);
58 AliCDBManager::Instance()->SetDefaultStorage("$CDB");
59 AliReconstruction MuonRec("galice.root");
60 MuonRec.SetRunTracking("");
61 MuonRec.SetRunVertexFinder(kFALSE);
62 MuonRec.SetRunLocalReconstruction("MUON");
63 MuonRec.SetFillESD("MUON");
68 echo "Running Trigger efficiency ..."
70 aliroot -b >& testTriggerResults.out << EOF
71 .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
72 MUONTriggerEfficiency();
76 echo "Running efficiency ..."
78 aliroot -b >& testEfficiency.out << EOF
79 .L $ALICE_ROOT/MUON/MUONefficiency.C+
80 // no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
86 aliroot -b >& testResults.out << EOF
87 // no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
88 .x $ALICE_ROOT/MUON/MUONplotefficiency.C
92 more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
93 more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
94 more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
96 more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
97 more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
106 echo "... see results in testlong_out"