From 9228b8dada36ec358e15b370d0aef0b1dd1e2777 Mon Sep 17 00:00:00 2001 From: ivana Date: Fri, 30 Jun 2006 13:45:50 +0000 Subject: [PATCH] Script for testing alignment using physics tracks (Javier) --- MUON/AlirootRun_MUONtestAlign.sh | 69 ++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100755 MUON/AlirootRun_MUONtestAlign.sh diff --git a/MUON/AlirootRun_MUONtestAlign.sh b/MUON/AlirootRun_MUONtestAlign.sh new file mode 100755 index 00000000000..9508d545b3b --- /dev/null +++ b/MUON/AlirootRun_MUONtestAlign.sh @@ -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 -- 2.43.0