]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AlirootRun_MUONtest.sh
Macro for checking dimuon trigger efficiency (Fabien)
[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(10)
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 efficiency  ..."
35
36 aliroot -b >& testResults.out << EOF
37 .includepath $ALICE_ROOT/STEER
38 .includepath $ALICE_ROOT/MUON
39 .L $ALICE_ROOT/MUON/MUONefficiency.C++
40 // no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
41 MUONefficiency();
42 .q
43 EOF
44
45 echo "Finished"  
46 echo "... see results in test_out"
47
48 cd $CURDIR