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