Adding GetBufSize() (Ivana, Christian)
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtest.sh
CommitLineData
fa701981 1#!/bin/sh
2# $Id$
3
4CURDIR=`pwd`
5OUTDIR=test_out
6
7rm -fr $OUTDIR
8mkdir $OUTDIR
7430be1c 9cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
fa701981 10cd $OUTDIR
11
7430be1c 12FULLPATH="$CURDIR/$OUTDIR"
13NEVENTS=100
b7368825 14SEED=1234567
15
fa701981 16echo "Running simulation ..."
17
7430be1c 18aliroot -b >& testSim.out << EOF
b7368825 19gRandom->SetSeed($SEED);
7430be1c 20AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
21MuonSim.SetWriteRawData("MUON");
22MuonSim.Run($NEVENTS)
fa701981 23.q
24EOF
25
26echo "Running reconstruction ..."
27
28aliroot -b >& testReco.out << EOF
7430be1c 29gRandom->SetSeed($SEED);
fa701981 30AliReconstruction MuonRec("galice.root")
7430be1c 31MuonRec.SetInput("$FULLPATH/");
fa701981 32MuonRec.SetRunTracking("")
33MuonRec.SetRunVertexFinder(kFALSE)
34MuonRec.SetRunLocalReconstruction("MUON")
35MuonRec.SetFillESD("MUON")
7430be1c 36MuonRec.Run();
fa701981 37.q
38EOF
39
858e5b75 40echo "Running Trigger efficiency ..."
858e5b75 41aliroot -b >& testTriggerResults.out << EOF
858e5b75 42.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C++
43MUONTriggerEfficiency();
44.q
45EOF
46
72a7d831 47echo "Running efficiency ..."
fa701981 48
49aliroot -b >& testResults.out << EOF
72a7d831 50.L $ALICE_ROOT/MUON/MUONefficiency.C++
51// no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
52MUONefficiency();
fa701981 53.q
54EOF
55
7430be1c 56echo "Running dumps ..."
57
58if [ "$NEVENTS" -le 20 ]; then
59
63b722de 60aliroot -b << EOF
7430be1c 61.L $ALICE_ROOT/MUON/MUONCheck.C++
62MUONdigits(); > check.digits
63MUONrecpoints(); > check.recpoints
64MUONrectracks(); > check.rectracks
65MUONrectrigger(); > check.rectrigger
66EOF
858e5b75 67
7430be1c 68fi
858e5b75 69
fa701981 70echo "Finished"
71echo "... see results in test_out"
72
73cd $CURDIR