]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGPP/QA/scripts/runQA.sh
additional protection for MC anchor parsing
[u/mrichter/AliRoot.git] / PWGPP / QA / scripts / runQA.sh
index 5ef3522baef1b4d71a06b4ab8d72c23b021efa96..70de583ac03c0386fa7de2a777fbe0c3af881268 100755 (executable)
@@ -525,7 +525,7 @@ guessRunData()
   [[ -n ${legoTrainRunNumber} ]] && pass+="_lego${legoTrainRunNumber}"
   
   #modify the OCDB: set the year
-  if [[ ${dataType} =~ sim ]]; then
+  if [[ ${dataType} =~ sim && -n ${mcProductionMap} ]]; then
     anchorYear=${mcProductionMap[${originalPeriod}]}
     ocdbStorage=$(setYear ${anchorYear} ${ocdbStorage})
   else