]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AlirootRun_MUONtest.sh
No effc++ warnings in RALICE
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtest.sh
index 4bd90a2fb122ed23266d30df80b55fbbd3f0cac5..a4ff75a0557e0ce92d65105430a9988634f86dfb 100755 (executable)
@@ -13,7 +13,7 @@ SIMCONFIG="$ALICE_ROOT/MUON/Config.C" # default simulation configuration file
 OUTDIR=""
 CURDIR=`pwd`
 
-RUN=0 # run number for OCDB access
+#RUN=0 # run number for OCDB access
 SEED=1234567 # random number generator seed
 SIMDIR="generated" # sub-directory where to move simulated files prior to reco
 DUMPEVENT=5 # event to be dump on files
@@ -97,7 +97,7 @@ if [ "$SIMULATION" -eq 1 ]; then
 
   echo "Running simulation  ..."
 
-  aliroot -b -q runSimulation.C\($RUN,$SEED,$NEVENTS,\""$SIMCONFIG"\"\) >& $OUTDIR/testSim.out 
+  aliroot -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\"\) >& $OUTDIR/testSim.out 
   
   echo "Moving generated files to $SIMDIR"
   mkdir $OUTDIR/$SIMDIR
@@ -119,7 +119,7 @@ if [ "$RECONSTRUCTION" -eq 1 ]; then
 
   cd $OUTDIR
   
-  aliroot -b -q runReconstruction\.C\($RUN,$SEED,\""$OUTDIR/raw.root"\",\""$RECOPTIONS"\"\) >& $OUTDIR/testReco.out
+  aliroot -b -q runReconstruction\.C\($SEED,\""$OUTDIR/raw.root"\",\""$RECOPTIONS"\"\) >& $OUTDIR/testReco.out
 
 fi
 
@@ -131,7 +131,7 @@ fi
 
 if [ "$CHECKS" -eq 1 ]; then
 
-  if [ "$SIMULATION" -eq 1 ]; then
+  if [ -f "$OUTDIR/$SIMDIR/galice.root" ]; then
 
     echo "Running efficiency  ..."
 
@@ -142,7 +142,7 @@ if [ "$CHECKS" -eq 1 ]; then
     .q
 EOF
 
-    if [ "$RECONSTRUCTION" -eq 1 ]; then
+  if [ -f "$OUTDIR/galice.root" ]; then
 
       echo "Running Trigger efficiency  ..."
       aliroot -b >& $OUTDIR/testTriggerResults.out << EOF
@@ -151,13 +151,16 @@ EOF
       .q
 EOF
 
-      echo "Running check ..."
-      aliroot -b >& $OUTDIR/testCheck.out << EOF
-      gSystem->Load("libMUONevaluation");
-      .L $ALICE_ROOT/MUON/MUONCheck.C+
-      MUONCheck(0, $NEVENTS-1, "$OUTDIR/$SIMDIR/galice.root", "$OUTDIR/galice.root", "$OUTDIR/AliESDs.root"); 
-      .q
+      if [ -f "$OUTDIR/AliESDs.root" ]; then
+
+        echo "Running check ..."
+        aliroot -b >& $OUTDIR/testCheck.out << EOF
+        gSystem->Load("libMUONevaluation");
+        .L $ALICE_ROOT/MUON/MUONCheck.C+
+        MUONCheck(0, $NEVENTS-1, "$OUTDIR/$SIMDIR/galice.root", "$OUTDIR/galice.root", "$OUTDIR/AliESDs.root"); 
+        .q
 EOF
+      fi
     fi
   fi
 
@@ -165,6 +168,8 @@ EOF
 
   if [ -f "$OUTDIR/$SIMDIR/galice.root" ]; then
     aliroot -b  << EOF
+    AliCDBManager* man = AliCDBManager::Instance();
+    man->SetDefaultStorage("local://$ALICE_ROOT");
     AliMUONMCDataInterface mcdSim("$OUTDIR/$SIMDIR/galice.root");
     mcdSim.DumpKine($DUMPEVENT);       > $OUTDIR/dump.$DUMPEVENT.kine
     mcdSim.DumpHits($DUMPEVENT);       > $OUTDIR/dump.$DUMPEVENT.hits
@@ -179,11 +184,11 @@ EOF
 
   if [ -f "$OUTDIR/galice.root" ]; then
     aliroot -b << EOF
+    AliCDBManager* man = AliCDBManager::Instance();
+    man->SetDefaultStorage("local://$ALICE_ROOT");
     AliMUONDataInterface dRec("$OUTDIR/galice.root");
     dRec.DumpDigits($DUMPEVENT,true); > $OUTDIR/dump.$DUMPEVENT.recdigits
     dRec.DumpRecPoints($DUMPEVENT);  > $OUTDIR/dump.$DUMPEVENT.recpoints
-    dRec.DumpTracks($DUMPEVENT);     > $OUTDIR/dump.$DUMPEVENT.tracks
-    dRec.DumpTriggerTracks($DUMPEVENT); > $OUTDIR/dump.$DUMPEVENT.triggertracks
     dRec.DumpTrigger($DUMPEVENT); > $OUTDIR/dump.$DUMPEVENT.trigger
     .q
 EOF