]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AlirootRun_MUONtest.sh
Put MUON tracking into the general framework (Christian)
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtest.sh
CommitLineData
fa701981 1#!/bin/sh
2# $Id$
3
4CURDIR=`pwd`
5OUTDIR=test_out
6
7rm -fr $OUTDIR
8mkdir $OUTDIR
7430be1c 9cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
fa701981 10cd $OUTDIR
11
7430be1c 12FULLPATH="$CURDIR/$OUTDIR"
e40c984d 13NEVENTS=100
b7368825 14SEED=1234567
15
fa701981 16echo "Running simulation ..."
17
7430be1c 18aliroot -b >& testSim.out << EOF
f6d516e9 19// Uncoment following lines to run simulation with local residual mis-alignment
20// (generated via MUONGenerateGeometryData.C macro)
21// AliCDBManager* man = AliCDBManager::Instance();
22// man->SetDefaultStorage("local://$ALICE_ROOT");
23// man->SetSpecificStorage("MUON","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
b7368825 24gRandom->SetSeed($SEED);
7430be1c 25AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
10c8d1ce 26MuonSim.SetMakeTrigger("MUON");
7430be1c 27MuonSim.SetWriteRawData("MUON");
5c6f99c2 28MuonSim.Run($NEVENTS);
fa701981 29.q
30EOF
31
7aef07e5 32echo "Removing Digits files ..."
33mkdir MUON.Digits
34mv MUON.Digits*.root MUON.Digits/
35
fa701981 36echo "Running reconstruction ..."
37
38aliroot -b >& testReco.out << EOF
7430be1c 39gRandom->SetSeed($SEED);
bd0cb923 40AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
b6675e8f 41AliTracker::SetFieldMap(field, kFALSE);
5c6f99c2 42AliReconstruction MuonRec("galice.root");
7430be1c 43MuonRec.SetInput("$FULLPATH/");
5c6f99c2 44MuonRec.SetRunVertexFinder(kFALSE);
45MuonRec.SetRunLocalReconstruction("MUON");
196471e9 46MuonRec.SetRunTracking("MUON");
5c6f99c2 47MuonRec.SetFillESD("MUON");
de2cd600 48MuonRec.SetLoadAlignData("MUON");
49// Uncoment following line to run reconstruction with the orginal tracking method
50// instead of the kalman one (default)
8dc57946 51//MuonRec.SetOption("MUON","Original");
5c31bbf9 52// Use the following to change clustering method
ee103e97 53//MuonRec.SetOption("MUON","MLEM"); // new scheme AZs clustering
5c31bbf9 54//MuonRec.SetOption("MUON","SIMPLEFIT"); // new scheme simple fitting
55//MuonRec.SetOption("MUON","COG"); // new scheme basic center-of-gravity only
ee103e97 56// Use the following to disconnect the status map creation (only for debug!)
57// as this speeds up startup a bit...
58//MuonRec.SetOption("MUON","NOSTATUSMAP");
7430be1c 59MuonRec.Run();
fa701981 60.q
61EOF
62
ee103e97 63echo "Moving Digits files back ..."
8dc57946 64mv MUON.Digits/MUON.Digits.root .
65
858e5b75 66echo "Running Trigger efficiency ..."
858e5b75 67aliroot -b >& testTriggerResults.out << EOF
5c6f99c2 68.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
21da58df 69MUONTriggerEfficiency("galice.root",1);
858e5b75 70.q
71EOF
72
72a7d831 73echo "Running efficiency ..."
fa701981 74
75aliroot -b >& testResults.out << EOF
5c6f99c2 76.L $ALICE_ROOT/MUON/MUONefficiency.C+
72a7d831 77// no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
78MUONefficiency();
fa701981 79.q
80EOF
81
8dc57946 82echo "Running check ..."
5c6f99c2 83
8dc57946 84aliroot -b >& testCheck.out << EOF
85gSystem->Load("libMUONevaluation");
5c6f99c2 86.L $ALICE_ROOT/MUON/MUONCheck.C+
8dc57946 87MUONCheck(0, 9);
5c6f99c2 88.q
7430be1c 89EOF
858e5b75 90
8dc57946 91echo "Running dumps for selected event (5) ..."
92
93aliroot -b << EOF
94AliMUONData data("galice.root");
95data.DumpKine(5); > dump.kine
96data.DumpHits(5); > dump.hits
97data.DumpDigits(5); > dump.digits
98data.DumpSDigits(5); > dump.sdigits
99data.DumpRecPoints(5); > dump.recpoints
100data.DumpRecTrigger(5); > dump.rectrigger
101.q
102EOF
858e5b75 103
fa701981 104echo "Finished"
105echo "... see results in test_out"
106
107cd $CURDIR