]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
init defaults in the body
authormkrzewic <mikolaj.krzewicki@cern.ch>
Wed, 26 Nov 2014 08:26:03 +0000 (09:26 +0100)
committermkrzewic <mikolaj.krzewicki@cern.ch>
Thu, 27 Nov 2014 15:45:23 +0000 (16:45 +0100)
this way parseConfig() becomes general and can be moved to a lib

PWGPP/QA/scripts/runQA.sh

index f83d783813fc6af4dc6988c0fa482d9be491a543..5273c3383c0b7946bcf34aa64b8481e837781c4d 100755 (executable)
@@ -8,6 +8,33 @@ if [ ${BASH_VERSINFO} -lt 4 ]; then
   exit 1
 fi
 
+##############################
+#default values:
+##############################
+#config file
+configFile=""
+#where to search for qa files
+inputList=file.list
+#working directory
+workingDirectory="${PWD}"
+#where to place the final qa plots
+#outputDirectory="/afs/cern.ch/work/a/aliqa%det/www/"
+outputDirectory="${workingDirectory}/%DET"
+#filter out detector option
+excludeDetectors="EXAMPLE"
+#logs
+logDirectory=${workingDirectory}/logs
+#OCDB storage
+ocdbStorage="raw://"
+#email to
+#MAILTO="fbellini@cern.ch"
+runMap="
+2010 108350 139517
+2011 140441 170593
+2012 171590 193766
+2013 194482 197692
+"
+
 main()
 {
   if [[ -z $1 ]]; then
@@ -540,30 +567,6 @@ parseConfig()
 {
   args=("$@")
 
-  #config file
-  configFile=""
-  #where to search for qa files
-  inputList=file.list
-  #working directory
-  workingDirectory="${PWD}"
-  #where to place the final qa plots
-  #outputDirectory="/afs/cern.ch/work/a/aliqa%det/www/"
-  outputDirectory="${workingDirectory}/%DET"
-  #filter out detector option
-  excludeDetectors="EXAMPLE"
-  #logs
-  logDirectory=${workingDirectory}/logs
-  #OCDB storage
-  ocdbStorage="raw://"
-  #email to
-  #MAILTO="fbellini@cern.ch"
-  runMap="
-  2010 108350 139517
-  2011 140441 170593
-  2012 171590 193766
-  2013 194482 197692
-  "
-
   #first, check if the config file is configured
   #is yes - source it so that other options can override it
   #if any