]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Short test script with use of calibration data
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Feb 2006 13:03:44 +0000 (13:03 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Feb 2006 13:03:44 +0000 (13:03 +0000)
(Laurent)

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

diff --git a/MUON/AlirootRun_MUONtestcb.sh b/MUON/AlirootRun_MUONtestcb.sh
new file mode 100755 (executable)
index 0000000..548cdd0
--- /dev/null
@@ -0,0 +1,79 @@
+#!/bin/sh
+# $Id$
+
+CURDIR=`pwd`
+OUTDIR=test_out
+
+rm -fr $OUTDIR
+mkdir $OUTDIR
+cp .rootrc rootlogon.C $OUTDIR
+cd $OUTDIR
+
+SEED=1234567
+
+CDBDIRECTORY="$ALICE_ROOT/MUON/CDB/Random";
+
+CDB="local://$CDBDIRECTORY";
+
+if [ ! -d $CDBDIRECTORY"/MUON" ]; then
+
+echo "Generating Condition Database in directory $CDBDIRECTORY. This may take a while, so please be patient..."
+
+aliroot -b >& testGenerateCalibrations.out << EOF
+.L ../MUONCDB.C++
+gRandom->SetSeed($SEED);
+generateCalibrations("$CDB",false);
+.q
+EOF
+
+else
+
+echo "Condition Database found in directory $CDBDIRECTORY. Will use it if needed."
+
+fi
+
+echo "Running simulation  ..."
+
+aliroot -b  >& testSim.out << EOF 
+AliCDBManager::Instance()->SetDefaultStorage("$CDB");
+AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C")
+gRandom->SetSeed($SEED);
+MuonSim.Run(100)
+.q
+EOF
+
+echo "Running reconstruction  ..."
+
+aliroot -b >& testReco.out << EOF
+AliCDBManager::Instance()->SetDefaultStorage("$CDB");
+AliReconstruction MuonRec("galice.root")
+MuonRec.SetRunTracking("")
+MuonRec.SetRunVertexFinder(kFALSE)
+MuonRec.SetRunLocalReconstruction("MUON")
+MuonRec.SetFillESD("MUON")
+gRandom->SetSeed($SEED);
+MuonRec.Run()
+.q
+EOF
+
+echo "Running Trigger efficiency  ..."
+
+aliroot -b >& testTriggerResults.out << EOF
+.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C++
+MUONTriggerEfficiency();
+.q
+EOF
+
+echo "Running efficiency  ..."
+
+aliroot -b >& testResults.out << EOF
+.L $ALICE_ROOT/MUON/MUONefficiency.C++
+// no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
+MUONefficiency();
+.q
+EOF
+
+echo "Finished"  
+echo "... see results in test_out"
+
+cd $CURDIR