| 1 | #!/bin/bash
|
|---|
| 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=/swdev_nfs/root_v5.32.00
|
|---|
| 32 | if ! export | grep ROOTSYS | 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=isdc
|
|---|
| 41 | sitekey=4 # isdc
|
|---|
| 42 | storagesite=isdc
|
|---|
| 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 | queuesys=sge
|
|---|
| 51 | sgepath=/usr/bin
|
|---|
| 52 |
|
|---|
| 53 | # logging and setup
|
|---|
| 54 | logpath=~/datacenter/autologs
|
|---|
| 55 | lockpath=~/datacenter/locks
|
|---|
| 56 | #setuppath=/magic/simulated/setup
|
|---|
| 57 |
|
|---|
| 58 | ## paths of data
|
|---|
| 59 | datapath=/scratch_nfs/data
|
|---|
| 60 | #subsystempath=/magic/subsystemdata
|
|---|
| 61 | seqpath=/scratch_nfs/sequences
|
|---|
| 62 | #datasetpath=/magic/datasets
|
|---|
| 63 |
|
|---|
| 64 | ## paths and setup for mc
|
|---|
| 65 | #mcpath=/magic/simulated
|
|---|
| 66 | #mcrawpath=$mcpath/rawfiles
|
|---|
| 67 | #mcsequpath=$mcpath/sequences
|
|---|
| 68 | #corsikapath=/home/montecarlo/MagicSoft/Simulation/Corsika/Mmcs6500
|
|---|
| 69 | #export FLUPRO=$corsikapath'/fluka2008_3'
|
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 | #webpath=/www/htdocs/datacenter
|
|---|
| 73 |
|
|---|
| 74 | # get paths for mars, macros and scripts
|
|---|
| 75 | # in case the variable is not yet set
|
|---|
| 76 | if [ "$mars" == "" ]
|
|---|
| 77 | then
|
|---|
| 78 | mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
|
|---|
| 79 | fi
|
|---|
| 80 | macrospath=$mars/datacenter/macros
|
|---|
| 81 | scriptspath=$mars/datacenter/scripts
|
|---|
| 82 | scriptspath=`dirname $0`
|
|---|
| 83 |
|
|---|
| 84 | # rcfiles
|
|---|
| 85 | # dependencies of steps
|
|---|
| 86 | steps=$scriptspath/../Setup/steps_fact_isdc.rc
|
|---|
| 87 | # file with db information
|
|---|
| 88 | sqlrc=$mars/sql.rc
|
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 | #addresses to which the errors are sent
|
|---|
| 92 | erradrs="daniela.dorner@unige.ch"
|
|---|
| 93 | #addresses to which the changes are sent
|
|---|
| 94 | adrs="daniela.dorner@unige.ch"
|
|---|
| 95 |
|
|---|
| 96 |
|
|---|
| 97 | #
|
|---|
| 98 | #setup for jobmanager
|
|---|
| 99 | #
|
|---|
| 100 | sleeptime=150 #600 #30
|
|---|
| 101 | sleeptimelimit=360 #360
|
|---|
| 102 | errorsleeptimedefault=60 #60
|
|---|
| 103 |
|
|---|
| 104 | algorithm=2
|
|---|
| 105 |
|
|---|
| 106 | #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
|
|---|
| 107 | 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 )
|
|---|
| 108 | 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 )
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 | # set variables for jobmanager
|
|---|
| 112 | #scripts=( "RunCallisto.sh" "RunStar.sh" "RunMerpp.sh" )
|
|---|
| 113 | scripts=( "RunCallisto.sh" "RunStar.sh" )
|
|---|
| 114 | #scriptscolname=( "Callisto" "Star" "Merpp" )
|
|---|
| 115 | scriptscolname=( "Callisto" "Star" )
|
|---|
| 116 | #ratio=( 0.6 0.2 0.2 )
|
|---|
| 117 | ratio=( 0.6 0.4 )
|
|---|
| 118 | #maxjobs=( 20 10 20 )
|
|---|
| 119 | maxjobs=( 24 10 )
|
|---|
| 120 |
|
|---|
| 121 |
|
|---|
| 122 | # further wishlist: adapt ratio automatically
|
|---|
| 123 |
|
|---|