40 likes | 123 Views
Geant Simulation Tutorial. 2002 년 6 월 26 일 2002 CHEP 여름학교 서울대학교 김복주 웹페이지 :http://susy07.snu.ac.kr/~bockjoo/chep_summerschool_2002/. Setting Up, Compiling, Linking. Go to CHEP Summer School directory: /d12/tutor/chep_summerschool_2002/
E N D
Geant Simulation Tutorial 2002년6월26일 2002 CHEP 여름학교 서울대학교 김복주 웹페이지:http://susy07.snu.ac.kr/~bockjoo/chep_summerschool_2002/
Setting Up, Compiling, Linking • Go to CHEP Summer School directory: /d12/tutor/chep_summerschool_2002/ • Look inside of setup_cern.cshrc and edit it if necessary • CERN library setup $source setup_cern.cshrc • Compiling and linking • 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 • Method2 This should work for today’s exercises $cd /d12/tutor/chep_summerschool_2002/exercise $./build_linux • 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 http://susy07.snu.ac.kr/~bockjoo/chep_summerschool_2002/THETUTOR.txt • For exercises 2, 3, and 4, follow instructions in http://wwwinfo.cern.ch/geant/tutorial/manual/tutorial_11.html http://wwwinfo.cern.ch/geant/tutorial/manual/tutorial_15.html http://wwwinfo.cern.ch/geant/tutorial/manual/tutorial_17.html