]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AlirootRun_MUONtest.sh
New TGeo features allow us to avoid the use of MANY.
[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 .rootrc $OUTDIR
10 cd $OUTDIR
11
12 echo "Running simulation  ..."
13
14 aliroot -b >& testSim.out << EOF 
15 AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C")
16 MuonSim.Run(100)
17 .q
18 EOF
19
20 echo "Running reconstruction  ..."
21
22 aliroot -b >& testReco.out << EOF
23 TPluginManager* pluginManager = gROOT->GetPluginManager();
24 pluginManager->AddHandler("AliReconstructor", "MUON","AliMUONReconstructor", "MUON","AliMUONReconstructor()")
25 AliReconstruction MuonRec("galice.root")
26 MuonRec.SetRunTracking("")
27 MuonRec.SetRunVertexFinder(kFALSE)
28 MuonRec.SetRunLocalReconstruction("MUON")
29 MuonRec.SetFillESD("MUON")
30 MuonRec.Run()
31 .q
32 EOF
33
34 echo "Running Trigger efficiency  ..."
35
36 aliroot -b >& testTriggerResults.out << EOF
37 .includepath $ALICE_ROOT/STEER
38 .includepath $ALICE_ROOT/MUON
39 .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C++
40 MUONTriggerEfficiency();
41 .q
42 EOF
43
44 echo "Running efficiency  ..."
45
46 aliroot -b >& testResults.out << EOF
47 .includepath $ALICE_ROOT/STEER
48 .includepath $ALICE_ROOT/MUON
49 .L $ALICE_ROOT/MUON/MUONefficiency.C++
50 // no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
51 MUONefficiency();
52 .q
53 EOF
54
55
56
57 echo "Finished"  
58 echo "... see results in test_out"
59
60 cd $CURDIR