add includeDetectors option, update documentation and example
authormkrzewic <mikolaj.krzewicki@cern.ch>
Tue, 4 Mar 2014 10:59:38 +0000 (11:59 +0100)
committermkrzewic <mikolaj.krzewicki@cern.ch>
Tue, 4 Mar 2014 11:00:06 +0000 (12:00 +0100)
PWGPP/QA/detectorQAscripts/EXAMPLE.sh
PWGPP/QA/scripts/runQA.example.config
PWGPP/QA/scripts/runQA.sh

index 2e3ec4f..d3a0481 100755 (executable)
@@ -16,18 +16,18 @@ runLevelQA()
   #aliroot....
 
   #should produce a file trending.root
-  touch trending.root
+  #if not, a default one will be provided
 }
 
 periodLevelQA()
 {
   #path of the merged period trending.root is provided
   trendingFile=$1 
+
+  #merged trending file in fact present in current dir
   #runs in the production dir: ...../LHCXXx/passX/
   #the running dir contains all the run sub directories
   #named like 000123123 with the outputs of runLevelQA
 
-  
-
   #aliroot...
 }
index d4ba1e1..eda165b 100755 (executable)
@@ -1,4 +1,4 @@
-#where to search for qa files
+#location of the input list
 inputList=qaFile.list
 
 #working directory
@@ -11,6 +11,9 @@ outputDirectory="${PWD}/output/aliceqa%det"
 #filter out detector option
 excludeDetectors="EXAMPLE"
 
+#if set, will run QA only for the scecified detectors
+#includeDetectors="TPC"
+
 #logs
 logDirectory=${workingDirectory}/logs
 
index 7aa0696..45d3989 100755 (executable)
@@ -4,7 +4,8 @@ main()
   if [[ -z $1 ]]; then
     echo "Usage: "
     echo "  ${0##*/} option=value [option=value]"
-    echo "  at least one option, either inputList or configFile should be specified,"
+    echo "  at least inputList should be specified, or configFile containing it:"
+    echo "  ${0##*/} inputList=file.list"
     echo "  options override config file (if any), e.g.:"
     echo "  ${0##*/} configFile=runQA.config inputList=file.list outputDirectory=%det"
     return 1
@@ -79,6 +80,12 @@ updateQA()
       continue
     fi
 
+    #if includeDetectors set, only process thoe detectors specified there
+    if [[ -n ${includeDetectors} && ! "${includeDetectors}" =~ ${detector} ]]; then
+      echo "${detector} not included in includeDetectors, skipping..."
+      continue
+    fi
+
     logSummary=${logDirectory}/summary-${detector}-${dateString}.log
     outputDir=$(substituteDetectorName ${detector} ${outputDirectory})
     tmpDetectorRunDir=${workingDirectory}/tmpQAtmpRunDir${detector}