source: trunk/Mars/datacenter/scripts/setup.wue.magic.mc@ 12929

Last change on this file since 12929 was 9604, checked in by Daniela Dorner, 14 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 4.0 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:dorner@astro.uni-wuerzburg.de>
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
31rootsys=/opt/root_v5.12.00f
32if ! export | grep $rootsys >|/dev/null
33then
34 export ROOTSYS=$rootsys
35 export PATH=$PATH:$ROOTSYS/bin
36 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
37fi
38
39# queuing system
40queuesys=condor # wuerzburg data center
41condorpath=/usr/local/bin
42
43# logging and setup
44logpath=/magic/datacenter/autologs
45lockpath=/magic/datacenter/locks
46setuppath=/magic/datacenter/setup
47
48## paths of data
49#datapath=/magic/data
50#subsystempath=/magic/subsystemdata
51#sequpath=/magic/sequences
52#datasetpath=/magic/datasets
53
54# paths and setup for mc
55mcpath=/magic/montecarlo
56mcrawpath=$mcpath/rawfiles
57mcsequpath=$mcpath/sequences
58corsikapath=/home/operator/Corsika/Mmcs6500/
59detectordir=/home/msmeyer/MC/MagicSoft/Simulation/Detector
60reflectorversion="reflector 0.7"
61cameraversion="camera 0.8"
62export FLUPRO=$corsikapath'/fluka2008_3'
63
64
65#webpath=/www/htdocs/datacenter
66
67
68# get paths for mars, macros and scripts
69mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
70macrospath=$mars/datacenter/macros
71scriptspath=$mars/datacenter/scripts
72# rcfiles
73# dependencies of steps
74steps=$mars/resources/steps.rc
75# file with db information
76sqlrc=$mars/sql.rc
77
78
79#addresses to which the errors are sent
80erradrs="datacenter@astro.uni-wuerzburg.de"
81#addresses to which the changes are sent
82adrs="datacenter@astro.uni-wuerzburg.de, tbretz@astro.uni-wuerzburg.de"
83
84
85#setup for jobmanager
86sleeptime=30 #30
87sleeptimelimit=360 #360
88errorsleeptimedefault=60 #60
89max=42 #maximum number of processes for one script in case there are more than one and the others do not have anything to do
90totalmax=40 #maximum number of processes (total) overwrites pnototal(we) in case it is smaller
91
92#
93# FIXME:
94# max anz an prozessen setzen
95# besser Verhaeltnis zwischen den Prozessen und das am besten noch
96# automatisch anpassen
97# evtl noch maximale anz an callistos setzen
98#
99
100#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
101pnototal=( 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 )
102pnototalwe=( 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 )
103
104pnocorsika=( 12 12 12 12 12 12 12 10 9 8 7 7 7 7 7 7 7 7 7 8 9 10 12 12 )
105pnoreflector=( 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 )
106pnocamera=( 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 )
107
108pnocorsikawe=( 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 )
109pnoreflectorwe=( 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 )
110pnocamerawe=( 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 )
111
112# set variables for jobmanager
113scripts=( "runcorsika" "runreflector" "runcamera" )
114scriptscolname=( "fCorsikaFileAvail" "fReflectorFileAvail" "fCameraFileAvail" )
115pnosweek=( ${pnocorsika[@]} ${pnoreflector[@]} ${pnocamera[@]} )
116pnoswe=( ${pnocorsikawe[@]} ${pnoreflectorwe[@]} ${pnocamerawe[@]} )
117
Note: See TracBrowser for help on using the repository browser.