1 | #!/bin/bash
|
---|
2 | #
|
---|
3 | # ========================================================================
|
---|
4 | #
|
---|
5 | # *
|
---|
6 | # * This file is part of MARS, the MAGIC Analysis and Reconstruction
|
---|
7 | # * Software. It is distributed to you in the hope that it can be a useful
|
---|
8 | # * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
|
---|
9 | # * It is distributed WITHOUT ANY WARRANTY.
|
---|
10 | # *
|
---|
11 | # * Permission to use, copy, modify and distribute this software and its
|
---|
12 | # * documentation for any purpose is hereby granted without fee,
|
---|
13 | # * provided that the above copyright notice appear in all copies and
|
---|
14 | # * that both that copyright notice and this permission notice appear
|
---|
15 | # * in supporting documentation. It is provided "as is" without express
|
---|
16 | # * or implied warranty.
|
---|
17 | # *
|
---|
18 | #
|
---|
19 | #
|
---|
20 | # Author(s): Daniela Dorner 06/2010 <mailto:daniela.dorner@unige.ch>
|
---|
21 | #
|
---|
22 | # Copyright: MAGIC Software Development, 2000-2010
|
---|
23 | #
|
---|
24 | #
|
---|
25 | # ========================================================================
|
---|
26 | #
|
---|
27 | # This a resource file for the scripts, in which the standard paths and
|
---|
28 | # functions, which are needed more often are stored.
|
---|
29 | #
|
---|
30 |
|
---|
31 | rootsys=/swdev_nfs/root_v5.32.00
|
---|
32 | if ! export | grep ROOTSYS | grep $rootsys >|/dev/null
|
---|
33 | then
|
---|
34 | export ROOTSYS=$rootsys
|
---|
35 | export PATH=$PATH:$ROOTSYS/bin
|
---|
36 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
|
---|
37 | fi
|
---|
38 |
|
---|
39 | # site
|
---|
40 | processingsite=isdc
|
---|
41 | sitekey=4 # isdc
|
---|
42 | storagesite=isdc
|
---|
43 |
|
---|
44 | # for db backup
|
---|
45 | dbnames=( "mysql" "programoptions" "scheduling" "systemstatus" "postfix" "horde" "logbook" "factdata" )
|
---|
46 |
|
---|
47 | # queuing system
|
---|
48 | # queuesys=condor # wuerzburg data center
|
---|
49 | # condorpath=/usr/local/bin
|
---|
50 | queuesys=sge
|
---|
51 | sgepath=/usr/bin
|
---|
52 |
|
---|
53 | # logging and setup
|
---|
54 | logpath=~/datacenter/autologs
|
---|
55 | lockpath=~/datacenter/locks
|
---|
56 | #setuppath=/magic/simulated/setup
|
---|
57 | rsynctempdir=/scratch/rsync_tmp
|
---|
58 |
|
---|
59 | ## paths of data
|
---|
60 | datapath=/scratch_nfs/data
|
---|
61 | #subsystempath=/magic/subsystemdata
|
---|
62 | seqpath=/scratch_nfs/sequences
|
---|
63 | #datasetpath=/magic/datasets
|
---|
64 |
|
---|
65 | ## paths and setup for mc
|
---|
66 | #mcpath=/magic/simulated
|
---|
67 | #mcrawpath=$mcpath/rawfiles
|
---|
68 | #mcsequpath=$mcpath/sequences
|
---|
69 | #corsikapath=/home/montecarlo/MagicSoft/Simulation/Corsika/Mmcs6500
|
---|
70 | #export FLUPRO=$corsikapath'/fluka2008_3'
|
---|
71 |
|
---|
72 |
|
---|
73 | #webpath=/www/htdocs/datacenter
|
---|
74 |
|
---|
75 | # get paths for mars, macros and scripts
|
---|
76 | # in case the variable is not yet set
|
---|
77 | if [ "$mars" == "" ]
|
---|
78 | then
|
---|
79 | mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
|
---|
80 | fi
|
---|
81 | macrospath=$mars/datacenter/macros
|
---|
82 | scriptspath=$mars/datacenter/scripts
|
---|
83 | scriptspath=`dirname $0`
|
---|
84 |
|
---|
85 | # rcfiles
|
---|
86 | # dependencies of steps
|
---|
87 | steps=$scriptspath/../Setup/steps_fact_isdc.rc
|
---|
88 | # file with db information
|
---|
89 | sqlrc=$mars/sql.rc
|
---|
90 |
|
---|
91 |
|
---|
92 | #addresses to which the errors are sent
|
---|
93 | erradrs="daniela.dorner@unige.ch"
|
---|
94 | #addresses to which the changes are sent
|
---|
95 | adrs="daniela.dorner@unige.ch"
|
---|
96 |
|
---|
97 |
|
---|
98 | #
|
---|
99 | #setup for jobmanager
|
---|
100 | #
|
---|
101 | sleeptime=150 #600 #30
|
---|
102 | sleeptimelimit=360 #360
|
---|
103 | errorsleeptimedefault=60 #60
|
---|
104 |
|
---|
105 | algorithm=2
|
---|
106 |
|
---|
107 | #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
|
---|
108 | 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 )
|
---|
109 | 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 )
|
---|
110 |
|
---|
111 |
|
---|
112 | # set variables for jobmanager
|
---|
113 | #scripts=( "RunCallisto.sh" "RunStar.sh" "RunMerpp.sh" )
|
---|
114 | scripts=( "RunCallisto.sh" "RunStar.sh" )
|
---|
115 | #scriptscolname=( "Callisto" "Star" "Merpp" )
|
---|
116 | scriptscolname=( "Callisto" "Star" )
|
---|
117 | #ratio=( 0.6 0.2 0.2 )
|
---|
118 | ratio=( 0.6 0.4 )
|
---|
119 | #maxjobs=( 20 10 20 )
|
---|
120 | maxjobs=( 24 10 )
|
---|
121 |
|
---|
122 |
|
---|
123 | # further wishlist: adapt ratio automatically
|
---|
124 |
|
---|