]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - MUON/AlirootRun_MUONtest.sh
Adding MuonSim.SetMakeTrigger(MUON); now required by the new CTP framework (Christian)
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtest.sh
... / ...
CommitLineData
1#!/bin/sh
2# $Id$
3
4CURDIR=`pwd`
5OUTDIR=test_out
6
7rm -fr $OUTDIR
8mkdir $OUTDIR
9cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
10cd $OUTDIR
11
12FULLPATH="$CURDIR/$OUTDIR"
13NEVENTS=100
14SEED=1234567
15
16echo "Running simulation ..."
17
18aliroot -b >& testSim.out << EOF
19// Uncoment following lines to run simulation with local residual mis-alignment
20// (generated via MUONGenerateGeometryData.C macro)
21// AliCDBManager* man = AliCDBManager::Instance();
22// man->SetDefaultStorage("local://$ALICE_ROOT");
23// man->SetSpecificStorage("MUON","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
24gRandom->SetSeed($SEED);
25AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
26MuonSim.SetMakeTrigger("MUON");
27MuonSim.SetWriteRawData("MUON");
28MuonSim.Run($NEVENTS);
29.q
30EOF
31
32echo "Running reconstruction ..."
33
34aliroot -b >& testReco.out << EOF
35gRandom->SetSeed($SEED);
36AliReconstruction MuonRec("galice.root");
37MuonRec.SetInput("$FULLPATH/");
38MuonRec.SetRunTracking("");
39MuonRec.SetRunVertexFinder(kFALSE);
40MuonRec.SetRunLocalReconstruction("MUON");
41MuonRec.SetFillESD("MUON");
42MuonRec.Run();
43.q
44EOF
45
46echo "Running Trigger efficiency ..."
47aliroot -b >& testTriggerResults.out << EOF
48.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
49MUONTriggerEfficiency();
50.q
51EOF
52
53echo "Running efficiency ..."
54
55aliroot -b >& testResults.out << EOF
56.L $ALICE_ROOT/MUON/MUONefficiency.C+
57// no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
58MUONefficiency();
59.q
60EOF
61
62if [ "$NEVENTS" -le 20 ]; then
63
64echo "Running dumps ..."
65
66aliroot -b << EOF
67.L $ALICE_ROOT/MUON/MUONCheck.C+
68MUONdigits(); > check.digits
69MUONrecpoints(); > check.recpoints
70MUONrectracks(); > check.rectracks
71MUONrectrigger(); > check.rectrigger
72.q
73EOF
74
75fi
76
77echo "Finished"
78echo "... see results in test_out"
79
80cd $CURDIR