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p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.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 ]

Name Size       Last modified (GMT) Description
Back Parent directory       2024-12-05 15:16:16
Folder include/       2024-12-05 15:16:16
Folder src/       2024-12-05 15:16:16
File CMakeLists.txt 2531 bytes       2024-12-05 15:16:16
File Doxyfile 73527 bytes       2024-12-05 15:16:16
File GNUmakefile 363 bytes       2024-12-05 15:16:16
File History 3950 bytes       2024-12-05 15:16:16
File README 3156 bytes       2024-12-05 15:16:16
File batch.mac 316 bytes       2024-12-05 15:16:16
File batch.out 28241 bytes       2024-12-05 15:16:16
File g4geom.txt 502 bytes       2024-12-05 15:16:16
File g4geom_SD.txt 570 bytes       2024-12-05 15:16:16
File g4geom_assembly.txt 547 bytes       2024-12-05 15:16:16
File g4geom_boolean.txt 821 bytes       2024-12-05 15:16:16
File g4geom_cutsPerRegion.txt 695 bytes       2024-12-05 15:16:16
File g4geom_divisions.txt 646 bytes       2024-12-05 15:16:16
File g4geom_matemixt.txt 1723 bytes       2024-12-05 15:16:16
File g4geom_paramLinear.txt 1039 bytes       2024-12-05 15:16:16
File g4geom_paramSquare.txt 1125 bytes       2024-12-05 15:16:16
File g4geom_reflections.txt 579 bytes       2024-12-05 15:16:16
File g4geom_replicas.txt 855 bytes       2024-12-05 15:16:16
File g4geom_simple.txt 502 bytes       2024-12-05 15:16:16
File geom.txt 1085 bytes       2024-12-05 15:16:16
File run.mac 2166 bytes       2024-12-05 15:16:16
File runAll.sh 944 bytes       2024-12-05 15:16:16
C++ file textGeom.cc 4237 bytes       2024-12-05 15:16:16

  1 
  2      =========================================================
  3      Geant4 - an Object-Oriented Toolkit for Simulation in HEP
  4      =========================================================
  5 
  6                             Example TextGeom
  7                             ----------------
  8 
  9 This example illustrates the use of the text geometry. 
 10 
 11 1.- GEOMETRY EXAMPLES
 12 
 13 Several examples of text geometries are provided:
 14 
 15 g4geom_simple.txt :
 16 - Simple construction of materials and single placements 
 17 
 18 g4geom_matemixt.txt :
 19 - Isotopes, elements and materials
 20 
 21 g4geom_boolean.txt :
 22 - Boolean solids
 23  
 24 g4geom_reflections.txt :
 25 - Reflections
 26 
 27 g4geom_replicas.txt :
 28 - Replicas
 29 
 30 g4geom_divisions.txt :
 31 - Divisions
 32 
 33 g4geom_paramLinear.txt :
 34 - Linear parameterisations
 35 
 36 g4geom_paramSquare.txt :
 37 - Square parameterisations
 38 
 39 g4geom_assembly.txt : 
 40 - Assembly placements
 41 
 42       
 43 2.- HOW TO START ?
 44  
 45     - execute textGeom in 'batch' mode from macro file 
 46        % textGeom run.mac
 47     
 48 It will read the geometry from a file named 'g4geom.txt', and it will create a
 49 VRML2 file to visualise the geometry.
 50 Therefore if you want to try any of the above-mentioned files, copy it to a
 51 file with this name,
 52 
 53   
 54 3.- DEFINING A SENSITIVE DETECTOR
 55 
 56 The detector construction class ExTGDetectorConstructionWithSD shows how to
 57 access a volume of the text geometry and assign to it a sensitive detector.
 58 To use it, replace at exampleTextGeom.cc the line
 59 
 60   runManager->SetUserInitialization(new ExTGDetectorConstruction);
 61 
 62 by
 63 
 64   runManager->SetUserInitialization(new ExTGDetectorConstructionWithSD);
 65 
 66 and recompile.
 67 
 68 It will use the geometry from the file 'g4geom_SD.txt'
 69 
 70 
 71 4.- MIXING TEXT AND C++ GEOMETRIES   
 72 
 73 The detector construction class ExTGDetectorConstructionWithCpp shows how to
 74 create a volume with C++ and place it in the world or inside a volume defined
 75 in the text geometry.
 76 To use it, replace at exampleTextGeom.cc the line
 77 
 78   runManager->SetUserInitialization(new ExTGDetectorConstruction);
 79 
 80 by
 81 
 82   runManager->SetUserInitialization(new ExTGDetectorConstructionWithCpp);
 83 
 84 and recompile.
 85 
 86 It will use the geometry from the file 'g4geom_simple.txt'
 87 
 88 
 89 5.- CREATING NEW TAGS IN THE TEXT GEOMETRY: DEFINING CUTS PER REGION 
 90 
 91 The detector construction class ExTGDetectorConstructionWithCuts, together with
 92 ExTGRCLineProcessor, ExTGRCDetectorBuilder, ExTGRCRegionCutsMgr and
 93 ExTGRCRegionData show how to add a couple of tags, ':REGION' and ':CUT', that
 94 allow to define cuts per region in your input geometry text file. 
 95 To use it, replace at exampleTextGeom.cc the line
 96 
 97   runManager->SetUserInitialization(new ExTGDetectorConstruction);
 98 
 99 by
100 
101   runManager->SetUserInitialization(new ExTGDetectorConstructionWithCuts);
102 
103 and recompile.
104 
105 It will use the geometry from the file 'g4geom_cutsPerRegion.txt'
106 
107 
108 6.- DUMP THE IN-MEMORY GEOMETRY TO TEXT FILE
109 
110 The run action 'ExTGRunAction' triggers the writing of the in-memory Geant4
111 geometry to a text file. 
112 To use it you just have to uncomment in exampleTextGeom.cc the line
113 
114  runManager->SetUserAction(new ExTGRunAction);
115 
116 and it will read the geometry from the file 'g4geom.txt' and will write the
117 geometry in a file named 'geom.txt'