LoadTransforms(): adding protection if no geometry is passed
[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");
5c6f99c2 22MuonSim.Run($NEVENTS);
fa701981 23.q
24EOF
25
26echo "Running reconstruction ..."
27
28aliroot -b >& testReco.out << EOF
7430be1c 29gRandom->SetSeed($SEED);
5c6f99c2 30AliReconstruction MuonRec("galice.root");
7430be1c 31MuonRec.SetInput("$FULLPATH/");
5c6f99c2 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
5c6f99c2 42.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
858e5b75 43MUONTriggerEfficiency();
44.q
45EOF
46
72a7d831 47echo "Running efficiency ..."
fa701981 48
49aliroot -b >& testResults.out << EOF
5c6f99c2 50.L $ALICE_ROOT/MUON/MUONefficiency.C+
72a7d831 51// no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
52MUONefficiency();
fa701981 53.q
54EOF
55
7430be1c 56if [ "$NEVENTS" -le 20 ]; then
57
5c6f99c2 58echo "Running dumps ..."
59
63b722de 60aliroot -b << EOF
5c6f99c2 61.L $ALICE_ROOT/MUON/MUONCheck.C+
7430be1c 62MUONdigits(); > check.digits
63MUONrecpoints(); > check.recpoints
64MUONrectracks(); > check.rectracks
65MUONrectrigger(); > check.rectrigger
5c6f99c2 66.q
7430be1c 67EOF
858e5b75 68
7430be1c 69fi
858e5b75 70
fa701981 71echo "Finished"
72echo "... see results in test_out"
73
74cd $CURDIR