[Gemc_software] geometry parameters

Maurizio Ungaro ungaro at jlab.org
Mon Feb 13 08:35:29 EST 2012


Dear all,

the time has come for parameters to be shared among simulation, reconstruction, event display, etc.

A mysql database has been created for this. 
To use it in the perl script that defines the geometry, two lines of codes are added at the top:

-----

# Load configuration
my %configuration = load_configuration($config_file); 

# Load parameters from mysql database
my %parameters    = download_parameters(%configuration);

-----

where you can find the config file in clas12 detector geo directories after you update gemc.

You can then access them like this:

# Assign paramters to local variables
my $length = $parameters{"paddles_length"};

You can find specific instructions here:

https://gemc.jlab.org/gemc/Documentation/Entries/2012/2/9_Geometry_Parameters.html

Please start working on uploading your parameters to the DB. The goal is to have no hardcoded numbers in the source code.
I'm attaching a template. If you prefer, you can fill this out and send it back to me.
 
A "link to PDF drawing or documentation" column must be filled. This will ensure proper documentation for the numbers.

These parameters are also uploaded every hour on the web. You can find them on the main page of gemc.

This is part of the project aimed at re-structuring the mysql database and permissions.

Part II will be removing the need of "go_table" and simplifying I/O.
Part III will be completing the mysql DB for materials.


regards,
mauri


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: parameters.txt
URL: <https://mailman.jlab.org/pipermail/gemc_software/attachments/20120213/66b18a8c/attachment-0002.txt>


More information about the Gemc_software mailing list