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