Geant Simulation Tutorial 2002 년 6 월 26 일 2002 CHEP 여름학교 서울대학교 김복주 웹페이지 :
Setting Up, Compiling, Linking 1.Go to CHEP Summer School directory: /d12/tutor/chep_summerschool_2002/ 2.Look inside of setup_cern.cshrc and edit it if necessary 3.CERN library setup $source setup_cern.cshrc 4.Compiling and linking 1.Method1 $gcc – c – o gxint.o gxint.f ; gcc – c – o uginit.o uginit.f … $gcc -o exercise_1 -O -L/usr/X11R6/lib – L${CERN_ROOT}/lib gxint.o uglast.o uginit.o … -lX11 -lgeant321 -lpawlib -lmathlib -lpacklib - lgraflib -lgrafX11 -lpacklib -lkernlib -lmathlib -lstdc++ -lg2c -lm - ldl -lcrypt – lnsl 1.Method2 This should work for today ’ s exercises $cd /d12/tutor/chep_summerschool_2002/exercise $./build_linux 1.Method3 : use Makefile
More compiling and linking (To make Geant++) Now, at exercise directory, do: $cp gxint.f.Motif gxint.f $./build_linux_lesstif
Do exercises 1,2,3, and 4 For exercise 1, follow instructions in For exercises 2, 3, and 4, follow instructions in