| 1 | #!/bin/bash
|
|---|
| 2 | #
|
|---|
| 3 | # This a resource file for the scripts, in which paths, variables
|
|---|
| 4 | # and setups are defined
|
|---|
| 5 | #
|
|---|
| 6 | # This setup file is for the machine data in La Palma
|
|---|
| 7 | #
|
|---|
| 8 |
|
|---|
| 9 | # setup to use ftools
|
|---|
| 10 | export HEADAS=/opt/heasoft-6.11/x86_64-unknown-linux-gnu-libc2.13-0/
|
|---|
| 11 | export HEADASPROMPT=/dev/null
|
|---|
| 12 |
|
|---|
| 13 | # setup to use ROOT
|
|---|
| 14 | rootsys=/opt/root_v5.12.00f
|
|---|
| 15 | if ! export | grep $rootsys >|/dev/null
|
|---|
| 16 | then
|
|---|
| 17 | export ROOTSYS=$rootsys
|
|---|
| 18 | export PATH=$PATH:$ROOTSYS/bin
|
|---|
| 19 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
|
|---|
| 20 | fi
|
|---|
| 21 |
|
|---|
| 22 | # software versions
|
|---|
| 23 | export factpath=/home/fact/SW.automatic.processing/FACT++.2012.01.25
|
|---|
| 24 | export mars=/home/fact/SW.automatic.processing/Mars.CheObs.svn.2012.01.25
|
|---|
| 25 |
|
|---|
| 26 | # site
|
|---|
| 27 | processingsite=lp
|
|---|
| 28 | sitekey=3
|
|---|
| 29 | storagesite=wue
|
|---|
| 30 |
|
|---|
| 31 | # logging and setup
|
|---|
| 32 | logpath=/home/fact/logs.automatic.processing/autologs
|
|---|
| 33 | lockpath=/home/fact/logs.automatic.processing/locks
|
|---|
| 34 | #setuppath=/magic/simulated/setup
|
|---|
| 35 | rsynctempdir=/loc_data/rsync_tmp
|
|---|
| 36 |
|
|---|
| 37 | # data paths
|
|---|
| 38 | auxdata=/data00/fact-construction/aux
|
|---|
| 39 | auxdata=/loc_data/aux
|
|---|
| 40 | rawdata=/data00/fact-construction/raw
|
|---|
| 41 | rawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
|---|
| 42 | ziprawdata=/loc_data/zipraw
|
|---|
| 43 | ziprawdata_for_sed=$(printf "%s\n" "$ziprawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
|---|
| 44 |
|
|---|
| 45 | # get paths for mars, macros and scripts
|
|---|
| 46 | # in case the variable is not yet set
|
|---|
| 47 | macrospath=$mars/datacenter/macros
|
|---|
| 48 | scriptspath=$mars/datacenter/scripts
|
|---|
| 49 | # rcfiles
|
|---|
| 50 | # dependencies of steps
|
|---|
| 51 | steps=$mars/resources/steps_fact.rc
|
|---|
| 52 | # file with db information
|
|---|
| 53 | sqlrc=$mars/sql.rc
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 | #addresses to which the errors are sent
|
|---|
| 57 | erradrs="daniela.dorner@unige.ch"
|
|---|
| 58 | #addresses to which the changes are sent
|
|---|
| 59 | adrs="daniela.dorner@unige.ch"
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 | #
|
|---|
| 63 | #setup for jobmanager
|
|---|
| 64 | #
|
|---|
| 65 | sleeptime=600 #30
|
|---|
| 66 | sleeptimelimit=360 #360
|
|---|
| 67 | errorsleeptimedefault=60 #60
|
|---|
| 68 |
|
|---|
| 69 | algorithm=2
|
|---|
| 70 | #hour: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
|---|
| 71 | pnototal=( 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 )
|
|---|
| 72 | pnototalwe=( 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 )
|
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 | # set variables for jobmanager
|
|---|
| 76 | #scripts=( "runcorsika" "runceres" "runcallisto_mc" "runstar_mc" )
|
|---|
| 77 | #scriptscolname=( "Corsika" "Ceres" "Callisto" "Star" )
|
|---|
| 78 | #ratio=( 0.2 0.6 0.1 0.1 )
|
|---|
| 79 | #maxjobs=( 20 20 25 25 )
|
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 | # further wishlist: adapt ratio automatically
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 | export AUTOMATIONSETUP="lp.fact"
|
|---|
| 86 | #export SOURCEFILEPATH=$mars/datacenter/scripts
|
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 | #source $SOURCEFILEPATH/sourcefile
|
|---|
| 90 |
|
|---|
| 91 | # Author(s): Daniela Dorner 05/2005 <mailto:dorner@astro.uni-wuerzburg.de>
|
|---|
| 92 | #
|
|---|
| 93 | # Copyright: MAGIC Software Development, 2000-2010
|
|---|
| 94 | #
|
|---|
| 95 | #
|
|---|
| 96 | # ========================================================================
|
|---|
| 97 | #
|
|---|
| 98 | # This a resource file for the scripts, in which the standard paths and
|
|---|
| 99 | # functions, which are needed more often are stored.
|
|---|
| 100 | # Only constant variables are stored here, changing variables are stored
|
|---|
| 101 | # in datacenter/scripts/setup
|
|---|
| 102 | #
|
|---|
| 103 |
|
|---|