]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AlirootRun_MUONtestlong.sh
New versions of GDC and CDH raw data headers. Some CDH getters are added
[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
f6d516e9 41// Uncoment following lines to run simulation with local residual mis-alignment
42// (generated via MUONGenerateGeometryData.C macro)
43// AliCDBManager* man = AliCDBManager::Instance();
44// man->SetDefaultStorage("local://$ALICE_ROOT");
45// man->SetSpecificStorage("MUON","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
40bd99d2 46gRandom->SetSeed($SEED);
47AliCDBManager::Instance()->SetDefaultStorage("$CDB");
48AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
10c8d1ce 49MuonSim.SetMakeTrigger("MUON");
5c6f99c2 50MuonSim.Run($NEVENTS);
9bb9e42a 51.q
52EOF
53
54echo "Running reconstruction ..."
55
56aliroot -b >& testReco.out << EOF
40bd99d2 57gRandom->SetSeed($SEED);
58AliCDBManager::Instance()->SetDefaultStorage("$CDB");
5c6f99c2 59AliReconstruction MuonRec("galice.root");
60MuonRec.SetRunTracking("");
61MuonRec.SetRunVertexFinder(kFALSE);
62MuonRec.SetRunLocalReconstruction("MUON");
63MuonRec.SetFillESD("MUON");
64MuonRec.Run();
9bb9e42a 65.q
66EOF
67
858e5b75 68echo "Running Trigger efficiency ..."
69
70aliroot -b >& testTriggerResults.out << EOF
5c6f99c2 71.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
858e5b75 72MUONTriggerEfficiency();
73.q
74EOF
75
9bb9e42a 76echo "Running efficiency ..."
77
78aliroot -b >& testEfficiency.out << EOF
5c6f99c2 79.L $ALICE_ROOT/MUON/MUONefficiency.C+
71d495df 80// no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
81MUONefficiency();
9bb9e42a 82.q
83EOF
84
71d495df 85
9bb9e42a 86aliroot -b >& testResults.out << EOF
71d495df 87// no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
88.x $ALICE_ROOT/MUON/MUONplotefficiency.C
9bb9e42a 89.q
90EOF
91
92more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
93more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
94more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
95
96more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
97more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
98
99rm gphysi.dat
100rm *.root
101rm testSim.out
102rm testReco.out
103rm *.eps
104
105echo "Finished"
106echo "... see results in testlong_out"
107
108cd $CURDIR