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 09/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=/fhgfs/groups/app/magic/software/root_v5.12.00g
|
---|
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=phido
|
---|
41 | sitekey=2
|
---|
42 | storagesite=wue
|
---|
43 |
|
---|
44 | # queuing system
|
---|
45 | queuesys=pbs # wuerzburg data center
|
---|
46 | pbspath=/cm/shared/apps/torque/2.3.7/bin
|
---|
47 | setwalltime="yes"
|
---|
48 | setpmem="yes"
|
---|
49 |
|
---|
50 |
|
---|
51 | mainpath=/fhgfs/groups/app
|
---|
52 |
|
---|
53 | # logging and setup
|
---|
54 | logpath=$mainpath/fact/datacenter/autologs
|
---|
55 | lockpath=$mainpath/fact/datacenter/locks
|
---|
56 | setuppath=$mainpath/fact/simulated/setup
|
---|
57 |
|
---|
58 | ## paths of data
|
---|
59 | #datapath=/magic/data
|
---|
60 | #subsystempath=/magic/subsystemdata
|
---|
61 | #sequpath=/magic/sequences
|
---|
62 | #datasetpath=/magic/datasets
|
---|
63 |
|
---|
64 | ## paths and setup for mc
|
---|
65 | mcpath=$mainpath/fact/simulated
|
---|
66 | mcsequpath=$mcpath/sequences
|
---|
67 | corsikapath=$mainpath/magic/software/MagicSoft/Simulation/Corsika/Mmcs6500
|
---|
68 | corsikapath=$mainpath/fact/Mmcs6500
|
---|
69 | export FLUPRO=$corsikapath'/fluka2008_3c'
|
---|
70 |
|
---|
71 |
|
---|
72 | #webpath=/www/htdocs/datacenter
|
---|
73 |
|
---|
74 | # get paths for mars, macros and scripts
|
---|
75 | if [ "$SOURCEFILEPATH" = "" ]
|
---|
76 | then
|
---|
77 | mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
|
---|
78 | else
|
---|
79 | mars=`echo $SOURCEFILEPATH | sed -e 's/\/datacenter\/scripts//'`
|
---|
80 | fi
|
---|
81 | macrospath=$mars/datacenter/macros
|
---|
82 | scriptspath=$mars/datacenter/scripts
|
---|
83 | # rcfiles
|
---|
84 | # dependencies of steps
|
---|
85 | steps=$mars/resources/steps_fact.rc
|
---|
86 | # file with db information
|
---|
87 | sqlrc=$mars/sql.rc
|
---|
88 |
|
---|
89 |
|
---|
90 | #addresses to which the errors are sent
|
---|
91 | erradrs="dorner@astro.uni-wuerzburg.de"
|
---|
92 | #addresses to which the changes are sent
|
---|
93 | adrs="dorner@astro.uni-wuerzburg.de"
|
---|
94 |
|
---|
95 |
|
---|
96 | #setup for jobmanager
|
---|
97 | sleeptime=60 #30
|
---|
98 | sleeptimelimit=360 #360
|
---|
99 | errorsleeptimedefault=60 #60
|
---|
100 | max=200 #maximum number of processes for one script in case there are more than one and the others do not have anything to do
|
---|
101 | totalmax=200 #maximum number of processes (total) overwrites pnototal(we) in case it is smaller
|
---|
102 |
|
---|
103 | #
|
---|
104 | # FIXME:
|
---|
105 | # max anz an prozessen setzen
|
---|
106 | # besser Verhaeltnis zwischen den Prozessen und das am besten noch
|
---|
107 | # automatisch anpassen
|
---|
108 | # evtl noch maximale anz an callistos setzen
|
---|
109 | #
|
---|
110 |
|
---|
111 | #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
|
---|
112 | pnototal=( 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 )
|
---|
113 | pnototalwe=( 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 )
|
---|
114 |
|
---|
115 | pnocorsika=( 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 )
|
---|
116 | pnocorsikawe=( 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 )
|
---|
117 |
|
---|
118 | # set variables for jobmanager
|
---|
119 | scripts=( "runcorsika" )
|
---|
120 | scriptscolname=( "Corsika" )
|
---|
121 | pnosweek=( ${pnocorsika[@]} )
|
---|
122 | pnoswe=( ${pnocorsikawe[@]} )
|
---|
123 |
|
---|
124 | # settings for pbs
|
---|
125 | walltimes=( "72:00:00" )
|
---|
126 | pmems=( "1gb" )
|
---|
127 |
|
---|
128 |
|
---|
129 | #
|
---|
130 | #information for copying:
|
---|
131 | #
|
---|
132 |
|
---|
133 | # steps to be copied
|
---|
134 | tocopy=( "Corsika" )
|
---|
135 |
|
---|
136 | # machine
|
---|
137 | remotemachine="dc10"
|
---|
138 | remotedir="/magic"
|
---|
139 |
|
---|