Compile restG4 with my configure file

System : Linux
REST version : v2.2.10

I want to compile restG4 with my .rml file. In this case, I don’t need to generate the geometry and other source every time.
how can I do this?

Thank you

Hi Tao,

I understand you want to generate a stand-alone version of restG4 that does not require an input RML file and GDML geometry. So, that you will launch this program without the need to provide an RML file with the simulation conditions, and a GDML file?

If this is what you need, this is not possible. The main idea is that restG4 is a configurable Geant4 simulation code. Somehow, you always need to provide the RML and the geometry when executing restG4.

The main idea is that you will define a project folder that contains your RML file, and your geometry file. Then launch restG4 providing RML simulation conditions/setup. Usually, in a project you may have several RMLs to generate events from different nature. It would be estrange to compile restG4 independently with all those RML configurations.

There is no need to generate anything. You just need to have a project folder where you have your RML and your GDML geometry file. Of course, you must provide the RML file every time to chose the particular simulation conditions and geometry to be used in your simulation. And that you can customise without the need to re-compile restG4 every time.