]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - MUON/AlirootRun_MUONtestlong.sh
Added class to read reconstruction parameters from OCDB (Yuri)
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtestlong.sh
... / ...
CommitLineData
1#!/bin/sh
2# $Id$
3
4CURDIR=`pwd`
5OUTDIR=testlong_out
6
7rm -fr $OUTDIR
8mkdir $OUTDIR
9cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
10cd $OUTDIR
11
12RUN=0
13# Minimum number of events to have enough stat. for invariant mass fit
14# 10000 is ok, 20000 is really fine
15NEVENTS=10000
16SEED=1234567
17
18
19echo "Running simulation ..."
20
21aliroot -b >& testSim.out << EOF
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/Align/Data","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
27gRandom->SetSeed($SEED);
28AliCDBManager::Instance()->SetRun($RUN);
29AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
30MuonSim.SetMakeTrigger("MUON");
31MuonSim.Run($NEVENTS);
32.q
33EOF
34
35echo "Running reconstruction ..."
36
37aliroot -b >& testReco.out << EOF
38AliCDBManager::Instance()->SetRun($RUN);
39gRandom->SetSeed($SEED);
40AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
41AliTracker::SetFieldMap(field, kFALSE);
42AliReconstruction MuonRec("galice.root");
43MuonRec.SetRunVertexFinder(kFALSE);
44MuonRec.SetRunLocalReconstruction("MUON");
45MuonRec.SetRunTracking("MUON");
46MuonRec.SetFillESD("MUON");
47MuonRec.SetLoadAlignData("MUON");
48MuonRec.SetNumberOfEventsPerFile($NEVENTS);
49MuonRec.Run();
50.q
51EOF
52
53echo "Running Trigger efficiency ..."
54
55aliroot -b >& testTriggerResults.out << EOF
56.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
57MUONTriggerEfficiency("galice.root", "galice.root",0);
58.q
59EOF
60
61echo "Running efficiency ..."
62
63aliroot -b >& testEfficiency.out << EOF
64.L $ALICE_ROOT/MUON/MUONefficiency.C+
65// no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
66MUONefficiency("galice.root");
67.q
68EOF
69
70
71aliroot -b >& testResults.out << EOF
72// no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
73.L $ALICE_ROOT/MUON/MUONplotefficiency.C+
74MUONplotefficiency();
75.q
76EOF
77
78more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
79more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
80more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
81
82more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
83more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
84
85#rm gphysi.dat
86#rm *.root
87#rm testSim.out
88#rm testReco.out
89#rm *.eps
90
91echo "Finished"
92echo "... see results in testlong_out"
93
94cd $CURDIR