]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/scripts/guiEnv.sh
halloWorld.sh - print the system information
[u/mrichter/AliRoot.git] / TPC / scripts / guiEnv.sh
CommitLineData
d1513470 1#
2# setup aliroot environment
3# to be modified by users
84ddafc8 4# This is example setup which is used at GSI
5# In order to use it on your laptop
6# AliRoot, Destination directories and the AUTOFILES has to be modified
7# (Jens Wiechula, Marian Ivanov)
d1513470 8#
2f45251d 9#
10# parameters
11# 1 - debug flag
d1513470 12
13#
2f45251d 14# set your aliroot and alien environment
d1513470 15#
84ddafc8 16source $HOME/.balice
17echo YOU HAVE TO MODIFY ALIROOT SETUP
18echo IT IS ENVIRNMENT SPECIFIC
d1513470 19#
20#output directory
21#
22export GUI_OUTDIR=/lustre/alice/TPCgui
84ddafc8 23echo YOU HAVE TO MODIFY DESTINATION DIRECTORY
24echo IT IS ENVIRONMENT SPECIFIC
d1513470 25
84ddafc8 26#usually the next two can stay as they are. If you are not happy with where the output is written
d1513470 27#feel free to change them
28export GUI_OUTDIR_TIME=$GUI_OUTDIR/time
29export GUI_OUTDIR_RUNS=$GUI_OUTDIR/runs
30
31#command for batch processing
32# see also TMPLISTDIR!!!
33export BATCHCOMMAND="bsub -q alice-t3_8h"
34
35#directory for the temporary list files
36#for batch processing this dir needs to be accessable from the batch nodes!!!
37export TMPLISTDIR=$GUI_OUTDIR/guiTreeLists
38
39#path to reference tree. Consider to use one!
40#see README to understand how to create them
41export REF_DATA_FILE=$GUI_OUTDIR/ref/RefCalPads.root
42export REF_DATA_TREE=$GUI_OUTDIR/ref/RefTree.root
43
44#whether alien path is used in OCDB
45#export WITHALIEN=1
46export WITHALIEN=0
47
48#where to look for files in automatic tree creation
49#it assumes a path to an OCDB directory and uses the
50#run numbers of the file names:
51#Run([0-9]{5})_.*
52export AUTOFILES=/lustre/alice/alien/alice/data/2009/OCDB/TPC/Calib/HighVoltage
84ddafc8 53echo YOU HAVE TO MODIFY AUTOFILES DIRECTORY
54echo IT IS ENVIRONMENT SPECIFIC
d1513470 55
56#number of files per chunk in automatic tree creation
57export NFILES=25
58
2f45251d 59if [ -z $1 ]; then
60 return 0;
61fi;
62
63echo Test guiEnv setup
64
65errorCode=0;
66goodPass=0;
67testROOT=`which root`
68if [ -z testROOT ]; then
69 echo Check root setup" ":FALSE
70 let errorCode=errorCode+1
71 else
72 echo Check root setup" ":OK" "- $testROOT
73fi;
74#
75# test GUIdir
76#
77if [ -d $GUI_OUTDIR ]; then
78 echo Check GUI_OUTDIR" ":OK" "- $GUI_OUTDIR
79 else
80 echo Check GUI_OUTDIR" ":FALSE"" - $GUI_OUTDIR
81 let errorCode=errorCode+2
82fi;
83#
84#
85#
86if [ -r $GUI_OUTDIR_TIME ]; then
87 echo Check GUI_OUTDIR_TIME" ":OK" "- $GUI_OUTDIR_TIME
88 else
89 echo Check GUI_OUTDIR_TIME" ":FALSE" "- Does not exist or not readable
90 let errorCode=errorCode+4
91fi;
92
93if [ -r $GUI_OUTDIR_RUNS ]; then
94 echo Check GUI_OUTDIR_RUNS" ":OK" "- $GUI_OUTDIR_RUNS
95 else
96 echo Check GUI_OUTDIR_RUNS" ":FALSE" "- Does not exist or not readable
97 let errorCode=errorCode+8
98fi;
99
100if [ -r $GUI_OUTDIR/guiTreeLists ]; then
101 echo Check GUI_OUTDIR/guiTreeLists" ":OK" "- $GUI_OUTDIR/guiTreeLists
102 else
103 echo Check GUI_OUTDIR/guiTreeLists" ":FALSE" "- Does not exist or not readable
104 let errorCode=errorCode+16
105fi;
106
107if [ -z `which aliensh` -a WITHALIEN!=0 ]; then
108 echo Alien not properly initialized
109 let errorCode=errorCode+32
110fi;
111
112
113echo $errorCode
114return $errorCode