GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - LFelicien/G4GDML: Geant4 script using GDML file for geometry

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
include
include
 
 
macros
macros
 
 
src
src
 
 
.README.txt
.README.txt
 
 
CMakeLists.txt
CMakeLists.txt
 
 
GNUmakefile
GNUmakefile
 
 
History
History
 
 
README
README
 
 
RX.gdml
RX.gdml
 
 
g01.in
g01.in
 
 
g01.out
g01.out
 
 
init_vis.mac
init_vis.mac
 
 
load_gdml.cc
load_gdml.cc
 
 
vis.mac
vis.mac
 
 
xenon.gdml
xenon.gdml
 
 

Repository files navigation

$Id: README 68025 2013-03-13 13:43:46Z gcosmo $
-------------------------------------------------------------------

     =========================================================
     Geant4 - an Object-Oriented Toolkit for Simulation in HEP
     =========================================================

                          GDML read/write
                          ---------------

This example demonstrates the usage of the GDML reader and writer. It allows
to export geometry descriptions in an application independent format (GDML,
Geometry Description Markup Language).
The GDML files can be then used to interchange geometries between different
applications and users.

The detector construction consists of a call to GDMLProcessor which parses a
GDML file and returns the pointer to the world volume. The user can also write
her/his own GDML file and use it as the primary input format for her/his Geant4
application.

Several simple GDML files are provided:
- axes.gdml,   showing loading and orientation of Cartesian axes;
- solids.gdml, list of all supported solids with placement; 
- scale.gdml,  a simple diamond structure made of extruded solids;
- divisionvol.gdml, a divided box;
- parameterized.gdml, a parameterised box;
- pTube.gdml, a parameterised tube;
- auxiliary.gdml, showing association of volume with auxiliary information;
- etc...

HOW TO BUILD THE EXAMPLE ?

- You need to have built the persistency/gdml module by having
  set the -DGEANT4_USE_GDML=ON flag during the CMAKE configuration step, 
  as well as the -DXERCESC_ROOT_DIR=<path_to_xercesc> flag pointing to 
  the path where the XercesC XML parser package is installed in your system.

- Compile and link to generate the executable (in your CMAKE build directory):
 	      % make

- Execute the application.
  o For reading and visualize interactively a GDML file:
 	      % load_gdml [GDML-file-in].gdml

  o For reading, writing and visualize interactively a GDML file:
 	      % load_gdml [GDML-file-in].gdml [GDML-file-out].gdml

  o For reading, writing a GDML file and running in batch a macro:
 	      % load_gdml [GDML-file-in].gdml [GDML-file-out].gdml [macro].in

About

Geant4 script using GDML file for geometry

Topics

gdmlgeant4

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.