Remove the dollar-id-dollar in the responsible name which interfere with CDB_MD metad...
[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
12# Minimum number of events to have enough stat. for invariant mass fit
13# 10000 is ok, 20000 is really fine
14NEVENTS=10000
15SEED=1234567
16
17
18echo "Running simulation ..."
19
20aliroot -b >& testSim.out << EOF
21// Uncoment following lines to run simulation with local residual mis-alignment
22// (generated via MUONGenerateGeometryData.C macro)
23// AliCDBManager* man = AliCDBManager::Instance();
24// man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
25// man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/OCDB/MUON/ResMisAlignCDB");
26AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
27MuonSim.SetSeed($SEED);
28MuonSim.SetMakeTrigger("MUON");
29MuonSim.Run($NEVENTS);
30.q
31EOF
32
33echo "Running reconstruction ..."
34
35aliroot -b >& testReco.out << EOF
36man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
37gRandom->SetSeed($SEED);
38AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
39AliTracker::SetFieldMap(field, kFALSE);
40AliReconstruction MuonRec("galice.root");
41MuonRec.SetRunVertexFinder(kFALSE);
42MuonRec.SetRunLocalReconstruction("MUON");
43MuonRec.SetRunTracking("MUON");
44MuonRec.SetFillESD("MUON");
45MuonRec.SetLoadAlignData("MUON");
46MuonRec.SetNumberOfEventsPerFile($NEVENTS);
47MuonRec.Run();
48.q
49EOF
50
51echo "Running Trigger efficiency ..."
52
53aliroot -b >& testTriggerResults.out << EOF
54.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
55MUONTriggerEfficiency("galice.root", "galice.root",0);
56.q
57EOF
58
59echo "Running efficiency ..."
60
61aliroot -b >& testEfficiency.out << EOF
62.L $ALICE_ROOT/MUON/MUONefficiency.C+
63// no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
64MUONefficiency("galice.root");
65.q
66EOF
67
68
69aliroot -b >& testResults.out << EOF
70// no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
71.L $ALICE_ROOT/MUON/MUONplotefficiency.C+
72MUONplotefficiency();
73.q
74EOF
75
76more testSim.out | grep 'RunSimulation: Execution time:' > testTime.out
77more testSim.out | grep 'RunSDigitization: Execution time:' >> testTime.out
78more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out
79
80more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out
81more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out
82
83#rm gphysi.dat
84#rm *.root
85#rm testSim.out
86#rm testReco.out
87#rm *.eps
88
89echo "Finished"
90echo "... see results in testlong_out"
91
92cd $CURDIR