]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AlirootRun_MUONtest.sh
Protection instead fatal in case of absent galice.root or Kinematics.root
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtest.sh
index ebb7e7a9ae5df70f964cb7f66ede351fe8c94bf8..c952561485ce695a849d18ee6b6f3c159068589f 100755 (executable)
@@ -98,7 +98,7 @@ if [ "$SIMULATION" -eq 1 ]; then
 
   echo "Running simulation  ..."
 
-  aliroot -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\"\) >& $OUTDIR/testSim.out 
+  aliroot -l -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\"\) >& $OUTDIR/testSim.out 
   
   echo "Moving generated files to $SIMDIR"
   mkdir $OUTDIR/$SIMDIR
@@ -115,13 +115,13 @@ fi
 
 if [ "$RECONSTRUCTION" -eq 1 ]; then
 
-  rm -f galice.root AliESD*.root
+  rm -f galice.root AliESD*.root *QA*.root
 
   echo "Running reconstruction  ..."
 
   cd $OUTDIR
   
-  aliroot -b -q runReconstruction\.C\($SEED,\""$OUTDIR/raw.root"\",\""$RECOPTIONS"\"\) >& $OUTDIR/testReco.out
+  aliroot -l -b -q runReconstruction\.C\($SEED,\""$OUTDIR/raw.root"\",\""$RECOPTIONS"\"\) >& $OUTDIR/testReco.out
 
 fi
 
@@ -169,7 +169,7 @@ EOF
   echo "Running dumps for selected event ($DUMPEVENT) ..."
 
   if [ -f "$OUTDIR/$SIMDIR/galice.root" ]; then
-    aliroot -b  << EOF
+    aliroot -l -b  << EOF
     AliCDBManager* man = AliCDBManager::Instance();
     man->SetDefaultStorage("local://$ALICE_ROOT");
     AliMUONMCDataInterface mcdSim("$OUTDIR/$SIMDIR/galice.root");
@@ -185,7 +185,7 @@ EOF
   fi
 
   if [ -f "$OUTDIR/galice.root" ]; then
-    aliroot -b << EOF
+    aliroot -l -b << EOF
     AliCDBManager* man = AliCDBManager::Instance();
     man->SetDefaultStorage("local://$ALICE_ROOT");
     AliMUONDataInterface dRec("$OUTDIR/galice.root");