[904] | 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> |
---|
| 13 | Importing ASCII Text Models |
---|
| 14 | </title> |
---|
| 15 | |
---|
| 16 | <para> |
---|
| 17 | Since release 9.2 of Geant4, it is also possible to import geometry setups |
---|
| 18 | based on a plain text description, according to a well defined syntax for |
---|
| 19 | identifying the different geometrical entities (solids, volumes, materials |
---|
| 20 | and volume attributes) with associated parameters. |
---|
| 21 | |
---|
| 22 | An example showing how to define a geometry in plain text format and import |
---|
| 23 | it in a Geant4 application is shown in |
---|
[1211] | 24 | <literal>examples/extended/persistency/P03</literal>. The example also covers |
---|
| 25 | the case of associating a sensitive detector to one of the volumes defined |
---|
| 26 | in the text geometry, the case of mixing C++ and text geometry definitions |
---|
| 27 | and the case of defining new tags in the text format so that regions and |
---|
| 28 | cuts by region can be defined in the text file. It also provides an example |
---|
| 29 | of how to write a geometry text file from the in-memory Geant4 geometry. |
---|
| 30 | |
---|
| 31 | For 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>. |
---|
[904] | 33 | </para> |
---|
| 34 | |
---|
[1211] | 35 | |
---|
[904] | 36 | </sect2> |
---|