]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AlirootRun_MUONtest.sh
Removing use of assert
[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"
e40c984d 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);
bd0cb923 36AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
b6675e8f 37AliTracker::SetFieldMap(field, kFALSE);
5c6f99c2 38AliReconstruction MuonRec("galice.root");
7430be1c 39MuonRec.SetInput("$FULLPATH/");
5c6f99c2 40MuonRec.SetRunTracking("");
41MuonRec.SetRunVertexFinder(kFALSE);
42MuonRec.SetRunLocalReconstruction("MUON");
43MuonRec.SetFillESD("MUON");
de2cd600 44MuonRec.SetLoadAlignData("MUON");
45// Uncoment following line to run reconstruction with the orginal tracking method
46// instead of the kalman one (default)
47// MuonRec.SetOption("MUON","Original");
7430be1c 48MuonRec.Run();
fa701981 49.q
50EOF
51
858e5b75 52echo "Running Trigger efficiency ..."
858e5b75 53aliroot -b >& testTriggerResults.out << EOF
5c6f99c2 54.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
858e5b75 55MUONTriggerEfficiency();
56.q
57EOF
58
72a7d831 59echo "Running efficiency ..."
fa701981 60
61aliroot -b >& testResults.out << EOF
5c6f99c2 62.L $ALICE_ROOT/MUON/MUONefficiency.C+
72a7d831 63// no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
64MUONefficiency();
fa701981 65.q
66EOF
67
7430be1c 68if [ "$NEVENTS" -le 20 ]; then
69
5c6f99c2 70echo "Running dumps ..."
71
63b722de 72aliroot -b << EOF
5c6f99c2 73.L $ALICE_ROOT/MUON/MUONCheck.C+
7430be1c 74MUONdigits(); > check.digits
75MUONrecpoints(); > check.recpoints
76MUONrectracks(); > check.rectracks
77MUONrectrigger(); > check.rectrigger
5c6f99c2 78.q
7430be1c 79EOF
858e5b75 80
7430be1c 81fi
858e5b75 82
fa701981 83echo "Finished"
84echo "... see results in test_out"
85
86cd $CURDIR