TWiki
>
Main Web
>
TWikiUsers
>
CamiloSevilla
>
G4Training
(2018-04-20,
CamiloSevilla
)
(raw view)
E
dit
A
ttach
P
DF
-- Main.CamiloSevilla - 2018-04-20 ---+ geant4.10.04 Installation Handbook v04 Autor: Andrés Camilo Sevilla<sup>12</sup>, José Mauricio Sevilla<sup>3</sup> <br /><sup>1</sup>Grupo Física de Bajas Temperaturas y Detectores CRYOMAG - UNAL<br /><sup>2</sup>Grupo Física Médica - UNAL<br /><sup>3</sup>Grupo de Caos y Complejidad - UNAL<br /><br />April 2018 - Bogotá, Colombia ---++ 1. Prerequisites OS recommended: Ubuntu 16.04, Ubuntu 18.04 To use the most common and useful Geant4 components (in Medical and Detectors Physics), you need install some package on your ubuntu system via terminal using $sudo apt-get install --package-- or synaptic package manager. - GDML Support<br /> requires: libxerces-c-dev - User Interface and Visualization<br /> requires: qt4-dev-tools, freeglut3-dev, libmotif-dev, tk-dev - other requirements: cmake, libxpm-dev, libxmu-dev, libxi-dev <verbatim>$ sudo apt-get install libxerces-c-dev qt4-dev-tools freeglut3-dev libmotif-dev tk-dev cmake libxpm-dev libxmu-dev libxi-dev</verbatim> ---++ 2. Building from source files Create a folder "geant4" in your system: <verbatim>$ cd /opt/ $ sudo mkdir applications $ cd applications $ sudo mkdir geant4</verbatim> Download and copy <a href="http://geant4.cern.ch/support/source/geant4.10.04.p01.tar.gz" target="_blank" title="geant4.10.04">geant4.10.04</a> source files to geant4 folder, then unpack it: <verbatim>$ sudo mv ~/Downloads/geant4.10.04.p01.tar.gz /opt/applications/geant4/. $ cd /opt/applications/geant4/ $ sudo tar -zxvf geant4.10.04.p01.tar.gz</verbatim> Create a directory to configure and build Geant4. <verbatim>$ mkdir geant4.10.04.p01-build</verbatim> To configure the build, enter to build directory and run CMake <verbatim>$ cd geant4.10.04.p01-build $ sudo cmake -DCMAKE_INSTALL_PREFIX=/opt/applications/geant4/geant4.10.04.p01-install -DGEANT4_USE_GDML=ON -DCMAKE_BUILD_TYPE=Debug -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_XM=ON -DGEANT4_USE_QT=ON -DGEANT4_BUILD_MULTITHREADED=ON /opt/applications/geant4/geant4.10.04.p01</verbatim> After the configuration, CMake will have generated Unix Makefiles for building Geant4. To build, simply execute make in the build directory: <verbatim>$ make -jN $ make install -jN</verbatim> Note: N is the number of cores available in your PC. To finish the installation open the .bashrc file: <verbatim>$ gedit ~/.bashrc</verbatim> At the end include the lines: <verbatim># geant4 source /opt/applications/geant4/geant4.10.04.p01-install/bin/geant4.sh</verbatim> ---++ 3. Running an example Create a G4WORK folder: <verbatim>$ mkdir ~/workspace $ mkdir ~/workspace/G4WORK</verbatim> Copy there a G4 example: <verbatim>$ cp -R ~/geant4/geant4.10.04.p01/examples/basic/B1/ ~/workspace/G4WORK/.</verbatim> Configure and compile B1 example <verbatim>$ cd ~/workspace/G4WORK/ $ mkdir B1-build $ cd B1-build $ cmake ../B1 $ make -jN</verbatim> Note: N is the number of cores available in your PC. Finally run the example <verbatim>$ ./exampleB1</verbatim> ---++ 4. References [1] [[http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/index.html][Geant4 installation guide]], Geant4 Collaboration, http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/index.html<br />[2] [[AllPix][Twiki Allpix]] , John Idarraga, https://twiki.cern.ch/twiki/bin/view/Main/AllPix
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
gz
geant4.10.04.p01.tar.gz
r1
manage
170520.0 K
2018-04-20 - 05:47
CamiloSevilla
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r8
<
r7
<
r6
<
r5
<
r4
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r8 - 2018-04-20
-
CamiloSevilla
Log In
Main
Home
Index
Search
User Search
Changes
Notifications
RSS Feed
Documentation
Support
Webs
Main
Main Archive
Plugins
Sandbox for tests
Public webs
Public webs
ABATBEA
ACPP
ADCgroup
AEGIS
AfricaMap
AgileInfrastructure
ALICE
AliceEbyE
AliceSPD
AliceSSD
AliceTOF
AliFemto
ALPHA
Altair
ArdaGrid
ASACUSA
AthenaFCalTBAna
Atlas
AtlasLBNL
AXIALPET
CAE
CALICE
CDS
CENF
CERNSearch
CLIC
Cloud
CloudServices
CMS
Controls
CTA
CvmFS
DB
DefaultWeb
DESgroup
DPHEP
DM-LHC
DSSGroup
EGEE
EgeePtf
ELFms
EMI
ETICS
FIOgroup
FlukaTeam
Frontier
Gaudi
GeneratorServices
GuidesInfo
HardwareLabs
HCC
HEPIX
ILCBDSColl
ILCTPC
IMWG
Inspire
IPv6
IT
ItCommTeam
ITCoord
ITdeptTechForum
ITDRP
ITGT
ITSDC
LAr
LCG
LCGAAWorkbook
Leade
LHCAccess
LHCAtHome
LHCb
LHCgas
LHCONE
LHCOPN
LinuxSupport
Main
Medipix
Messaging
MPGD
NA49
NA61
NA62
NTOF
Openlab
PDBService
Persistency
PESgroup
Plugins
PSAccess
PSBUpgrade
R2Eproject
RCTF
RD42
RFCond12
RFLowLevel
ROXIE
Sandbox
SocialActivities
SPI
SRMDev
SSM
Student
SuperComputing
Support
SwfCatalogue
TMVA
TOTEM
TWiki
UNOSAT
Virtualization
VOBox
WITCH
XTCA
Welcome Guest
Login
or
Register
Cern Search
TWiki Search
Google Search
Main
All webs
Copyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use
Discourse
or
Send feedback