]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AlirootRun_MUONtestlong.sh
LoadTransforms(): adding protection if no geometry is passed
[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
b7368825 9cp .rootrc 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 18CDBDIRECTORY="$ALICE_ROOT/MUON/CDB/Default";
19CDB="local://$CDBDIRECTORY";
20
21if [ ! -d $CDBDIRECTORY"/MUON" ]; then
22
23echo "Generating Condition Database in directory $CDBDIRECTORY. This may take a while, so please be patient..."
24
25aliroot -b >& testGenerateCalibrations.out << EOF
5c6f99c2 26.L $ALICE_ROOT/MUON/MUONCDB.C+
40bd99d2 27gRandom->SetSeed($SEED);
28generateCalibrations("$CDB",true);
29.q
30EOF
31
32else
33
34echo "Condition Database found in directory $CDBDIRECTORY. Will use it if needed."
35
36fi
37
9bb9e42a 38echo "Running simulation ..."
39
40aliroot -b >& testSim.out << EOF
40bd99d2 41gRandom->SetSeed($SEED);
42AliCDBManager::Instance()->SetDefaultStorage("$CDB");
43AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
5c6f99c2 44MuonSim.Run($NEVENTS);
9bb9e42a 45.q
46EOF
47
48echo "Running reconstruction ..."
49
50aliroot -b >& testReco.out << EOF
40bd99d2 51gRandom->SetSeed($SEED);
52AliCDBManager::Instance()->SetDefaultStorage("$CDB");
5c6f99c2 53AliReconstruction MuonRec("galice.root");
54MuonRec.SetRunTracking("");
55MuonRec.SetRunVertexFinder(kFALSE);
56MuonRec.SetRunLocalReconstruction("MUON");
57MuonRec.SetFillESD("MUON");
58MuonRec.Run();
9bb9e42a 59.q
60EOF
61
858e5b75 62echo "Running Trigger efficiency ..."
63
64aliroot -b >& testTriggerResults.out << EOF
5c6f99c2 65.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
858e5b75 66MUONTriggerEfficiency();
67.q
68EOF
69
9bb9e42a 70echo "Running efficiency ..."
71
72aliroot -b >& testEfficiency.out << EOF
5c6f99c2 73.L $ALICE_ROOT/MUON/MUONefficiency.C+
71d495df 74// no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
75MUONefficiency();
9bb9e42a 76.q
77EOF
78
71d495df 79
9bb9e42a 80aliroot -b >& testResults.out << EOF
71d495df 81// no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
82.x $ALICE_ROOT/MUON/MUONplotefficiency.C
9bb9e42a 83.q
84EOF
85
86more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
87more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
88more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
89
90more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
91more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
92
93rm gphysi.dat
94rm *.root
95rm testSim.out
96rm testReco.out
97rm *.eps
98
99echo "Finished"
100echo "... see results in testlong_out"
101
102cd $CURDIR