2 # setup aliroot environment
3 # to be modified by users
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)
14 # set your aliroot and alien environment
16 #source $HOME/.balice64HEAD0108
18 echo YOU HAVE TO MODIFY ALIROOT SETUP
19 echo IT IS ENVIRNMENT SPECIFIC
23 export GUI_OUTDIR=/lustre/alice/TPCgui
24 echo YOU HAVE TO MODIFY DESTINATION DIRECTORY
25 echo IT IS ENVIRONMENT SPECIFIC
27 #usually the next two can stay as they are. If you are not happy with where the output is written
28 #feel free to change them
29 export GUI_OUTDIR_TIME=$GUI_OUTDIR/time
30 export GUI_OUTDIR_RUNS=$GUI_OUTDIR/runs
32 #command for batch processing
33 # see also TMPLISTDIR!!!
34 export BATCHCOMMAND="bsub -q alice-t3_8h"
36 #directory for the temporary list files
37 #for batch processing this dir needs to be accessable from the batch nodes!!!
38 export TMPLISTDIR=$GUI_OUTDIR/guiTreeLists
40 #path to reference tree. Consider to use one!
41 #see README to understand how to create them
42 export REF_DATA_FILE=$GUI_OUTDIR/ref/RefCalPads.root
43 export REF_DATA_TREE=$GUI_OUTDIR/ref/RefTree.root
45 #whether alien path is used in OCDB
49 #where to look for files in automatic tree creation
50 #it assumes a path to an OCDB directory and uses the
51 #run numbers of the file names:
53 export AUTOFILES=/lustre/alice/alien/alice/data/2009/OCDB/TPC/Calib/HighVoltage
54 echo YOU HAVE TO MODIFY AUTOFILES DIRECTORY
55 echo IT IS ENVIRONMENT SPECIFIC
57 #number of files per chunk in automatic tree creation
62 echo Test guiEnv setup
67 if [ -z testROOT ]; then
68 echo Check root setup" ":FALSE
69 let errorCode=errorCode+1
71 echo Check root setup" ":OK" "- $testROOT
76 if [ -d $GUI_OUTDIR ]; then
77 echo Check GUI_OUTDIR" ":OK" "- $GUI_OUTDIR
79 echo Check GUI_OUTDIR" ":FALSE"" - $GUI_OUTDIR
80 let errorCode=errorCode+2
85 if [ -r $GUI_OUTDIR_TIME ]; then
86 echo Check GUI_OUTDIR_TIME" ":OK" "- $GUI_OUTDIR_TIME
88 echo Check GUI_OUTDIR_TIME" ":FALSE" "- Does not exist or not readable
89 let errorCode=errorCode+4
92 if [ -r $GUI_OUTDIR_RUNS ]; then
93 echo Check GUI_OUTDIR_RUNS" ":OK" "- $GUI_OUTDIR_RUNS
95 echo Check GUI_OUTDIR_RUNS" ":FALSE" "- Does not exist or not readable
96 let errorCode=errorCode+8
99 if [ -r $GUI_OUTDIR/guiTreeLists ]; then
100 echo Check GUI_OUTDIR/guiTreeLists" ":OK" "- $GUI_OUTDIR/guiTreeLists
102 echo Check GUI_OUTDIR/guiTreeLists" ":FALSE" "- Does not exist or not readable
103 let errorCode=errorCode+16
106 if [ -z `which aliensh` -a WITHALIEN!=0 ]; then
107 echo Alien not properly initialized
108 let errorCode=errorCode+32