]>
Commit | Line | Data |
---|---|---|
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 | 16 | source $HOME/.balice |
17 | echo YOU HAVE TO MODIFY ALIROOT SETUP | |
18 | echo IT IS ENVIRNMENT SPECIFIC | |
d1513470 | 19 | # |
20 | #output directory | |
21 | # | |
22 | export GUI_OUTDIR=/lustre/alice/TPCgui | |
84ddafc8 | 23 | echo YOU HAVE TO MODIFY DESTINATION DIRECTORY |
24 | echo 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 |
28 | export GUI_OUTDIR_TIME=$GUI_OUTDIR/time | |
29 | export GUI_OUTDIR_RUNS=$GUI_OUTDIR/runs | |
30 | ||
31 | #command for batch processing | |
32 | # see also TMPLISTDIR!!! | |
33 | export 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!!! | |
37 | export TMPLISTDIR=$GUI_OUTDIR/guiTreeLists | |
38 | ||
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 | |
43 | ||
44 | #whether alien path is used in OCDB | |
45 | #export WITHALIEN=1 | |
46 | export 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})_.* | |
52 | export AUTOFILES=/lustre/alice/alien/alice/data/2009/OCDB/TPC/Calib/HighVoltage | |
84ddafc8 | 53 | echo YOU HAVE TO MODIFY AUTOFILES DIRECTORY |
54 | echo IT IS ENVIRONMENT SPECIFIC | |
d1513470 | 55 | |
56 | #number of files per chunk in automatic tree creation | |
57 | export NFILES=25 | |
58 | ||
2f45251d | 59 | if [ -z $1 ]; then |
60 | return 0; | |
61 | fi; | |
62 | ||
63 | echo Test guiEnv setup | |
64 | ||
65 | errorCode=0; | |
66 | goodPass=0; | |
67 | testROOT=`which root` | |
68 | if [ -z testROOT ]; then | |
69 | echo Check root setup" ":FALSE | |
70 | let errorCode=errorCode+1 | |
71 | else | |
72 | echo Check root setup" ":OK" "- $testROOT | |
73 | fi; | |
74 | # | |
75 | # test GUIdir | |
76 | # | |
77 | if [ -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 | |
82 | fi; | |
83 | # | |
84 | # | |
85 | # | |
86 | if [ -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 | |
91 | fi; | |
92 | ||
93 | if [ -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 | |
98 | fi; | |
99 | ||
100 | if [ -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 | |
105 | fi; | |
106 | ||
107 | if [ -z `which aliensh` -a WITHALIEN!=0 ]; then | |
108 | echo Alien not properly initialized | |
109 | let errorCode=errorCode+32 | |
110 | fi; | |
111 | ||
112 | ||
113 | echo $errorCode | |
114 | return $errorCode |