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 | # queuing system
|
---|
40 | queuesys=condor # wuerzburg data center
|
---|
41 |
|
---|
42 | # logging and setup
|
---|
43 | logpath=/magic/datacenter/fact/autologs
|
---|
44 | lockpath=/magic/datacenter/fact/locks
|
---|
45 | setuppath=/magic/datacenter/fact/setup
|
---|
46 |
|
---|
47 | ## paths of data
|
---|
48 | #datapath=/magic/data
|
---|
49 | #subsystempath=/magic/subsystemdata
|
---|
50 | #sequpath=/magic/sequences
|
---|
51 | #datasetpath=/magic/datasets
|
---|
52 |
|
---|
53 | ## paths and setup for mc
|
---|
54 | mcpath=/magic/simulated
|
---|
55 | #mcrawpath=$mcpath/rawfiles
|
---|
56 | mcsequpath=$mcpath/sequences
|
---|
57 | corsikapath=/home/montecarlo/MagicSoft/Simulation/Corsika/Mmcs6500
|
---|
58 | export FLUPRO=$corsikapath'/fluka2008_3'
|
---|
59 |
|
---|
60 |
|
---|
61 | #webpath=/www/htdocs/datacenter
|
---|
62 |
|
---|
63 | # get paths for mars, macros and scripts
|
---|
64 | mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
|
---|
65 | macrospath=$mars/datacenter/macros
|
---|
66 | scriptspath=$mars/datacenter/scripts
|
---|
67 | # rcfiles
|
---|
68 | # dependencies of steps
|
---|
69 | steps=$mars/resources/steps_fact.rc
|
---|
70 | # file with db information
|
---|
71 | sqlrc=$mars/sql.rc
|
---|
72 |
|
---|
73 |
|
---|
74 | #addresses to which the errors are sent
|
---|
75 | erradrs="daniela.dorner@unige.ch"
|
---|
76 | #addresses to which the changes are sent
|
---|
77 | adrs="daniela.dorner@unige.ch"
|
---|
78 |
|
---|
79 |
|
---|
80 | #setup for jobmanager
|
---|
81 | sleeptime=30 #30
|
---|
82 | sleeptimelimit=360 #360
|
---|
83 | errorsleeptimedefault=60 #60
|
---|
84 | max=42 #maximum number of processes for one script in case there are more than one and the others do not have anything to do
|
---|
85 | totalmax=40 #maximum number of processes (total) overwrites pnototal(we) in case it is smaller
|
---|
86 |
|
---|
87 | #
|
---|
88 | # FIXME:
|
---|
89 | # max anz an prozessen setzen
|
---|
90 | # besser Verhaeltnis zwischen den Prozessen und das am besten noch
|
---|
91 | # automatisch anpassen
|
---|
92 | # evtl noch maximale anz an callistos setzen
|
---|
93 | #
|
---|
94 |
|
---|
95 | #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
|
---|
96 | pnototal=( 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 )
|
---|
97 | pnototalwe=( 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 )
|
---|
98 |
|
---|
99 | pnocorsika=( 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 )
|
---|
100 | pnoceres=( 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 )
|
---|
101 | pnocprun=( 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 )
|
---|
102 | pnocallisto=( 32 32 32 32 32 20 20 18 18 12 12 12 12 12 12 12 12 12 12 18 18 20 20 32 )
|
---|
103 | pnostar=( 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 )
|
---|
104 |
|
---|
105 | pnocorsikawe=( 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 )
|
---|
106 | pnocereswe=( 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 )
|
---|
107 | pnocprunwe=( 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 )
|
---|
108 | pnocallistowe=( 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 | pnostarwe=( 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 )
|
---|
110 |
|
---|
111 | # set variables for jobmanager
|
---|
112 | scripts=( "runcorsika" )
|
---|
113 | scriptscolname=( "Corsika" )
|
---|
114 | pnosweek=( ${pnocorsika[@]} )
|
---|
115 | pnoswe=( ${pnocorsikawe[@]} )
|
---|
116 |
|
---|