![]() |
Geometry Files
|
![]() |
![]() |
Working groups |
Blessed plots and figures |
Approving new results and publications |
Approval web pages - new results |
Approval web pages - new publications |
Mu2e Acronyn Dictionary |
Fermilab Meeting Rooms |
Fermilab Service Desk |
ReadyTalk : Home |
ReadyTalk : Help |
ReadyTalk : Toll Free Numbers |
To specify a Mu2e geometry in the Mu2e Offline you put the following in the services table of your fcl file:
GeometryService : { inputFile : <filename> }where <filename> is the name of a geometry file. A typical services table will contain configuration for other services. To choose the currently recommended geometry, use the file:
Mu2eG4/geom/geom_common.txtwhere the path is relative to a base release of Mu2e Offline. If you look at this file, you will see that it contains only one line: it includes one of the named geometries. As of July 2016, there five supported named geometries:
Mu2eG4/geom/geom_common_cd3_s4p2.txt Mu2eG4/geom/geom_common_cd3_s4p2_backgroundSim.txt Mu2eG4/geom/geom_common_cd3_s3p2.txt Mu2eG4/geom/geom_common_cd3_p1.txt Mu2eG4/geom/geom_common_tdr.txtThe current default is the first in this list.
If you wish to override the choice of the geometry file, the recommended procedure is to add the following at the bottom of your fcl file:
services.GeometryService.inputFile : <filename>Some comments on each of these follows:
Before March 2015, the standard Mu2e geometry file was named:
Mu2eG4/test/geom_01.txtand the module that interfaced to Geant4 was called:
Mu2eG4/src/G4_module.ccFor historical reasons most of the run-time configurable parameters of G4_module were put into the geometry file. For a long time we wanted to move these parameters from the geometry file and put them into the fcl parameter set of G4_module.
In March 2105 a new module was created,
Mu2eG4/src/Mu2eG4_module.ccAt this point G4_module was frozen and future improvments were made in Mu2eG4_module. In Mu2eG4_module, the non-geometry parameters were moved out of the geometry file and into the fcl parameter set used to configure the module.
For a while both modules co-existed. To support this, the geometry file geom_01.txt was split into two pieces so that it was reduced to two lines:
#include "Mu2eG4/geom/geom_common.txt" #include "Mu2eG4/geom/g4_userOptions.txt"The first include file contains the geometry description and the second contains the geant4 non-geometry options.
During this period the two legal configurations were:
// Using G4_module: services.GeometryService.inputFile : "Mu2eG4/test/geom_01.txt" physics.producers.g4run : @local::g4runand
// Using Mu2eG4_module: services.GeometryService.inputFile : "Mu2eG4/geom/geom_common.txt" physics.producers.g4run : @local::mu2eg4runDefaultSingleStageThere are two things to note here:
services.GeometryService.inputFile : "Mu2eG4/test/geom_01.txt" physics.producers.g4run : @local::mu2eg4runDefaultSingleStageand
services.GeometryService.inputFile : "Mu2eG4/geom/geom_common.txt" physics.producers.g4run : @local::g4runIn both cases the module will detector that it was given the wrong geometry file, issue an error message and stop the job.
When G4_module was retired, Mu2eG4/test/geom_01.txt was modifed so that it no longer included Mu2eG4/geom/g4_userOptions.txt; this made it identical to Mu2eG4/geom/geom_common.txt. And the definition of g4run was changed to be a copy of mu2eg4runDefaultSingleStage. With these changes most legacy configurations were transformed to the new system without having to edit the legacy configurations.
At this time G4_module.cc was changed to give an error message and stop the job. It will be deleted in the near future.
![]() |
|
Security, Privacy, Legal |
![]() |