Building a simple geometry with one material

This geometry can serve for example when you want to get the cross section of a set of materials, so you do not really need to define any geometry, but just a fake one containing the materials you need so that you can use the Geant4 utilities to get the cross sections.

To use this, you have to set the geometry to :

/gamos/geometry GmGeometryUseMaterials

The file name where you can define the materials (unless you want to use the Geant4 predefined ones) can be set with the parameter:

/gamos/setParam GmGeometryUseMaterials:FileName FILE_NAME

Then you have to set a list of maeterials with the parameter:

/gamos/setParam GmGeometryUseMaterials:Materials MATE_1 MATE_2 ..

The geometry to be built will be a list of volumes, on with each material.

You can see an example on the use of this utility at tutorials/ShieldingTutorial/exercise5.