Adding MuonSim.SetMakeTrigger(MUON); now required by the new CTP framework (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
7430be1c 9cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
fa701981 10cd $OUTDIR
11
7430be1c 12FULLPATH="$CURDIR/$OUTDIR"
13NEVENTS=100
b7368825 14SEED=1234567
15
fa701981 16echo "Running simulation ..."
17
7430be1c 18aliroot -b >& testSim.out << EOF
f6d516e9 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");
b7368825 24gRandom->SetSeed($SEED);
7430be1c 25AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
10c8d1ce 26MuonSim.SetMakeTrigger("MUON");
7430be1c 27MuonSim.SetWriteRawData("MUON");
5c6f99c2 28MuonSim.Run($NEVENTS);
fa701981 29.q
30EOF
31
32echo "Running reconstruction ..."
33
34aliroot -b >& testReco.out << EOF
7430be1c 35gRandom->SetSeed($SEED);
5c6f99c2 36AliReconstruction MuonRec("galice.root");
7430be1c 37MuonRec.SetInput("$FULLPATH/");
5c6f99c2 38MuonRec.SetRunTracking("");
39MuonRec.SetRunVertexFinder(kFALSE);
40MuonRec.SetRunLocalReconstruction("MUON");
41MuonRec.SetFillESD("MUON");
7430be1c 42MuonRec.Run();
fa701981 43.q
44EOF
45
858e5b75 46echo "Running Trigger efficiency ..."
858e5b75 47aliroot -b >& testTriggerResults.out << EOF
5c6f99c2 48.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
858e5b75 49MUONTriggerEfficiency();
50.q
51EOF
52
72a7d831 53echo "Running efficiency ..."
fa701981 54
55aliroot -b >& testResults.out << EOF
5c6f99c2 56.L $ALICE_ROOT/MUON/MUONefficiency.C+
72a7d831 57// no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
58MUONefficiency();
fa701981 59.q
60EOF
61
7430be1c 62if [ "$NEVENTS" -le 20 ]; then
63
5c6f99c2 64echo "Running dumps ..."
65
63b722de 66aliroot -b << EOF
5c6f99c2 67.L $ALICE_ROOT/MUON/MUONCheck.C+
7430be1c 68MUONdigits(); > check.digits
69MUONrecpoints(); > check.recpoints
70MUONrectracks(); > check.rectracks
71MUONrectrigger(); > check.rectrigger
5c6f99c2 72.q
7430be1c 73EOF
858e5b75 74
7430be1c 75fi
858e5b75 76
fa701981 77echo "Finished"
78echo "... see results in test_out"
79
80cd $CURDIR