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 ResponseG4GeometryManager::GetInstance()->SetWorldMaximumExtent(WorldExtent);where, WorldExtent is the actual maximum extent of the world volume used <strong>for</strong> placing the whole geometrysetup.Such call to G4GeometryManager must be done be<strong>for</strong>e defining any geometrical component of the setup (solidshape or volume), and can be done only once !The class G4GeometryTolerance is to be used <strong>for</strong> retrieving the actual values defined <strong>for</strong> tolerances, surface(Cartesian), angular or radial respectively:G4GeometryTolerance::GetInstance()->GetSurfaceTolerance();G4GeometryTolerance::GetInstance()->GetAngularTolerance();G4GeometryTolerance::GetInstance()->GetRadialTolerance();4.1.9. A Simple Geometry EditorGGE is the acronym <strong>for</strong> <strong>Geant4</strong> Graphical Geometry Editor. GGE aims to assist physicists who have a littleknowledge on C++ and the <strong>Geant4</strong> toolkit to construct his or her own detector geometry. In essence, GGE is madeup of a set of tables which can contain all relevant parameters to construct a simple detector geometry. Tables<strong>for</strong> scratch or compound materials, tables <strong>for</strong> logical and physical volumes are provided. From the values in thetables, C++ source codes are automatically generated.GGE provides methods to:1. construct a detector geometry including G4Element, G4Material, G4Solids, G4LogicalVolume,G4PVPlacement, etc.2. view the detector geometry using existing visualization system, DAWN3. keep the detector object in a persistent way, either in GDML <strong>for</strong>mat (currently only logical volumes are supported)or Java serialized <strong>for</strong>mat.4. produce corresponding C++ codes after the norm of <strong>Geant4</strong> toolkit5. make a <strong>Geant4</strong> executable, in collaboration with another component of MOMO, i.e., GPE, or <strong>Geant4</strong> PhysicsEditor.GGE can be found in the standard <strong>Geant4</strong> distribution under the $G4INSTALL/environments/MO-MO/MOMO.jar. JRE (Java Run-time Environment) is prerequisite to run MOMO.jar, Java archive file of MO-MO. MOMO contains GGE, GPE, GAG and other helper tools. Further in<strong>for</strong>mation is available from the Webpages below.MOMO = GGE + GPE + GAG: http://www-geant4.kek.jp/~yoshidah4.1.9.1. Materials: elements and mixturesGGE provides the database of elements in the <strong>for</strong>m of the periodic table, from which users can select element(s) toconstruct new materials. They can be loaded, used, edited and saved as Java persistent objects or in a GDML file.In $G4INSTALL/enviroments/MOMO, a pre-constructed database of materials taken from the PDG book,PDG.xml is present.Users can also create new materials either from scratch or by combining other materials.• By selecting an element in the periodic table, default values as shown below are copied to a row in the table.Use Name A Z Density Unit State TemperatureUnitPressure UnitUse marks the used materials. Only the elements and materials used in the logical volumes are kept in thedetector object and are used to generate C++ constructors.• By selecting multiple elements in the periodic table, a material from a combination of elements is assigned toa row of the compound material table. The minimum actions user have to do is to give a name to the materialand define its density.105

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

Saved successfully!

Ooh no, something went wrong!