| 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_v5.34.36/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.2014.05.26
|
|---|
| 21 |
|
|---|
| 22 | # site
|
|---|
| 23 | processingsite=lp
|
|---|
| 24 | sitekey=3
|
|---|
| 25 | storagesite=wue
|
|---|
| 26 |
|
|---|
| 27 | # logging and setup
|
|---|
| 28 | logpath=/home/fact/logs.automatic.processing/autologs
|
|---|
| 29 | lockpath=/home/fact/logs.automatic.processing/locks
|
|---|
| 30 | #setuppath=/magic/simulated/setup
|
|---|
| 31 |
|
|---|
| 32 | # data paths
|
|---|
| 33 | anapath=/data1/analysis # on newdata
|
|---|
| 34 | #anapath=/newdaq/analysis_bu # temporarily to newdaq
|
|---|
| 35 | drstimepath=$anapath/drs_time_calib
|
|---|
| 36 | auxdata=/loc_data/aux
|
|---|
| 37 | auxdata_for_sed=$(printf "%s\n" "$auxdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
|---|
| 38 | rawdata=/loc_data/raw
|
|---|
| 39 | rawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
|---|
| 40 | ziprawdata=/loc_data/zipraw
|
|---|
| 41 | ziprawdata_for_sed=$(printf "%s\n" "$ziprawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
|---|
| 42 | flarealertspath="/home/fact/flare.alerts"
|
|---|
| 43 |
|
|---|
| 44 | # get paths for mars, macros and scripts
|
|---|
| 45 | # in case the variable is not yet set
|
|---|
| 46 | macrospath=$mars/datacenter/macros
|
|---|
| 47 | scriptspath=$mars/datacenter/scripts
|
|---|
| 48 | # rcfiles
|
|---|
| 49 | # dependencies of steps
|
|---|
| 50 | steps=$mars/resources/steps_fact.rc
|
|---|
| 51 | # files with db information
|
|---|
| 52 | sqlrc=$mars/sql.rc
|
|---|
| 53 | sqlpw=/home/fact/.mysql.pw
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 | #addresses to which information about full disks is sent
|
|---|
| 57 | deladrs="shift@fact-project.org"
|
|---|
| 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 | disklimitnewdata=90000000
|
|---|
| 72 | disklimitnewdata=5000000
|
|---|
| 73 | disklimitnewdata2=500000000
|
|---|
| 74 | # bandwidth limit for transfer from newdaq to daq
|
|---|
| 75 | bwlimit=90000
|
|---|
| 76 | # number of RunCallisto.sh started on daq
|
|---|
| 77 | numruncallistos=20
|
|---|
| 78 | #numruncallistos=8
|
|---|
| 79 |
|
|---|
| 80 | # setup RunCallisto.sh
|
|---|
| 81 | # number of callisto.C (else RunCallisto.sh is doing sleep) running on daq
|
|---|
| 82 | numcallistos=10
|
|---|
| 83 | #numcallistos=5
|
|---|
| 84 | # seconds waiting before checking again number of callistos
|
|---|
| 85 | callistowait=60
|
|---|
| 86 |
|
|---|
| 87 | # setup for ZipRawData.sh
|
|---|
| 88 | numprocpigz=3 # number of processes used for pigz
|
|---|
| 89 | limitpigz="90M" # transfer from daq to data
|
|---|
| 90 |
|
|---|
| 91 | # setup for FillNumEvts.sh and Step3.sh
|
|---|
| 92 | resulttable1="AnalysisResultsRunLP"
|
|---|
| 93 | resulttable2="AnalysisResultsNightLP"
|
|---|
| 94 | firstnight=20121213
|
|---|
| 95 |
|
|---|
| 96 | # setup for warning/errors
|
|---|
| 97 | # print warnings/errors (eg for missing files) only after a delay of few days to account for transfer
|
|---|
| 98 | transferdelay=3 #days
|
|---|
| 99 | checknight=`date +%Y%m%d --date="-${transferdelay}day"`
|
|---|
| 100 |
|
|---|