[Gemc_software] material factories

Maurizio Ungaro ungaro at jlab.org
Thu Apr 5 16:44:34 EDT 2012


Dear all:

The MYSQL material factory has been added. We're getting closer to the goal of having no hardcoded numbers in the simulation ;-)

The materials can now be defined in both the CPP and MYSQL factories: 

* The CPP factory is the usual Geant4 implementation, with the exception that I'm now grouping materials by detectors, and removing all elements already defined in the Geant4 Material Database. The code already looks cleaner.

* The MYSQL database is filled and loaded in a way very similar to the parameters. Example:

BusCable  |  1200 | 2  | G4_Cu 24 G4_POLYETHYLENE 76

defines the material “BusCable” with density 1.2g/cm3, composed by 2 materials:
	• 1.Copper (24%)
	• 2.Polyethilene (76%)



One can choose which material factory to use with the command line option:

-MATERIALSDB=CPP  
or
-MATERIALSDB=MYSQL

A third option will be GDML (summer). 

More details here:

https://gemc.jlab.org/gemc/Documentation/Entries/2012/4/5_Materials_Factory.html

The MYSQL database already contains the SVT materials, and I'll work with the detectors managers to get all the remaining detector materials defined - including some detected inaccuracies.

The gemc webpage is still updated every 15 minutes with the parameters and now the material definitions as well.

Best Regards,
Mauri





More information about the Gemc_software mailing list