]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AlirootRun_MUONtest.sh
Add option to set scaler trigger event on, for raw data (Christian)
[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")
858e5b75 16MuonSim.Run(100)
fa701981 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
858e5b75 34echo "Running Trigger efficiency ..."
35
36aliroot -b >& testTriggerResults.out << EOF
37.includepath $ALICE_ROOT/STEER
38.includepath $ALICE_ROOT/MUON
39.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C++
40MUONTriggerEfficiency();
41.q
42EOF
43
72a7d831 44echo "Running efficiency ..."
fa701981 45
46aliroot -b >& testResults.out << EOF
47.includepath $ALICE_ROOT/STEER
48.includepath $ALICE_ROOT/MUON
72a7d831 49.L $ALICE_ROOT/MUON/MUONefficiency.C++
50// no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
51MUONefficiency();
fa701981 52.q
53EOF
54
858e5b75 55
56
fa701981 57echo "Finished"
58echo "... see results in test_out"
59
60cd $CURDIR