| 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 | # it is also used for the other machines which share the home of data
|
|---|
| 8 | #
|
|---|
| 9 |
|
|---|
| 10 | # setup to use ftools
|
|---|
| 11 | export HEADAS=/opt/heasoft-6.11/x86_64-unknown-linux-gnu-libc2.13-0/
|
|---|
| 12 | export HEADASPROMPT=/dev/null
|
|---|
| 13 |
|
|---|
| 14 | # setup to use ROOT
|
|---|
| 15 | root=/opt/root_svn/bin/thisroot.sh
|
|---|
| 16 | source $root
|
|---|
| 17 |
|
|---|
| 18 | # software versions
|
|---|
| 19 | export factpath=/home/fact/operation # path where programs of FACT++ are linked
|
|---|
| 20 | #export mars=/home/fact/SW.automatic.processing/Mars.svn.2013.09.06
|
|---|
| 21 | export mars=/home/fact/SW.automatic.processing/Mars.svn.2013.10.21
|
|---|
| 22 |
|
|---|
| 23 | # site
|
|---|
| 24 | processingsite=lp
|
|---|
| 25 | sitekey=3
|
|---|
| 26 | storagesite=wue
|
|---|
| 27 |
|
|---|
| 28 | # logging and setup
|
|---|
| 29 | logpath=/home/fact/logs.automatic.processing/autologs
|
|---|
| 30 | lockpath=/home/fact/logs.automatic.processing/locks
|
|---|
| 31 | #setuppath=/magic/simulated/setup
|
|---|
| 32 | rsynctempdir=/loc_data/rsync_tmp
|
|---|
| 33 | if ! [ -d $rsynctempdir ]
|
|---|
| 34 | then
|
|---|
| 35 | mkdir $rsynctempdir
|
|---|
| 36 | fi
|
|---|
| 37 |
|
|---|
| 38 | # data paths
|
|---|
| 39 | anapath=/loc_data/analysis # on daq
|
|---|
| 40 | auxdata=/loc_data/aux
|
|---|
| 41 | auxdata_for_sed=$(printf "%s\n" "$auxdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
|---|
| 42 | rawdata=/loc_data/raw
|
|---|
| 43 | rawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
|---|
| 44 | ziprawdata=/loc_data/zipraw
|
|---|
| 45 | ziprawdata_for_sed=$(printf "%s\n" "$ziprawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
|---|
| 46 |
|
|---|
| 47 | # get paths for mars, macros and scripts
|
|---|
| 48 | # in case the variable is not yet set
|
|---|
| 49 | macrospath=$mars/datacenter/macros
|
|---|
| 50 | scriptspath=$mars/datacenter/scripts
|
|---|
| 51 | # rcfiles
|
|---|
| 52 | # dependencies of steps
|
|---|
| 53 | steps=$mars/resources/steps_fact.rc
|
|---|
| 54 | # file with db information
|
|---|
| 55 | sqlrc=$mars/sql.rc
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 | #addresses to which the errors are sent
|
|---|
| 59 | erradrs="dorner@astro.uni-wuerzburg.de"
|
|---|
| 60 | #addresses to which the changes are sent
|
|---|
| 61 | adrs="dorner@astro.uni-wuerzburg.de"
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | #
|
|---|
| 65 | # setup QLA
|
|---|
| 66 | #
|
|---|
| 67 |
|
|---|
| 68 | # setup for Step1.sh
|
|---|
| 69 | # disklimitdaq: transfer and qla don't start when less than this is available on /daq
|
|---|
| 70 | # with more than 90% disk usage the data taking is affected
|
|---|
| 71 | disklimitdaq=800000000
|
|---|
| 72 | # bandwidth limit for transfer from newdaq to daq
|
|---|
| 73 | bwlimit=90000
|
|---|
| 74 | # number of RunCallisto.sh started on daq
|
|---|
| 75 | numruncallistos=20
|
|---|
| 76 |
|
|---|
| 77 | # setup RunCallisto.sh
|
|---|
| 78 | # number of callisto.C (else RunCallisto.sh is doing sleep) running on daq
|
|---|
| 79 | numcallistos=8
|
|---|
| 80 | # seconds waiting before checking again number of callistos
|
|---|
| 81 | callistowait=60
|
|---|
| 82 |
|
|---|
| 83 | # setup for ZipRawData.sh
|
|---|
| 84 | numprocpigz=3 # number of processes used for pigz
|
|---|
| 85 | limitpigz="90M" # transfer from daq to data
|
|---|
| 86 |
|
|---|
| 87 | # setup for FillNumEvts.sh and Step3.sh
|
|---|
| 88 | resulttable1="AnalysisResultsRunLP"
|
|---|
| 89 | resulttable2="AnalysisResultsNightLP"
|
|---|
| 90 | firstnight=20121213
|
|---|