]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AlirootRun_MUONtest.sh
Moving class from base to evaluation
[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");
0d24599f 24// man->SetSpecificStorage("MUON/Align/Data","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");
7771752e 62// Use the following to write to disk the digits (from raw data)
63//MuonRec.SetOption("MUON","SAVEDIGITS");
7430be1c 64MuonRec.Run();
fa701981 65.q
66EOF
67
7771752e 68if [ ! -e MUON.Digits.root ]; then
69 echo "Moving Digits files back ..."
70 mv MUON.Digits/MUON.Digits.root .
71fi
8dc57946 72
858e5b75 73echo "Running Trigger efficiency ..."
858e5b75 74aliroot -b >& testTriggerResults.out << EOF
5c6f99c2 75.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
21da58df 76MUONTriggerEfficiency("galice.root",1);
858e5b75 77.q
78EOF
79
72a7d831 80echo "Running efficiency ..."
fa701981 81
82aliroot -b >& testResults.out << EOF
5c6f99c2 83.L $ALICE_ROOT/MUON/MUONefficiency.C+
72a7d831 84// no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
85MUONefficiency();
fa701981 86.q
87EOF
88
8dc57946 89echo "Running check ..."
5c6f99c2 90
8dc57946 91aliroot -b >& testCheck.out << EOF
92gSystem->Load("libMUONevaluation");
5c6f99c2 93.L $ALICE_ROOT/MUON/MUONCheck.C+
05ac7021 94MUONCheck(0, 9, "galice.root","AliESDs.root");
5c6f99c2 95.q
7430be1c 96EOF
858e5b75 97
8dc57946 98echo "Running dumps for selected event (5) ..."
99
04405c79 100aliroot -b << EOF
8dc57946 101AliMUONData data("galice.root");
102data.DumpKine(5); > dump.kine
103data.DumpHits(5); > dump.hits
104data.DumpDigits(5); > dump.digits
105data.DumpSDigits(5); > dump.sdigits
106data.DumpRecPoints(5); > dump.recpoints
107data.DumpRecTrigger(5); > dump.rectrigger
108.q
109EOF
858e5b75 110
fa701981 111echo "Finished"
112echo "... see results in test_out"
113
114cd $CURDIR