]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AlirootRun_MUONtestlong.sh
- Added handling of tracks and file mask (used when merging different files).
[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
b7368825 9cp .rootrc rootlogon.C $OUTDIR
9bb9e42a 10cd $OUTDIR
11
b7368825 12SEED=1234567
13
9bb9e42a 14echo "Running simulation ..."
15
16aliroot -b >& testSim.out << EOF
17AliSimulation MuonSim
18MuonSim.SetConfigFile("$ALICE_ROOT/MUON/Config.C")
19// Minimum number of events to have enough stat. for invariant mass fit
20// 10000 is ok, 20000 is really fine
b7368825 21MuonSim.Run(10000)
9bb9e42a 22.q
23EOF
24
25echo "Running reconstruction ..."
26
27aliroot -b >& testReco.out << EOF
28TPluginManager* pluginManager = gROOT->GetPluginManager();
29pluginManager->AddHandler("AliReconstructor", "MUON","AliMUONReconstructor", "MUON","AliMUONReconstructor()")
30AliReconstruction MuonRec("galice.root")
31MuonRec.SetRunTracking("")
32MuonRec.SetRunVertexFinder(kFALSE)
33MuonRec.SetRunLocalReconstruction("MUON")
34MuonRec.SetFillESD("MUON")
35MuonRec.Run()
36.q
37EOF
38
858e5b75 39echo "Running Trigger efficiency ..."
40
41aliroot -b >& testTriggerResults.out << EOF
858e5b75 42.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C++
43MUONTriggerEfficiency();
44.q
45EOF
46
9bb9e42a 47echo "Running efficiency ..."
48
49aliroot -b >& testEfficiency.out << EOF
71d495df 50.L $ALICE_ROOT/MUON/MUONefficiency.C++
51// no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
52MUONefficiency();
9bb9e42a 53.q
54EOF
55
71d495df 56
9bb9e42a 57aliroot -b >& testResults.out << EOF
71d495df 58// no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
59.x $ALICE_ROOT/MUON/MUONplotefficiency.C
9bb9e42a 60.q
61EOF
62
63more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
64more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
65more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
66
67more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
68more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
69
70rm gphysi.dat
71rm *.root
72rm testSim.out
73rm testReco.out
74rm *.eps
75
76echo "Finished"
77echo "... see results in testlong_out"
78
79cd $CURDIR