source: trunk/Mars/datacenter/scripts/setup.isdc.cta@ 10012

Last change on this file since 10012 was 9492, checked in by Daniela Dorner, 15 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 5.1 KB
Line 
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 08/2009 <mailto:daniela.dorner@unige.ch>
21#
22# Copyright: MAGIC Software Development, 2000-2009
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
31if [ "$rootsys" = "" ]
32then
33 rootsys=/opt/root5.20.x86_64
34fi
35if ! export | grep ROOTSYS | grep $rootsys >|/dev/null
36then
37 export ROOTSYS=$rootsys
38 export PATH=$PATH:$ROOTSYS/bin
39 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib/root
40fi
41
42# queuing system
43queuesys=sge #isdc
44
45# logging and setup
46logpath=/home/dorner/automation/autologs
47lockpath=/home/dorner/automation/locks
48setuppath=/home/dorner/automation/setup
49
50## paths of data
51#datapath=/magic/data
52#subsystempath=/magic/subsystemdata
53#sequpath=/magic/sequences
54#datasetpath=/magic/datasets
55
56# paths and setup for mc
57mcpath=/state/cta
58#mcrawpath=$mcpath/rawfiles
59#mcsequpath=$mcpath/sequences
60#corsikapath=/home/operator/Corsika/Mmcs6500/
61#detectordir=/home/msmeyer/MC/MagicSoft/Simulation/Detector
62#reflectorversion="reflector 0.7"
63#cameraversion="camera 0.8"
64#export FLUPRO=$corsikapath'/fluka2008_3'
65
66
67#webpath=/www/htdocs/datacenter
68
69
70# get paths for mars, macros and scripts
71mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
72macrospath=$mars/datacenter/macros
73scriptspath=$mars/datacenter/scripts
74# rcfiles
75# dependencies of steps
76steps=$mars/resources/steps_cta_new.rc
77# file with db information
78sqlrc=$mars/sql.rc
79
80
81#addresses to which the errors are sent
82erradrs="daniela.dorner@unige.ch"
83#addresses to which the changes are sent
84adrs="daniela.dorner@unige.ch"
85
86
87#setup for jobmanager
88sleeptime=30 #30
89sleeptimelimit=360 #360
90errorsleeptimedefault=60 #60
91max=50 #maximum number of processes for one script in case there are more than one and the others do not have anything to do
92totalmax=1600 #maximum number of processes (total) overwrites pnototal(we) in case it is smaller
93
94
95#
96# FIXME:
97# max anz an prozessen setzen
98# besser Verhaeltnis zwischen den Prozessen und das am besten noch
99# automatisch anpassen
100# evtl noch maximale anz an callistos setzen
101#
102
103#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
104pnototal=( 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 )
105pnototalwe=( 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 )
106
107pnosimtel=( 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 )
108pnosimtelwe=( 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 )
109
110# restricted to nodes => numbers per node
111pnochimp=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
112pnochimpwe=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
113pnoctastar=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
114pnoctastarwe=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
115pnostereob=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
116pnostereobwe=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
117pnostereoc=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
118pnostereocwe=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
119pnostereog=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
120pnostereogwe=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
121
122# set variables for jobmanager
123#scripts=( "runsimtel" "runchimp" "runctastar" "runstereo 2" "runstereo 3" "runstereo 7" )
124#scriptscolname=( "fCorsikaSimTelarray" "fChimp" "fCTAStar" "fStereoB" "fStereoC" "fStereoG" )
125#pnosweek=( ${pnosimtel[@]} ${pnochimp[@]} ${pnoctastar[@]} ${pnostereob[@]} ${pnostereoc[@]} ${pnostereog[@]} )
126#pnoswe=( ${pnosimtelwe[@]} ${pnochimpwe[@]} ${pnoctastarwe[@]} ${pnostereobwe[@]} ${pnostereocwe[@]} ${pnostereogwe[@]} )
127scripts=( "runsimtel" "runchimp" "runctastar" )
128scriptscolname=( "fCorsikaSimTelarray" "fChimp" "fCTAStar" )
129pnosweek=( ${pnosimtel[@]} ${pnochimp[@]} ${pnoctastar[@]} )
130pnoswe=( ${pnosimtelwe[@]} ${pnochimpwe[@]} ${pnoctastarwe[@]} )
131
132# number of script that are limited to a certain node
133#numrestrictedscripts=5
134numrestrictedscripts=2
135
136# set up for nodes
137# for processes that can run only on certain node
138# db: fProductionHostKEY
139minnode=0
140maxnode=26
141excludednodes=( 7 14 23 )
Note: See TracBrowser for help on using the repository browser.