]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AlirootRun_MUONtestlong.sh
Adding utility class to check MCH HV (in particular trips) more closely
[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 12# Minimum number of events to have enough stat. for invariant mass fit
13# 10000 is ok, 20000 is really fine
bcb6fe52 14NEVENTS=10000
b7368825 15SEED=1234567
16
40bd99d2 17
9bb9e42a 18echo "Running simulation ..."
19
20aliroot -b >& testSim.out << EOF
f6d516e9 21// Uncoment following lines to run simulation with local residual mis-alignment
22// (generated via MUONGenerateGeometryData.C macro)
23// AliCDBManager* man = AliCDBManager::Instance();
162637e4 24// man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
25// man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/OCDB/MUON/ResMisAlignCDB");
40bd99d2 26AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
a8724132 27MuonSim.SetSeed($SEED);
10c8d1ce 28MuonSim.SetMakeTrigger("MUON");
5c6f99c2 29MuonSim.Run($NEVENTS);
9bb9e42a 30.q
31EOF
32
33echo "Running reconstruction ..."
34
35aliroot -b >& testReco.out << EOF
162637e4 36man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
40bd99d2 37gRandom->SetSeed($SEED);
b97b210c 38AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
b6675e8f 39AliTracker::SetFieldMap(field, kFALSE);
5c6f99c2 40AliReconstruction MuonRec("galice.root");
5c6f99c2 41MuonRec.SetRunVertexFinder(kFALSE);
42MuonRec.SetRunLocalReconstruction("MUON");
bcb6fe52 43MuonRec.SetRunTracking("MUON");
5c6f99c2 44MuonRec.SetFillESD("MUON");
bcb6fe52 45MuonRec.SetLoadAlignData("MUON");
46MuonRec.SetNumberOfEventsPerFile($NEVENTS);
5c6f99c2 47MuonRec.Run();
9bb9e42a 48.q
49EOF
50
858e5b75 51echo "Running Trigger efficiency ..."
52
53aliroot -b >& testTriggerResults.out << EOF
5c6f99c2 54.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
bcb6fe52 55MUONTriggerEfficiency("galice.root", "galice.root",0);
858e5b75 56.q
57EOF
58
9bb9e42a 59echo "Running efficiency ..."
60
61aliroot -b >& testEfficiency.out << EOF
5c6f99c2 62.L $ALICE_ROOT/MUON/MUONefficiency.C+
71d495df 63// no argument assumes Upsilon but MUONefficiency(443) handles Jpsi
bcb6fe52 64MUONefficiency("galice.root");
9bb9e42a 65.q
66EOF
67
71d495df 68
9bb9e42a 69aliroot -b >& testResults.out << EOF
71d495df 70// no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi
bcb6fe52 71.L $ALICE_ROOT/MUON/MUONplotefficiency.C+
72MUONplotefficiency();
9bb9e42a 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
b6675e8f 83#rm gphysi.dat
84#rm *.root
85#rm testSim.out
86#rm testReco.out
87#rm *.eps
9bb9e42a 88
89echo "Finished"
90echo "... see results in testlong_out"
91
92cd $CURDIR