]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Script for testing alignment using physics tracks
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Jun 2006 13:45:50 +0000 (13:45 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Jun 2006 13:45:50 +0000 (13:45 +0000)
(Javier)

MUON/AlirootRun_MUONtestAlign.sh [new file with mode: 0755]

diff --git a/MUON/AlirootRun_MUONtestAlign.sh b/MUON/AlirootRun_MUONtestAlign.sh
new file mode 100755 (executable)
index 0000000..9508d54
--- /dev/null
@@ -0,0 +1,69 @@
+#!/bin/sh
+# $Id$
+#
+# By J. Castillo
+
+
+CURDIR=`pwd`
+OUTDIR=test_align
+
+rm -fr $OUTDIR
+mkdir $OUTDIR
+cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
+cd $OUTDIR
+
+FULLPATH="$CURDIR/$OUTDIR"
+NEVENTS=1000
+SEED=1234567
+
+echo "Generating misalignment ..."
+
+aliroot -b >& testMisalign.out << EOF
+gAlice->Init("$ALICE_ROOT/MUON/Config.C");
+.x $ALICE_ROOT/MUON/MUONCheckMisAligner.C(0., 0.03, 0., 0.03, 0., 0.03, "FullMisAlignCDB");
+.q
+EOF
+
+cp -r $ALICE_ROOT/MUON/Calib FullMisAlignCDB/MUON/
+
+echo "Running simulation  ..."
+
+aliroot -b  >& testSim.out << EOF 
+// Uncoment following lines to run simulation with local residual mis-alignment
+// (generated via MUONGenerateGeometryData.C macro)
+AliCDBManager* man = AliCDBManager::Instance();
+man->SetDefaultStorage("local://$ALICE_ROOT");
+man->SetSpecificStorage("MUON","local://FullMisAlignCDB");
+gRandom->SetSeed($SEED);
+AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
+MuonSim.SetMakeTrigger("MUON");
+MuonSim.SetWriteRawData("MUON");
+MuonSim.Run($NEVENTS);
+.q
+EOF
+
+echo "Running reconstruction  ..."
+
+aliroot -b >& testReco.out << EOF
+gRandom->SetSeed($SEED);
+AliReconstruction MuonRec("galice.root");
+MuonRec.SetInput("$FULLPATH/");
+MuonRec.SetRunTracking("");
+MuonRec.SetRunVertexFinder(kFALSE);
+MuonRec.SetRunLocalReconstruction("MUON");
+MuonRec.SetFillESD("MUON");
+MuonRec.Run();
+.q
+EOF
+
+echo "Running alignment ..."
+
+aliroot -b >& testAlign.out << EOF
+.x $ALICE_ROOT/MUON/MUONAlignment.C
+.q
+EOF
+
+echo "Finished"  
+echo "... see results in test_align"
+
+cd $CURDIR