]>
Commit | Line | Data |
---|---|---|
fa701981 | 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") | |
858e5b75 | 16 | MuonSim.Run(100) |
fa701981 | 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 | ||
858e5b75 | 34 | echo "Running Trigger efficiency ..." |
35 | ||
36 | aliroot -b >& testTriggerResults.out << EOF | |
37 | .includepath $ALICE_ROOT/STEER | |
38 | .includepath $ALICE_ROOT/MUON | |
39 | .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C++ | |
40 | MUONTriggerEfficiency(); | |
41 | .q | |
42 | EOF | |
43 | ||
72a7d831 | 44 | echo "Running efficiency ..." |
fa701981 | 45 | |
46 | aliroot -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 | |
51 | MUONefficiency(); | |
fa701981 | 52 | .q |
53 | EOF | |
54 | ||
858e5b75 | 55 | |
56 | ||
fa701981 | 57 | echo "Finished" |
58 | echo "... see results in test_out" | |
59 | ||
60 | cd $CURDIR |