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.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]
1 -------------------------------------------------------------------
2
3 Example of use GDML reader/writer in Detector Construction
4 -----------------------------------------------------------
5
6 In this directory you can find a example showing how to use GDML module for
7 reading and writing. It is also shown how to Read STEP Tools files.
8 In this example the DetectorConstruction consists of a Simple Detector, then
9 this Detector is filled/written in GDML.
10 The different options for writing and reading GDML files are shown in the
11 Detector Construction: writing modular files, using different schema location,
12 setting parameters for names in GDML file, etc.
13 For more information, please, refer to the GDML Documentation.
14
15 The Geometry is a Simple Detector Box with 4 Subdetectors.
16 This setup shows how to use Reflection Factory, Assembly of Volumes and
17 Parameterisation.
18 Using commands or macros it possible to read or write GDML file.
19
20 HOW TO BUILD THE EXAMPLE ?
21
22 - You need to have built the persistency/gdml module by having
23 set the -DGEANT4_USE_GDML=ON flag during the CMAKE configuration step,
24 as well as the -DXERCESC_ROOT_DIR=<path_to_xercesc> flag pointing to
25 the path where the XercesC XML parser package is installed in your system.
26
27 - Compile and link to generate the executable (in your CMAKE build directory):
28 % make
29
30 - Execute the application:
31 % geotest [macro-file].mac
32
33 You can run this application with the following macro file:
34
35 write_gdml.mac : This macro will write the Geometry defined in file
36 "test.gdml" and output to a new file wtest.gdml
37 To change this name you can use command :
38 /mydet/writeFile FileName.gdml
39
40 read_gdml.mac : This macro will read the Geometry from file "test.gdml"
41 To change this name you can use command :
42 /mydet/readFile FileName.gdml
43
44 read_step.mac : This macro will read the STEP Tool files "mbb.geom" and
45 "mbb.tree" and load them in memory.
46 To change this name you can use command :
47 /mydet/StepFile FileName