Macro for checking dimuon trigger efficiency (Fabien)
[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
9cp .rootrc $OUTDIR
10cd $OUTDIR
11
12echo "Running simulation ..."
13
14aliroot -b >& testSim.out << EOF
15AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C")
16MuonSim.Run(10)
17.q
18EOF
19
20echo "Running reconstruction ..."
21
22aliroot -b >& testReco.out << EOF
23TPluginManager* pluginManager = gROOT->GetPluginManager();
24pluginManager->AddHandler("AliReconstructor", "MUON","AliMUONReconstructor", "MUON","AliMUONReconstructor()")
25AliReconstruction MuonRec("galice.root")
26MuonRec.SetRunTracking("")
27MuonRec.SetRunVertexFinder(kFALSE)
28MuonRec.SetRunLocalReconstruction("MUON")
29MuonRec.SetFillESD("MUON")
30MuonRec.Run()
31.q
32EOF
33
72a7d831 34echo "Running efficiency ..."
fa701981 35
36aliroot -b >& testResults.out << EOF
37.includepath $ALICE_ROOT/STEER
38.includepath $ALICE_ROOT/MUON
72a7d831 39.L $ALICE_ROOT/MUON/MUONefficiency.C++
40// no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
41MUONefficiency();
fa701981 42.q
43EOF
44
45echo "Finished"
46echo "... see results in test_out"
47
48cd $CURDIR