12.07.2015 Views

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Detector Definition and ResponseUse Name Elements Density Unit State TemperatureUnit Pressure UnitBy clicking the column Elements, a new window is open to select one of two methods:• Add an element, giving its fraction by weight• Add an element, giving its number of atoms.4.1.9.2. SolidsThe most popular CSG solids (G4Box, G4Tubs, G4Cons, G4Trd) and specific BREPs solids (Pcons, Pgons)are supported. All relevant parameters of such a solid can be specified in the parameter table, which pops up uponselection.Color, or the visualization attribute of a logical volume can be created, using color chooser panel. Users can vieweach solid using DAWN.4.1.9.3. Logical VolumeGGE can specify the following items:Name Solid Material VisAttributeThe lists of solid types, names of the materials defined in the material tables, and names of user-defined visualizationattributes are shown automatically in respective table cell <strong>for</strong> user's choices.The construction and assignment of appropriate entities <strong>for</strong> G4FieldManager andG4VSensitiveDetector are left to the user.4.1.9.4. Physical Volume<strong>Geant4</strong> enables users to create a physical volume in different ways; the mother volume can be either a logical ora physical one, spatial rotation can be either with respect to the volume or to the frame to which the volume isattached. GGE is prepared <strong>for</strong> such four combinatorial cases to construct a physical volume.Five simple cases of creating physical volumes are supported by GGE. Primo, a single copy of a physical volumecan be created by a translation and rotation. Secondo, repeated copies can be created by repeated linear translations.A logical volume is translated in a Cartesian direction, starting from the initial position, with a given step size.Mother volume can be either another logical volume or a physical volume.NameLogicalVolumeTypenameMother-VolumeandofMany X0, Y0, Z0 Direction StepSize Unit CopyNumberThird, repeated copies are created by rotation around an axis, placing an object repeatedly on a ``cylindrical''pattern. Fourth, replicas are created by slicing a volume along a Cartesian direction. Fifth, replicas are created bycutting a volume cylindrically.4.1.9.5. Generation of C++ code:User has to type in a class name to his geometry, <strong>for</strong> example, MyDetectorConstruction. Then, with amouse button click, source codes in the <strong>for</strong>m of an include file and a source file are created and shown in the editorpanel. In this example, they are MyDetectorConstruction.cc and MyDetectorConstruction.hhfiles. They reflect all current user modifications in the tables in real-time.4.1.9.6. VisualizationThe whole geometry can be visualized after the compilation of the source codeMyDetectorConstruction.cc with appropriate parts of <strong>Geant4</strong>. (In particular only the geometry and vi-106

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!