source: trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Detector/geomASCII.xml @ 1211

Last change on this file since 1211 was 1211, checked in by garnier, 15 years ago

CVS update

File size: 1.6 KB
Line 
1<!-- ******************************************************** -->
2<!--                                                          -->
3<!--  [History]                                               -->
4<!--    Converted to DocBook: Katsuya Amako, Aug-2006         -->
5<!--    Changed by: Gabriele Cosmo, 04-Dec-2007               -->
6<!--                                                          -->
7<!-- ******************************************************** -->
8
9
10<!-- ******************* Section (Level#2) ****************** -->
11<sect2 id="sect.Geom.ASCII">
12<title>
13Importing ASCII Text Models
14</title>
15
16<para>
17Since release 9.2 of Geant4, it is also possible to import geometry setups
18based on a plain text description, according to a well defined syntax for
19identifying the different geometrical entities (solids, volumes, materials
20and volume attributes) with associated parameters.
21
22An example showing how to define a geometry in plain text format and import
23it in a Geant4 application is shown in
24<literal>examples/extended/persistency/P03</literal>. The example also covers
25the case of associating a sensitive detector to one of the volumes defined
26in the text geometry, the case of mixing C++ and text geometry definitions
27and the case of defining new tags in the text format so that regions and
28cuts by region can be defined in the text file. It also provides an example
29of how to write a geometry text file from the in-memory Geant4 geometry.
30
31For the details on the format see the dedicated
32<ulink url="http://geant4.cern.ch/collaboration/working_groups/geometry/docs/textgeom/textgeom.pdf">manual</ulink>.
33</para>
34
35
36</sect2>
Note: See TracBrowser for help on using the repository browser.