]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AlirootRun_MUONtest.sh
Adding comments
[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  rootlogon.C $OUTDIR
10 cd $OUTDIR
11
12 SEED=1234567
13
14 echo "Running simulation  ..."
15
16 aliroot -b >& testSim.out << EOF 
17 AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C")
18 gRandom->SetSeed($SEED);
19 MuonSim.Run(100)
20 .q
21 EOF
22
23 echo "Running reconstruction  ..."
24
25 aliroot -b >& testReco.out << EOF
26 TPluginManager* pluginManager = gROOT->GetPluginManager();
27 pluginManager->AddHandler("AliReconstructor", "MUON","AliMUONReconstructor", "MUON","AliMUONReconstructor()")
28 AliReconstruction MuonRec("galice.root")
29 MuonRec.SetRunTracking("")
30 MuonRec.SetRunVertexFinder(kFALSE)
31 MuonRec.SetRunLocalReconstruction("MUON")
32 MuonRec.SetFillESD("MUON")
33 gRandom->SetSeed($SEED);
34 MuonRec.Run()
35 .q
36 EOF
37
38 echo "Running Trigger efficiency  ..."
39
40 aliroot -b >& testTriggerResults.out << EOF
41 .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C++
42 MUONTriggerEfficiency();
43 .q
44 EOF
45
46 echo "Running efficiency  ..."
47
48 aliroot -b >& testResults.out << EOF
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