Using AliTracker (external mag field) instead of gAlice->Field (Nicolas & Christian)
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtestlong.sh
CommitLineData
9bb9e42a 1#!/bin/sh
2# $Id$
3
4CURDIR=`pwd`
5OUTDIR=testlong_out
6
7rm -fr $OUTDIR
8mkdir $OUTDIR
5d150022 9cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
9bb9e42a 10cd $OUTDIR
11
40bd99d2 12FULLPATH="$CURDIR/$OUTDIR"
13# Minimum number of events to have enough stat. for invariant mass fit
14# 10000 is ok, 20000 is really fine
15NEVENTS=10000
b7368825 16SEED=1234567
17
40bd99d2 18
9bb9e42a 19echo "Running simulation ..."
20
21aliroot -b >& testSim.out << EOF
f6d516e9 22// Uncoment following lines to run simulation with local residual mis-alignment
23// (generated via MUONGenerateGeometryData.C macro)
24// AliCDBManager* man = AliCDBManager::Instance();
25// man->SetDefaultStorage("local://$ALICE_ROOT");
26// man->SetSpecificStorage("MUON","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
40bd99d2 27gRandom->SetSeed($SEED);
40bd99d2 28AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
10c8d1ce 29MuonSim.SetMakeTrigger("MUON");
5c6f99c2 30MuonSim.Run($NEVENTS);
9bb9e42a 31.q
32EOF
33
34echo "Running reconstruction ..."
35
36aliroot -b >& testReco.out << EOF
40bd99d2 37gRandom->SetSeed($SEED);
5c6f99c2 38AliReconstruction MuonRec("galice.root");
39MuonRec.SetRunTracking("");
40MuonRec.SetRunVertexFinder(kFALSE);
41MuonRec.SetRunLocalReconstruction("MUON");
42MuonRec.SetFillESD("MUON");
43MuonRec.Run();
9bb9e42a 44.q
45EOF
46
858e5b75 47echo "Running Trigger efficiency ..."
48
49aliroot -b >& testTriggerResults.out << EOF
5c6f99c2 50.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
858e5b75 51MUONTriggerEfficiency();
52.q
53EOF
54
9bb9e42a 55echo "Running efficiency ..."
56
57aliroot -b >& testEfficiency.out << EOF
5c6f99c2 58.L $ALICE_ROOT/MUON/MUONefficiency.C+
71d495df 59// no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
60MUONefficiency();
9bb9e42a 61.q
62EOF
63
71d495df 64
9bb9e42a 65aliroot -b >& testResults.out << EOF
71d495df 66// no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
67.x $ALICE_ROOT/MUON/MUONplotefficiency.C
9bb9e42a 68.q
69EOF
70
71more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
72more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
73more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
74
75more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
76more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
77
78rm gphysi.dat
79rm *.root
80rm testSim.out
81rm testReco.out
82rm *.eps
83
84echo "Finished"
85echo "... see results in testlong_out"
86
87cd $CURDIR