]>
Commit | Line | Data |
---|---|---|
676fb573 | 1 | # $Id$ |
2 | # ---------------------------------------------------------------- | |
3 | # This script sets the default environment variables for | |
4 | # Alice Geant4 based prototype | |
5 | # Options: -g verbose mode | |
6 | # local recomended local configuration | |
7 | # | |
8 | # csh version by I.Gonzalez 18.2.2000 | |
9 | ||
10 | ||
11 | ||
12 | # | |
13 | # ================================================================== | |
14 | # Alice configuration options: Please define your selection with the | |
15 | # variables below. | |
16 | # ================================================================== | |
17 | # | |
18 | ||
19 | # | |
20 | # ====== AG4_VERSION | |
21 | # Geant4 version | |
22 | # If set: the provided Geant4 version and not the default one is set | |
b1e58fea | 23 | #setenv AG4_VERSION 2.0_test |
676fb573 | 24 | |
25 | # | |
26 | # ====== AG4_VISUALIZE | |
27 | # Set/Unset to get/avoid Geant4 visualisation. | |
28 | setenv AG4_VISUALIZE 1 | |
29 | #unsetenv AG4_VISUALIZE | |
30 | ||
31 | # | |
32 | # ====== AG4_OPACS | |
33 | # Set/Unset to get OPACS as a Geant4 visualisation driver. | |
34 | #setenv AG4_OPACS 1 | |
35 | unsetenv AG4_OPACS | |
36 | ||
676fb573 | 37 | # |
38 | # ====== AG4_MAKESHLIB | |
39 | # If set: shared libraris are created | |
40 | setenv AG4_MAKESHLIB 1 | |
41 | #unsetenv AG4_MAKESHLIB | |
42 | ||
676fb573 | 43 | |
44 | # | |
45 | # Resolve input parameters | |
46 | # | |
47 | set VERBOSE = "NO" | |
48 | set LOCAL = "NO" | |
49 | foreach param ( $* ) | |
50 | switch ( $param ) | |
51 | case -g: | |
52 | set VERBOSE="YES"; shift; breaksw; | |
53 | case local: | |
54 | set LOCAL="YES"; shift; breaksw; | |
55 | endsw | |
56 | end | |
57 | ||
58 | # | |
59 | # ================================================================== | |
60 | # Key path variables | |
61 | # ================================================================== | |
62 | # | |
63 | ||
64 | if ( "$LOCAL" == "NO" ) then | |
65 | # | |
66 | # AFS | |
67 | # | |
68 | ||
69 | # ====== ALICE_BASE | |
70 | # ALICE base directory | |
71 | set ALICE_BASE = /afs/cern.ch/alice/offline | |
72 | ||
73 | # ====== G4_BASE | |
74 | # Geant4 base directory | |
75 | set G4_BASE = ${ALICE_BASE}/geant4 | |
76 | ||
77 | # ====== LHCXX_BASE | |
78 | # LHC++ base directory | |
79 | set LHCXX_BASE = /afs/cern.ch/sw/lhcxx/specific/@sys | |
80 | ||
81 | # ====== ROOT_BASE | |
82 | # Root base directory | |
83 | set ROOT_BASE = /afs/cern.ch/alice/library/root | |
84 | # to be removed after aCC support will be defined | |
85 | # in the offline in a standard way | |
86 | if ( "`uname`" == "HP-UX" ) then | |
87 | set ROOT_BASE = /afs/cern.ch/alice/library/.hp_ux102/root.2.23.aCC | |
88 | endif | |
89 | ||
90 | # ====== IRST_BASE | |
91 | # IRST code check tool base directory | |
92 | setenv IRST_BASE /afs/cern.ch/alice/offline/geant4/tools/IRST | |
93 | ||
676fb573 | 94 | else |
95 | # | |
96 | # recommended local installation | |
97 | # | |
98 | ||
99 | # ====== ALICE_BASE | |
100 | # ALICE base directory | |
101 | set ALICE_BASE = $HOME/dev | |
102 | ||
103 | # ====== G4_BASE | |
104 | # Geant4 base directory | |
105 | set G4_BASE = $HOME/dev | |
106 | ||
107 | # ====== LHCXX_BASE | |
108 | # LHC++ base directory | |
109 | set LHCXX_BASE = $HOME/dev | |
110 | ||
111 | # ====== ROOT_BASE | |
112 | # Root base directory | |
113 | set ROOT_BASE = $HOME/dev/root | |
114 | ||
115 | # ====== IRST_BASE | |
116 | # IRST code check tool base directory | |
117 | setenv IRST_BASE $HOME/dev/tools/IRST | |
118 | ||
119 | endif | |
120 | ||
121 | ||
122 | #....................................... SKIP ................................ | |
123 | # | |
124 | # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
125 | # You should not need to change | |
126 | # the lines below this one | |
127 | # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
128 | ||
129 | # ====== AG4_INSTALL | |
130 | # Alice Geant4 install directory | |
131 | # | |
132 | setenv AG4_INSTALL $ALICE_ROOT/AliGeant4 | |
1a6734b1 | 133 | setenv G3G4_NOREFLECTION 1 |
676fb573 | 134 | |
135 | # Set variables depending on other variables | |
136 | # if opacs is selected then select also visualize | |
137 | if ( "$?AG4_OPACS" == 1 ) then | |
138 | setenv AG4_VISUALIZE 1 | |
139 | endif | |
140 | ||
141 | # Start the output | |
142 | if ( "$VERBOSE" == "YES" ) then | |
143 | echo " " | |
144 | echo " ==========================================" | |
145 | echo " ALICE Geant4 environment configuration" | |
146 | echo " ==========================================" | |
147 | ||
148 | # | |
149 | # Some output on the selections... | |
150 | # | |
151 | ||
152 | if ("$?AG4_VISUALIZE" == 1) then | |
153 | echo "Geant4 visualisation is selected." | |
154 | else | |
155 | echo "Geant4 visualisation is NOT selected." | |
156 | endif | |
157 | if ("$?AG4_OPACS" == 1) then | |
158 | echo "OPACS driver is selected." | |
159 | else | |
160 | echo "OPACS driver is NOT selected." | |
161 | endif | |
676fb573 | 162 | if ("$?AG4_NOPHYSICS" == 1) then |
163 | echo "Only geantino or charged geantino can be shooted." | |
164 | else | |
165 | echo "Full physics has been selected." | |
166 | endif | |
167 | if ("$?AG4_ODBMS" == 1) then | |
168 | echo "The environment for using Objectivity will be set." | |
169 | else | |
170 | echo "No Geant4 Persistency." | |
171 | endif | |
172 | ||
173 | endif | |
174 | ||
175 | # | |
176 | # ROOT Alice definitions & options | |
177 | # ================================== | |
178 | # | |
179 | if ( "$?ROOTSYS" == 0 ) then | |
180 | setenv ROOTSYS ${ROOT_BASE} | |
181 | endif | |
182 | if ( "$VERBOSE" == "YES" ) then | |
183 | echo " " | |
184 | echo "ROOT" | |
185 | echo "====" | |
186 | echo ROOTSYS set to $ROOTSYS | |
187 | endif | |
188 | ||
676fb573 | 189 | # |
190 | # Geant4 | |
191 | # ================================== | |
192 | # | |
193 | if ( "$VERBOSE" == "YES" ) then | |
194 | echo " " | |
195 | echo "Geant4 env. variables..." | |
196 | echo "============================" | |
197 | endif | |
198 | if ("$?AG4_VERSION" == 0) then | |
199 | setenv G4INSTALL ${G4_BASE}/geant4 | |
200 | else | |
201 | setenv G4INSTALL ${G4_BASE}/g4dev/geant4.${AG4_VERSION} | |
202 | endif | |
203 | ||
204 | if ("$?AG4_MAKESHLIB" == 0) then | |
9ef85db1 | 205 | unsetenv G4LIB_BUILD_SHARED |
206 | else | |
207 | setenv G4LIB_BUILD_SHARED 1 | |
676fb573 | 208 | endif |
209 | ||
210 | # path to data files needed by hadronic processes | |
211 | setenv G4LEVELGAMMADATA ${G4INSTALL}/data/PhotonEvaporation | |
212 | ||
213 | # This is architecture dependent... | |
214 | set SYSTEM = `uname` | |
215 | if ( $SYSTEM == "HP-UX" ) then | |
216 | setenv G4SYSTEM "HP-aCC" | |
b1e58fea | 217 | #setenv G4USE_OSPACE 1 # compiling with Object Space STL |
676fb573 | 218 | endif |
219 | if ( $SYSTEM == "Linux" ) then | |
220 | setenv G4SYSTEM "Linux-g++" | |
221 | endif | |
b1e58fea | 222 | if ( $SYSTEM == "OSF1" ) then |
223 | setenv G4SYSTEM "DEC-cxx" | |
224 | #setenv G4NO_STD_NAMESPACE 1 # compiling witn non ISO/ANSI setup | |
225 | endif | |
226 | if ( $SYSTEM == "SunOS" ) then | |
227 | setenv G4SYSTEM "SUN-CC" | |
228 | setenv G4USE_OSPACE 1 # compiling with Object Space STL | |
229 | endif | |
676fb573 | 230 | if ( "$VERBOSE" == "YES" ) then |
231 | echo "Architecture is $SYSTEM" | |
232 | echo "Geant4 is istalled in $G4INSTALL" | |
233 | echo "Geant4 architecture type is $G4SYSTEM" | |
234 | if ( "$?G4USE_OSPACE" == 1 ) then | |
235 | echo "ObjectSpace will be used for STL" | |
236 | endif | |
237 | endif | |
238 | ||
239 | ||
240 | # | |
241 | # CLHEP | |
242 | # ================================== | |
243 | # | |
244 | ||
3ba15f83 | 245 | if ( -d $LHCXX_BASE/CLHEP/1.7.0.0 ) then |
246 | setenv CLHEP_BASE_DIR $LHCXX_BASE/CLHEP/1.7.0.0 | |
676fb573 | 247 | else |
248 | echo "WARNING: CLHEP has not been found in the default path." | |
249 | if ( "$VERBOSE" == "YES" ) then | |
250 | echo " Please set the variable CLHEP_BASE_DIR to its base path" | |
251 | echo " Example: setenv CLHEP_BASE_DIR /afs/cern.ch/sw/lhcxx/specific/@sys/CLHEP/pro" | |
252 | endif | |
253 | endif | |
254 | if ( "$VERBOSE" == "YES" ) then | |
255 | echo "CLHEP base directory: $CLHEP_BASE_DIR" | |
256 | endif | |
257 | ||
258 | ||
259 | # | |
260 | # Visualization | |
261 | # ================================== | |
262 | # | |
263 | ||
264 | if ( "$?AG4_VISUALIZE" == 1 ) then | |
265 | if ( "$VERBOSE" == "YES" ) then | |
266 | echo "G4 Visualization env. variables..." | |
267 | endif | |
268 | ||
0aeb7f2b | 269 | # |
270 | # tcsh UI | |
271 | # | |
272 | if ( "$VERBOSE" == "YES" ) then | |
273 | echo "* tcsh UI..." | |
274 | endif | |
275 | setenv G4UI_USE_TCSH 1 | |
276 | ||
676fb573 | 277 | # |
278 | # Xm UI | |
279 | # | |
280 | if ( "$VERBOSE" == "YES" ) then | |
281 | echo "* X11 with Motif..." | |
282 | endif | |
283 | setenv G4UI_BUILD_XM_DRIVER 1 | |
284 | setenv G4UI_BUILD_XM_SESSION 1 | |
285 | setenv G4UI_USE_XM 1 | |
286 | ||
287 | # | |
288 | # Fukui Renderer | |
289 | # | |
290 | if ( "$VERBOSE" == "YES" ) then | |
291 | echo "* Fukui Renderer (DAWN)..." | |
292 | endif | |
293 | setenv G4VIS_BUILD_DAWN_DRIVER 1 | |
294 | setenv G4VIS_BUILD_DAWNFILE_DRIVER 1 | |
295 | setenv G4VIS_USE_DAWN 1 | |
296 | setenv G4VIS_USE_DAWNFILE 1 | |
8303131d | 297 | #setenv G4DAWNFILE_VIEWER david |
676fb573 | 298 | setenv DAWN_HOME ${G4_BASE}/tools/bin |
299 | if ( "`echo ${PATH} | grep ${DAWN_HOME} `" == "" ) then | |
300 | setenv PATH "${PATH}:${DAWN_HOME}" | |
301 | rehash | |
302 | endif | |
303 | setenv G4DAWN_MULTI_WINDOW 1 | |
304 | if ( $SYSTEM == "Linux" ) then | |
305 | setenv G4DAWN_NAMED_PIPE 1 | |
306 | endif | |
307 | ||
308 | if ( "$VERBOSE" == "YES" ) then | |
309 | if ("$?G4VIS_USE_DAWN" == 1) then | |
310 | echo " Dawn driver activated" | |
311 | endif | |
312 | if ("$?G4VIS_USE_DAWNFILE" == 1) then | |
313 | echo " Dawn file driver activated" | |
314 | endif | |
315 | if ("$?G4DAWNFILE_VIEWER" == 1) then | |
316 | echo " Dawn file viewer set to ${G4DAWNFILE_VIEWER}" | |
317 | endif | |
318 | if ("$?DAWN_HOME" == 1) then | |
319 | echo " Dawn home path set to ${DAWN_HOME}" | |
320 | endif | |
321 | if ("$?G4DAWN_MULTI_WINDOW" == 1) then | |
322 | echo " Dawn multi window selected" | |
323 | endif | |
324 | if ("$?G4DAWN_NAMED_PIPE" == 1) then | |
325 | echo " Dawn named pipe selected" | |
326 | endif | |
327 | endif | |
328 | ||
329 | # David flags | |
330 | # Set colors for overlappings | |
331 | setenv DAVID_RAINBOW_FLAG 1 | |
332 | #setenv DAVID_HIGHLIGHT_COLOR_R r | |
333 | #setenv DAVID_HIGHLIGHT_COLOR_G g | |
334 | #setenv DAVID_HIGHLIGHT_COLOR_B b | |
335 | ||
336 | # If set volumes names are shown | |
337 | setenv DAVID_DISPLAY_PVNAME 1 | |
338 | # If set supresses the call to dawn | |
339 | #setenv DAVID_NO_VIEW 1 | |
340 | setenv DAVID_EPSILON_3D 0.001 | |
341 | ||
342 | if ( "$VERBOSE" == "YES" ) then | |
343 | if ("$?DAVID_RAINBOW_FLAG" == 1) then | |
344 | echo " DAVID Rainbow mode is ON" | |
345 | endif | |
346 | if ("$?DAVID_HIGHLIGHT_COLOR_R" == 1) then | |
347 | echo " DAVID Highlight color (Red) set to ${DAVID_HIGHLIGHT_COLOR_R}" | |
348 | endif | |
349 | if ("$?DAVID_HIGHLIGHT_COLOR_G" == 1) then | |
350 | echo " DAVID Highlight color (Green) set to ${DAVID_HIGHLIGHT_COLOR_G}" | |
351 | endif | |
352 | if ("$?DAVID_HIGHLIGHT_COLOR_B" == 1) then | |
353 | echo " DAVID Highlight color (Blue) set to ${DAVID_HIGHLIGHT_COLOR_B}" | |
354 | endif | |
355 | if ("$?DAVID_DISPLAY_PVNAME" == 1) then | |
356 | echo " DAVID will display intersected volumes name" | |
357 | endif | |
358 | if ("$?DAVID_DISPLAY_PVNAME" == 1) then | |
359 | echo " Dawn will not be called from DAVID" | |
360 | endif | |
361 | if ("$?DAVID_EPSILON_3D" == 1) then | |
362 | echo " DAVID tolerance set to ${DAVID_EPSILON_3D}" | |
363 | endif | |
364 | endif | |
365 | ||
366 | # | |
367 | # OpenGL | |
368 | # | |
369 | if ( "$VERBOSE" == "YES" ) then | |
370 | echo "* OpenGL..." | |
371 | endif | |
372 | setenv G4VIS_BUILD_OPENGLX_DRIVER 1 | |
373 | setenv G4VIS_BUILD_OPENGLXM_DRIVER 1 | |
374 | setenv G4VIS_USE_OPENGLX 1 | |
375 | setenv G4VIS_USE_OPENGLXM 1 | |
9593171a | 376 | setenv OGLHOME /usr/local |
377 | setenv OGLLIBS "-L$OGLHOME/lib -lMesaGLU -lMesaGL" | |
b1e58fea | 378 | if ( $SYSTEM == "HP-UX" ) then |
379 | setenv OGLLIBS "-L/usr/lib ${OGLLIBS}" | |
380 | endif | |
381 | if ( $SYSTEM == "OSF1" ) then | |
382 | # temporarily excluded | |
383 | # due to problems with Root | |
384 | unsetenv G4VIS_BUILD_OPENGLX_DRIVER | |
385 | unsetenv G4VIS_BUILD_OPENGLXM_DRIVER | |
386 | unsetenv G4VIS_USE_OPENGLX | |
387 | unsetenv G4VIS_USE_OPENGLXM | |
388 | unsetenv OGLHOME | |
389 | unsetenv OGLLIBS | |
390 | endif | |
676fb573 | 391 | if ( "$VERBOSE" == "YES" ) then |
392 | if ("$?G4VIS_USE_OPENGLX" == 1) then | |
393 | echo " OpenGL and X11 driver activated" | |
394 | endif | |
395 | if ("$?G4VIS_USE_OPENGLXM" == 1) then | |
396 | echo " OpenGL with Motif extension driver activated" | |
397 | endif | |
398 | if ("$?OGLHOME" == 1) then | |
399 | echo " OpenGL path set to ${OGLHOME}" | |
400 | endif | |
401 | if ("$?OGLLIBS" == 1) then | |
402 | echo " OpenGL libraries set to ${OGLLIBS}" | |
403 | endif | |
404 | endif | |
405 | ||
406 | # | |
407 | # OpenInventor | |
408 | # | |
409 | if ( "$VERBOSE" == "YES" ) then | |
410 | echo "* OpenInventor..." | |
411 | endif | |
412 | #setenv G4VIS_USE_OPENINVENTOR 1 | |
413 | #setenv OIHOME whatever | |
414 | #setenv HEPVISDIR something | |
415 | if ( "$VERBOSE" == "YES" ) then | |
416 | if ("$?G4VIS_USE_OPENINVENTOR" == 1) then | |
417 | echo " OpenInventor driver activated" | |
418 | echo " OpenInventor path is ${OIHOME}" | |
419 | echo " HepVis path is ${HEPVISDIR}" | |
420 | endif | |
421 | endif | |
422 | ||
423 | # | |
424 | # VRML1 | |
425 | # | |
426 | if ( "$VERBOSE" == "YES" ) then | |
427 | echo "* VRML..." | |
428 | endif | |
429 | setenv G4VIS_BUILD_VRML_DRIVER 1 | |
430 | setenv G4VIS_BUILD_VRMLFILE_DRIVER 1 | |
431 | setenv G4VIS_USE_VRML 1 | |
432 | setenv G4VIS_USE_VRMLFILE 1 | |
433 | #Set preferred vrml viewer to be invoked in this mode | |
434 | setenv G4VRMLFILE_VIEWER vrweb | |
435 | #Set host name for VRML1 visualization.... the g4vrmlview machine! | |
436 | setenv G4VRML_HOST_NAME nohost | |
437 | #Command to run java listener for VRML driver | |
438 | #alias javavrml "java -classpath $G4_BASE/tools/bin/java g4vrmlview vrweb" | |
439 | ||
440 | if ( "$VERBOSE" == "YES" ) then | |
441 | if ("$?G4VIS_USE_VRML" == 1) then | |
442 | echo " VRML driver activated" | |
443 | echo " Host Name for remote visualization is ${G4VRML_HOST_NAME}" | |
444 | endif | |
445 | if ("$?G4VIS_USE_VRMLFILE" == 1) then | |
446 | echo " VRML file driver activated" | |
447 | echo " VRML viewer set to ${G4VRMLFILE_VIEWER}" | |
448 | endif | |
449 | endif | |
450 | ||
451 | # | |
452 | # Ray Tracer | |
453 | # | |
454 | if ( "$VERBOSE" == "YES" ) then | |
455 | echo "* Ray Tracer..." | |
456 | endif | |
457 | #setenv G4VIS_BUILD_RAYTRACER_DRIVER 1 | |
458 | #setenv G4VIS_USE_RAYTRACER 1 | |
459 | if ( "$VERBOSE" == "YES" ) then | |
460 | if ("$?G4VIS_USE_RAYTRACER" == 1) then | |
461 | echo " Ray tracing driver activated" | |
462 | endif | |
463 | endif | |
464 | ||
465 | # | |
466 | # GAG | |
467 | # | |
468 | if ( "$VERBOSE" == "YES" ) then | |
469 | echo "* Geant Adaptative GUI (GAG)..." | |
470 | endif | |
471 | setenv G4UI_BUILD_GAG_SESSION 1 | |
472 | setenv G4UI_USE_GAG 1 | |
473 | setenv MOMOPATH ${G4_BASE}/tools/GAG/tcltk | |
474 | if ( "`echo ${PATH} | grep ${MOMOPATH} `" == "" ) then | |
475 | setenv PATH "${PATH}:${MOMOPATH}" | |
476 | rehash | |
477 | endif | |
478 | set NCLASSPATH = ".:${G4_BASE}/tools/swing-1.0.3/swingall.jar:${G4_BASE}/tools/GAG/java/GAG.jar" | |
479 | if ("$?CLASSPATH" == 0) then | |
480 | setenv CLASSPATH $NCLASSPATH | |
481 | else | |
482 | if ( "`echo ${CLASSPATH} | grep ${NCLASSPATH} `" == "" ) then | |
483 | setenv CLASSPATH "${CLASSPATH}:${NCLASSPATH}" | |
484 | endif | |
485 | endif | |
486 | ||
487 | if ( "$VERBOSE" == "YES" ) then | |
488 | if ("$?G4UI_USE_GAG" == 1) then | |
489 | echo " GAG UI activated" | |
490 | echo " Momo path set to $MOMOPATH" | |
491 | echo " NOTE: Run "\'tmomo\' "to use Momo (TK/Tcl version)" | |
492 | echo " The path to the java GAG code was updated" | |
493 | echo " NOTE: Run "\'java gag\'" to use GAG (java version)" | |
494 | endif | |
495 | endif | |
496 | ||
497 | else | |
498 | if ( "$VERBOSE" == "YES" ) then | |
499 | echo Unsetting G4 Visualization env. variables... | |
500 | endif | |
501 | ||
502 | #XM | |
503 | unsetenv G4UI_BUILD_XM_DRIVER | |
504 | unsetenv G4UI_BUILD_XM_SESSION | |
505 | unsetenv G4UI_USE_XM | |
506 | ||
507 | # Dawn | |
508 | unsetenv G4VIS_BUILD_DAWN_DRIVER | |
509 | unsetenv G4VIS_BUILD_DAWNFILE_DRIVER | |
510 | unsetenv G4VIS_USE_DAWN | |
511 | unsetenv G4VIS_USE_DAWNFILE | |
512 | unsetenv G4DAWNFILE_VIEWER | |
513 | unsetenv DAWN_HOME | |
514 | unsetenv G4DAWN_MULTI_WINDOW | |
515 | if ( $SYSTEM == "Linux" ) then | |
516 | unsetenv G4DAWN_NAMED_PIPE | |
517 | endif | |
518 | ||
519 | # David | |
520 | unsetenv DAVID_RAINBOW_FLAG | |
521 | unsetenv DAVID_HIGHLIGHT_COLOR_R | |
522 | unsetenv DAVID_HIGHLIGHT_COLOR_G | |
523 | unsetenv DAVID_HIGHLIGHT_COLOR_B | |
524 | unsetenv DAVID_DISPLAY_PVNAME | |
525 | unsetenv DAVID_NO_VIEW | |
526 | unsetenv DAVID_EPSILON_3D | |
527 | ||
528 | # OpenGL | |
529 | unsetenv G4VIS_BUILD_OPENGLX_DRIVER | |
530 | unsetenv G4VIS_BUILD_OPENGLXM_DRIVER | |
531 | unsetenv G4VIS_USE_OPENGLX | |
532 | unsetenv G4VIS_USE_OPENGLXM | |
533 | unsetenv OGLHOME | |
534 | unsetenv OGLLIBS | |
535 | ||
536 | # OpenInventor | |
537 | unsetenv G4VIS_USE_OPENINVENTOR | |
538 | ||
539 | # VRML1 | |
540 | unsetenv G4VIS_BUILD_VRML_DRIVER | |
541 | unsetenv G4VIS_BUILD_VRMLFILE_DRIVER | |
542 | unsetenv G4VIS_USE_VRML | |
543 | unsetenv G4VIS_USE_VRMLFILE | |
544 | unsetenv G4VRMLFILE_VIEWER | |
545 | unsetenv G4VRML_HOST_NAME | |
546 | ||
547 | # GAG | |
548 | unsetenv G4UI_BUILD_GAG_SESSION | |
549 | unsetenv G4UI_USE_GAG | |
550 | unsetenv MOMOPATH | |
551 | ||
552 | endif | |
553 | ||
554 | # | |
555 | # OPACS | |
556 | # | |
557 | if ( "$?AG4_OPACS" == 1 ) then | |
558 | if ( "$VERBOSE" == "YES" ) then | |
559 | echo "* OPACS..." | |
560 | endif | |
561 | setenv AG4_VISUALIZE 1 | |
562 | ||
563 | # | |
564 | # OpenGL: needed by OPACS | |
565 | # | |
566 | setenv G4VIS_BUILD_OPENGLX_DRIVER 1 | |
567 | setenv G4VIS_USE_OPENGLX 1 | |
3507a0d2 | 568 | setenv OGLHOME /usr/local |
569 | setenv OGLLIBS "-L$OGLHOME/lib -lMesaGLU -lMesaGL" | |
b1e58fea | 570 | if ( $SYSTEM == "HP-UX" ) then |
571 | setenv OGLLIBS "-L/usr/lib ${OGLLIBS}" | |
572 | endif | |
676fb573 | 573 | |
574 | # | |
575 | # OPACS | |
576 | # | |
577 | setenv G4VIS_BUILD_OPACS_DRIVER 1 | |
578 | setenv G4UI_BUILD_WO_DRIVER 1 | |
579 | setenv G4UI_BUILD_WO_SESSION 1 | |
580 | setenv G4VIS_USE_OPACS 1 | |
581 | setenv G4UI_USE_WO 1 | |
582 | setenv OPACS_HOME $G4_BASE/tools/OPACS | |
583 | #setenv OPACS_HOME /afs/cern.ch/rd44/dev/OPACS | |
584 | if ( $SYSTEM == "Linux" ) then | |
585 | setenv G4_OPACS_WIDGET_SET lesstif | |
586 | else | |
587 | setenv G4_OPACS_WIDGET_SET Xm | |
588 | endif | |
589 | source $OPACS_HOME/OPACS/v3/setup.csh | |
590 | setenv WOENVIRONMENT $AG4_INSTALL/bin/Alice.odb | |
591 | setenv OPATH "$OPATH $G4INSTALL/environments/OPACS/usr" | |
592 | if ( "$VERBOSE" == "YES" ) then | |
593 | if ("$?G4VIS_USE_OPACS" == 1) then | |
594 | echo " OPACS driver activated" | |
595 | echo " OPACS path set to $OPACS_HOME" | |
596 | endif | |
597 | endif | |
598 | else | |
599 | if ( "$VERBOSE" == "YES" ) then | |
600 | echo "* Unsetting OPACS driver env. variables ..." | |
601 | endif | |
602 | unsetenv G4VIS_BUILD_OPACS_DRIVER | |
603 | unsetenv G4UI_BUILD_WO_DRIVER | |
604 | unsetenv G4UI_BUILD_WO_SESSION | |
605 | unsetenv G4VIS_USE_OPACS | |
606 | unsetenv G4UI_USE_WO | |
607 | unsetenv OPACS_HOME | |
608 | unsetenv G4_OPACS_WIDGET_SET | |
609 | unsetenv G4OROOT | |
610 | unsetenv WOENVIRONMENT | |
611 | unsetenv OPATH | |
612 | endif | |
613 | ||
614 | # | |
b1e58fea | 615 | # path to AliGeant4 config scripts |
676fb573 | 616 | # |
676fb573 | 617 | if ( "`echo ${PATH} | grep ${AG4_INSTALL}/config `" == "" ) then |
618 | if ( "$VERBOSE" == "YES" ) then | |
619 | echo Adding ${AG4_INSTALL}/config to the path... | |
620 | endif | |
621 | setenv PATH "${PATH}:${AG4_INSTALL}/config" | |
622 | endif | |
623 | ||
624 | # | |
625 | # path to shared libraries | |
626 | # | |
627 | if ( $SYSTEM == "HP-UX" ) then | |
628 | set SHLIBVAR = $SHLIB_PATH | |
629 | set SHLIBVARNAME = SHLIB_PATH | |
630 | endif | |
631 | if ( $SYSTEM == "Linux" ) then | |
632 | set SHLIBVAR = $LD_LIBRARY_PATH | |
633 | set SHLIBVARNAME = LD_LIBRARY_PATH | |
634 | endif | |
b1e58fea | 635 | if ( $SYSTEM == "OSF1" ) then |
636 | set SHLIBVAR = $LD_LIBRARY_PATH | |
637 | set SHLIBVARNAME = LD_LIBRARY_PATH | |
638 | endif | |
639 | if ( $SYSTEM == "SunOS" ) then | |
640 | set SHLIBVAR = $LD_LIBRARY_PATH | |
641 | set SHLIBVARNAME = LD_LIBRARY_PATH | |
676fb573 | 642 | endif |
643 | ||
644 | if ( "`echo ${SHLIBVAR} | grep ${G4INSTALL}/lib/${G4SYSTEM} `" == "" ) then | |
645 | if ( "$VERBOSE" == "YES" ) then | |
646 | echo Adding ${G4INSTALL}/lib/${G4SYSTEM} to the shared libraries path... | |
647 | endif | |
648 | set SHLIBVAR="${G4INSTALL}/lib/${G4SYSTEM}:${SHLIBVAR}" | |
649 | endif | |
36601e2a | 650 | if ( "`echo ${SHLIBVAR} | grep ${CLHEP_BASE_DIR}/lib `" == "" ) then |
651 | if ( "$VERBOSE" == "YES" ) then | |
b54d5051 | 652 | echo Adding ${CLHEP_BASE_DIR}/lib to the shared libraries path... |
653 | endif | |
654 | set SHLIBVAR="${SHLIBVAR}:${CLHEP_BASE_DIR}/lib" | |
36601e2a | 655 | endif |
676fb573 | 656 | |
657 | setenv $SHLIBVARNAME $SHLIBVAR | |
658 | ||
659 | ||
660 | # | |
661 | # Remove unneeded variables. If this is not done the vars. remain in the env. | |
662 | # | |
663 | ||
664 | unset ALICE_BASE | |
665 | unset G4_BASE | |
666 | unset LHCXX_BASE | |
676fb573 | 667 | unset SYSTEM |
668 | unset NCLASSPATH | |
669 | unset SHLIBVAR | |
670 | unset SHLIBVARNAME | |
671 | unset LOCAL | |
672 | unset VERBOSE | |
673 | ||
674 | echo "Default ALICE environment for GEANT4 has been set." |