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