1 | #!/bin/sh
|
---|
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=/opt/root_v5.12.00f
|
---|
32 | if ! export | 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=lp
|
---|
41 | sitekey= # to be filled
|
---|
42 | storagesite=wue
|
---|
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 |
|
---|
51 | # logging and setup
|
---|
52 | logpath=/home/fact/datacenter/autologs
|
---|
53 | lockpath=/home/fact/datacenter/locks
|
---|
54 | #setuppath=/magic/simulated/setup
|
---|
55 |
|
---|
56 | ## paths of data
|
---|
57 | #datapath=/magic/data
|
---|
58 | #subsystempath=/magic/subsystemdata
|
---|
59 | #sequpath=/magic/sequences
|
---|
60 | #datasetpath=/magic/datasets
|
---|
61 |
|
---|
62 | ## paths and setup for mc
|
---|
63 | #mcpath=/magic/simulated
|
---|
64 | #mcrawpath=$mcpath/rawfiles
|
---|
65 | #mcsequpath=$mcpath/sequences
|
---|
66 | #corsikapath=/home/montecarlo/MagicSoft/Simulation/Corsika/Mmcs6500
|
---|
67 | #export FLUPRO=$corsikapath'/fluka2008_3'
|
---|
68 |
|
---|
69 |
|
---|
70 | #webpath=/www/htdocs/datacenter
|
---|
71 |
|
---|
72 | # get paths for mars, macros and scripts
|
---|
73 | mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
|
---|
74 | macrospath=$mars/datacenter/macros
|
---|
75 | scriptspath=$mars/datacenter/scripts
|
---|
76 | # rcfiles
|
---|
77 | # dependencies of steps
|
---|
78 | steps=$mars/resources/steps_fact.rc
|
---|
79 | # file with db information
|
---|
80 | sqlrc=$mars/sql.rc
|
---|
81 |
|
---|
82 |
|
---|
83 | #addresses to which the errors are sent
|
---|
84 | erradrs="daniela.dorner@unige.ch"
|
---|
85 | #addresses to which the changes are sent
|
---|
86 | adrs="daniela.dorner@unige.ch"
|
---|
87 |
|
---|
88 |
|
---|
89 | #
|
---|
90 | #setup for jobmanager
|
---|
91 | #
|
---|
92 | sleeptime=600 #30
|
---|
93 | sleeptimelimit=360 #360
|
---|
94 | errorsleeptimedefault=60 #60
|
---|
95 |
|
---|
96 | algorithm=2
|
---|
97 | #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
|
---|
98 | 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 )
|
---|
99 | 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 )
|
---|
100 |
|
---|
101 |
|
---|
102 | # set variables for jobmanager
|
---|
103 | #scripts=( "runcorsika" "runceres" "runcallisto_mc" "runstar_mc" )
|
---|
104 | #scriptscolname=( "Corsika" "Ceres" "Callisto" "Star" )
|
---|
105 | #ratio=( 0.2 0.6 0.1 0.1 )
|
---|
106 | #maxjobs=( 20 20 25 25 )
|
---|
107 |
|
---|
108 |
|
---|
109 | # further wishlist: adapt ratio automatically
|
---|
110 |
|
---|