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
17 echo YOU HAVE TO MODIFY ALIROOT SETUP
18 echo IT IS ENVIRNMENT SPECIFIC
22 export GUI_OUTDIR=/lustre/alice/TPCgui
23 echo YOU HAVE TO MODIFY DESTINATION DIRECTORY
24 echo IT IS ENVIRONMENT SPECIFIC
26 #usually the next two can stay as they are. If you are not happy with where the output is written
27 #feel free to change them
28 export GUI_OUTDIR_TIME=$GUI_OUTDIR/time
29 export GUI_OUTDIR_RUNS=$GUI_OUTDIR/runs
31 #command for batch processing
32 # see also TMPLISTDIR!!!
33 export BATCHCOMMAND="bsub -q alice-t3_8h"
35 #directory for the temporary list files
36 #for batch processing this dir needs to be accessable from the batch nodes!!!
37 export TMPLISTDIR=$GUI_OUTDIR/guiTreeLists
39 #path to reference tree. Consider to use one!
40 #see README to understand how to create them
41 export REF_DATA_FILE=$GUI_OUTDIR/ref/RefCalPads.root
42 export REF_DATA_TREE=$GUI_OUTDIR/ref/RefTree.root
44 #whether alien path is used in OCDB
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:
52 export AUTOFILES=/lustre/alice/alien/alice/data/2009/OCDB/TPC/Calib/HighVoltage
53 echo YOU HAVE TO MODIFY AUTOFILES DIRECTORY
54 echo IT IS ENVIRONMENT SPECIFIC
56 #number of files per chunk in automatic tree creation
63 echo Test guiEnv setup
68 if [ -z testROOT ]; then
69 echo Check root setup" ":FALSE
70 let errorCode=errorCode+1
72 echo Check root setup" ":OK" "- $testROOT
77 if [ -d $GUI_OUTDIR ]; then
78 echo Check GUI_OUTDIR" ":OK" "- $GUI_OUTDIR
80 echo Check GUI_OUTDIR" ":FALSE"" - $GUI_OUTDIR
81 let errorCode=errorCode+2
86 if [ -r $GUI_OUTDIR_TIME ]; then
87 echo Check GUI_OUTDIR_TIME" ":OK" "- $GUI_OUTDIR_TIME
89 echo Check GUI_OUTDIR_TIME" ":FALSE" "- Does not exist or not readable
90 let errorCode=errorCode+4
93 if [ -r $GUI_OUTDIR_RUNS ]; then
94 echo Check GUI_OUTDIR_RUNS" ":OK" "- $GUI_OUTDIR_RUNS
96 echo Check GUI_OUTDIR_RUNS" ":FALSE" "- Does not exist or not readable
97 let errorCode=errorCode+8
100 if [ -r $GUI_OUTDIR/guiTreeLists ]; then
101 echo Check GUI_OUTDIR/guiTreeLists" ":OK" "- $GUI_OUTDIR/guiTreeLists
103 echo Check GUI_OUTDIR/guiTreeLists" ":FALSE" "- Does not exist or not readable
104 let errorCode=errorCode+16
107 if [ -z `which aliensh` -a WITHALIEN!=0 ]; then
108 echo Alien not properly initialized
109 let errorCode=errorCode+32