]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AlirootRun_MUONtestAlign.sh
Version number incremented
[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");
8962ab7c 23gGeoManager->Export("geometry.root");
24.L $ALICE_ROOT/MUON/MUONCheckMisAligner.C+
25MUONCheckMisAligner(0., 0.03, 0., 0.03, 0., 0.03, "FullMisAlignCDB");
9228b8da 26.q
27EOF
28
9228b8da 29echo "Running simulation ..."
30
31aliroot -b >& testSim.out << EOF
32// Uncoment following lines to run simulation with local residual mis-alignment
33// (generated via MUONGenerateGeometryData.C macro)
34AliCDBManager* man = AliCDBManager::Instance();
35man->SetDefaultStorage("local://$ALICE_ROOT");
ce6c70e9 36man->SetSpecificStorage("MUON/Align/Data","local://FullMisAlignCDB");
9228b8da 37gRandom->SetSeed($SEED);
38AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
39MuonSim.SetMakeTrigger("MUON");
40MuonSim.SetWriteRawData("MUON");
41MuonSim.Run($NEVENTS);
42.q
43EOF
44
45echo "Running reconstruction ..."
46
47aliroot -b >& testReco.out << EOF
48gRandom->SetSeed($SEED);
ce6c70e9 49AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
50AliTracker::SetFieldMap(field, kFALSE);
9228b8da 51AliReconstruction MuonRec("galice.root");
52MuonRec.SetInput("$FULLPATH/");
ce6c70e9 53MuonRec.SetRunTracking("MUON");
9228b8da 54MuonRec.SetRunVertexFinder(kFALSE);
55MuonRec.SetRunLocalReconstruction("MUON");
56MuonRec.SetFillESD("MUON");
e6a01e20 57MuonRec.SetLoadAlignData("MUON")
9228b8da 58MuonRec.Run();
59.q
60EOF
61
62echo "Running alignment ..."
63
64aliroot -b >& testAlign.out << EOF
8962ab7c 65.L $ALICE_ROOT/MUON/MUONAlignment.C+
66MUONAlignment();
9228b8da 67.q
68EOF
69
70echo "Finished"
71echo "... see results in test_align"
72
73cd $CURDIR