Added includes to make macro compilable and corrected compiler
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtestAlign.sh
CommitLineData
9228b8da 1#!/bin/sh
2# $Id$
3#
4# By J. Castillo
5
6
7CURDIR=`pwd`
8OUTDIR=test_align
9
10rm -fr $OUTDIR
11mkdir $OUTDIR
12cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
13cd $OUTDIR
14
15FULLPATH="$CURDIR/$OUTDIR"
16NEVENTS=1000
17SEED=1234567
18
19echo "Generating misalignment ..."
20
21aliroot -b >& testMisalign.out << EOF
22gAlice->Init("$ALICE_ROOT/MUON/Config.C");
23.x $ALICE_ROOT/MUON/MUONCheckMisAligner.C(0., 0.03, 0., 0.03, 0., 0.03, "FullMisAlignCDB");
24.q
25EOF
26
9228b8da 27echo "Running simulation ..."
28
29aliroot -b >& testSim.out << EOF
30// Uncoment following lines to run simulation with local residual mis-alignment
31// (generated via MUONGenerateGeometryData.C macro)
32AliCDBManager* man = AliCDBManager::Instance();
33man->SetDefaultStorage("local://$ALICE_ROOT");
ce6c70e9 34man->SetSpecificStorage("MUON/Align/Data","local://FullMisAlignCDB");
9228b8da 35gRandom->SetSeed($SEED);
36AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
37MuonSim.SetMakeTrigger("MUON");
38MuonSim.SetWriteRawData("MUON");
39MuonSim.Run($NEVENTS);
40.q
41EOF
42
43echo "Running reconstruction ..."
44
45aliroot -b >& testReco.out << EOF
46gRandom->SetSeed($SEED);
ce6c70e9 47AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
48AliTracker::SetFieldMap(field, kFALSE);
9228b8da 49AliReconstruction MuonRec("galice.root");
50MuonRec.SetInput("$FULLPATH/");
ce6c70e9 51MuonRec.SetRunTracking("MUON");
9228b8da 52MuonRec.SetRunVertexFinder(kFALSE);
53MuonRec.SetRunLocalReconstruction("MUON");
54MuonRec.SetFillESD("MUON");
e6a01e20 55MuonRec.SetLoadAlignData("MUON")
9228b8da 56MuonRec.Run();
57.q
58EOF
59
60echo "Running alignment ..."
61
62aliroot -b >& testAlign.out << EOF
63.x $ALICE_ROOT/MUON/MUONAlignment.C
64.q
65EOF
66
67echo "Finished"
68echo "... see results in test_align"
69
70cd $CURDIR