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.10/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 | rsynctempdir=/loc_data/rsync_tmp
|
---|
32 | if ! [ -d $rsynctempdir ]
|
---|
33 | then
|
---|
34 | mkdir $rsynctempdir
|
---|
35 | fi
|
---|
36 |
|
---|
37 | # data paths
|
---|
38 | anapath=/loc_data/analysis # on daq
|
---|
39 | #anapath=/newdaq/analysis_bu # temporarily to newdaq
|
---|
40 | drstimepath=$anapath/drs_time_calib
|
---|
41 | auxdata=/loc_data/aux
|
---|
42 | auxdata_for_sed=$(printf "%s\n" "$auxdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
---|
43 | rawdata=/loc_data/raw
|
---|
44 | rawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
---|
45 | ziprawdata=/loc_data/zipraw
|
---|
46 | ziprawdata_for_sed=$(printf "%s\n" "$ziprawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
---|
47 |
|
---|
48 | # get paths for mars, macros and scripts
|
---|
49 | # in case the variable is not yet set
|
---|
50 | macrospath=$mars/datacenter/macros
|
---|
51 | scriptspath=$mars/datacenter/scripts
|
---|
52 | # rcfiles
|
---|
53 | # dependencies of steps
|
---|
54 | steps=$mars/resources/steps_fact.rc
|
---|
55 | # file with db information
|
---|
56 | sqlrc=$mars/sql.rc
|
---|
57 |
|
---|
58 |
|
---|
59 | #addresses to which information about full disks is sent
|
---|
60 | deladrs="shift@fact-project.org"
|
---|
61 | #addresses to which the errors are sent
|
---|
62 | erradrs="dorner@astro.uni-wuerzburg.de"
|
---|
63 | #addresses to which the changes are sent
|
---|
64 | adrs="dorner@astro.uni-wuerzburg.de"
|
---|
65 |
|
---|
66 |
|
---|
67 | #
|
---|
68 | # setup QLA
|
---|
69 | #
|
---|
70 |
|
---|
71 | # setup for Step1.sh
|
---|
72 | # disklimitdaq: transfer and qla don't start when less than this is available on /daq
|
---|
73 | # with more than 90% disk usage the data taking is affected
|
---|
74 | disklimitdaq=800000000
|
---|
75 | # bandwidth limit for transfer from newdaq to daq
|
---|
76 | bwlimit=90000
|
---|
77 | # number of RunCallisto.sh started on daq
|
---|
78 | #numruncallistos=20
|
---|
79 | numruncallistos=8
|
---|
80 |
|
---|
81 | # setup RunCallisto.sh
|
---|
82 | # number of callisto.C (else RunCallisto.sh is doing sleep) running on daq
|
---|
83 | #numcallistos=8
|
---|
84 | numcallistos=5
|
---|
85 | # seconds waiting before checking again number of callistos
|
---|
86 | callistowait=60
|
---|
87 |
|
---|
88 | # setup for ZipRawData.sh
|
---|
89 | numprocpigz=3 # number of processes used for pigz
|
---|
90 | limitpigz="90M" # transfer from daq to data
|
---|
91 |
|
---|
92 | # setup for FillNumEvts.sh and Step3.sh
|
---|
93 | resulttable1="AnalysisResultsRunLP"
|
---|
94 | resulttable2="AnalysisResultsNightLP"
|
---|
95 | firstnight=20121213
|
---|