From 8e7a87c1298487edf9ea6d966c62c7caad5951e3 Mon Sep 17 00:00:00 2001 From: mkrzewic Date: Mon, 24 Feb 2014 22:44:17 +0100 Subject: [PATCH] make it play nice with the benchmark run number in the path is in principle enough --- PWGPP/QA/scripts/runQA.sh | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/PWGPP/QA/scripts/runQA.sh b/PWGPP/QA/scripts/runQA.sh index 1157d0aa427..20411ff0e6d 100755 --- a/PWGPP/QA/scripts/runQA.sh +++ b/PWGPP/QA/scripts/runQA.sh @@ -86,14 +86,14 @@ updateQA() logSummary=${logDirectory}/summary-${detector}-${dateString}.log outputDir=$(substituteDetectorName ${detector} ${outputDirectory}) - tmpRunDir=${workingDirectory}/tmpQAtmpRunDir${detector} - if ! mkdir -p ${tmpRunDir}; then - echo "cannot create the temp dir $tmpRunDir" + tmpDetectorRunDir=${workingDirectory}/tmpQAtmpRunDir${detector} + if ! mkdir -p ${tmpDetectorRunDir}; then + echo "cannot create the temp dir $tmpDetectorRunDir" continue fi - cd ${tmpRunDir} + cd ${tmpDetectorRunDir} - tmpPrefix=${tmpRunDir}/${outputDir} + tmpPrefix=${tmpDetectorRunDir}/${outputDir} echo echo "##############################################" echo "running QA for ${detector}" @@ -128,7 +128,7 @@ updateQA() echo running ${detector} runLevelQA for run ${runNumber} from ${qaFile} runLevelQA ${qaFile} &> runLevelQA.log - cd ${tmpRunDir} + cd ${tmpDetectorRunDir} done < ${inputList} @@ -173,12 +173,16 @@ updateQA() echo running ${detector} periodLevelQA for production ${period}/${pass} rm -f trending.root - hadd trending.root 000*/trending.root &> periodLevelQA.log - periodLevelQA trending.root &>> periodLevelQA.log + #merge trending files if any + if /bin/ls 000*/trending.root &>/dev/null; then + hadd trending.root 000*/trending.root &> periodLevelQA.log + periodLevelQA trending.root &>> periodLevelQA.log + fi + if ! validate ${PWD}; then continue; fi - cd ${tmpRunDir} + cd ${tmpDetectorRunDir} done @@ -186,8 +190,8 @@ updateQA() if [[ -z ${planB} ]]; then echo - echo removing ${tmpRunDir} - rm -rf ${tmpRunDir} + echo removing ${tmpDetectorRunDir} + rm -rf ${tmpDetectorRunDir} else executePlanB fi -- 2.43.0