]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AlirootRun_MUONtestlong.sh
commented logging message
[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
bcb6fe52 12RUN=0
40bd99d2 13# Minimum number of events to have enough stat. for invariant mass fit
14# 10000 is ok, 20000 is really fine
bcb6fe52 15NEVENTS=10000
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");
0d24599f 26// man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
40bd99d2 27gRandom->SetSeed($SEED);
bcb6fe52 28AliCDBManager::Instance()->SetRun($RUN);
40bd99d2 29AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
10c8d1ce 30MuonSim.SetMakeTrigger("MUON");
5c6f99c2 31MuonSim.Run($NEVENTS);
9bb9e42a 32.q
33EOF
34
35echo "Running reconstruction ..."
36
37aliroot -b >& testReco.out << EOF
bcb6fe52 38AliCDBManager::Instance()->SetRun($RUN);
40bd99d2 39gRandom->SetSeed($SEED);
b97b210c 40AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
b6675e8f 41AliTracker::SetFieldMap(field, kFALSE);
5c6f99c2 42AliReconstruction MuonRec("galice.root");
5c6f99c2 43MuonRec.SetRunVertexFinder(kFALSE);
44MuonRec.SetRunLocalReconstruction("MUON");
bcb6fe52 45MuonRec.SetRunTracking("MUON");
5c6f99c2 46MuonRec.SetFillESD("MUON");
bcb6fe52 47MuonRec.SetLoadAlignData("MUON");
48MuonRec.SetNumberOfEventsPerFile($NEVENTS);
5c6f99c2 49MuonRec.Run();
9bb9e42a 50.q
51EOF
52
858e5b75 53echo "Running Trigger efficiency ..."
54
55aliroot -b >& testTriggerResults.out << EOF
5c6f99c2 56.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
bcb6fe52 57MUONTriggerEfficiency("galice.root", "galice.root",0);
858e5b75 58.q
59EOF
60
9bb9e42a 61echo "Running efficiency ..."
62
63aliroot -b >& testEfficiency.out << EOF
5c6f99c2 64.L $ALICE_ROOT/MUON/MUONefficiency.C+
71d495df 65// no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
bcb6fe52 66MUONefficiency("galice.root");
9bb9e42a 67.q
68EOF
69
71d495df 70
9bb9e42a 71aliroot -b >& testResults.out << EOF
71d495df 72// no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
bcb6fe52 73.L $ALICE_ROOT/MUON/MUONplotefficiency.C+
74MUONplotefficiency();
9bb9e42a 75.q
76EOF
77
78more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
79more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
80more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
81
82more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
83more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
84
b6675e8f 85#rm gphysi.dat
86#rm *.root
87#rm testSim.out
88#rm testReco.out
89#rm *.eps
9bb9e42a 90
91echo "Finished"
92echo "... see results in testlong_out"
93
94cd $CURDIR