call to MUONTriggerEfficiency corrected (Philippe)
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtestlong.sh
CommitLineData
9bb9e42a 1#!/bin/sh
2# $Id$
3
4CURDIR=`pwd`
5OUTDIR=testlong_out
6
7rm -fr $OUTDIR
8mkdir $OUTDIR
5d150022 9cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
9bb9e42a 10cd $OUTDIR
11
40bd99d2 12FULLPATH="$CURDIR/$OUTDIR"
13# Minimum number of events to have enough stat. for invariant mass fit
14# 10000 is ok, 20000 is really fine
21da58df 15NEVENTS=100
b7368825 16SEED=1234567
17
40bd99d2 18
9bb9e42a 19echo "Running simulation ..."
20
21aliroot -b >& testSim.out << EOF
f6d516e9 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");
40bd99d2 27gRandom->SetSeed($SEED);
40bd99d2 28AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
10c8d1ce 29MuonSim.SetMakeTrigger("MUON");
5c6f99c2 30MuonSim.Run($NEVENTS);
9bb9e42a 31.q
32EOF
33
34echo "Running reconstruction ..."
35
36aliroot -b >& testReco.out << EOF
40bd99d2 37gRandom->SetSeed($SEED);
b97b210c 38AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
b6675e8f 39AliTracker::SetFieldMap(field, kFALSE);
5c6f99c2 40AliReconstruction MuonRec("galice.root");
41MuonRec.SetRunTracking("");
42MuonRec.SetRunVertexFinder(kFALSE);
43MuonRec.SetRunLocalReconstruction("MUON");
44MuonRec.SetFillESD("MUON");
e6a01e20 45MuonRec.SetLoadAlignData("MUON")
5c6f99c2 46MuonRec.Run();
9bb9e42a 47.q
48EOF
49
858e5b75 50echo "Running Trigger efficiency ..."
51
52aliroot -b >& testTriggerResults.out << EOF
5c6f99c2 53.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
21da58df 54MUONTriggerEfficiency("galice.root",0);
858e5b75 55.q
56EOF
57
9bb9e42a 58echo "Running efficiency ..."
59
60aliroot -b >& testEfficiency.out << EOF
5c6f99c2 61.L $ALICE_ROOT/MUON/MUONefficiency.C+
71d495df 62// no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
63MUONefficiency();
9bb9e42a 64.q
65EOF
66
71d495df 67
9bb9e42a 68aliroot -b >& testResults.out << EOF
71d495df 69// no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
70.x $ALICE_ROOT/MUON/MUONplotefficiency.C
9bb9e42a 71.q
72EOF
73
74more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
75more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
76more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
77
78more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
79more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
80
b6675e8f 81#rm gphysi.dat
82#rm *.root
83#rm testSim.out
84#rm testReco.out
85#rm *.eps
9bb9e42a 86
87echo "Finished"
88echo "... see results in testlong_out"
89
90cd $CURDIR