Building your generator with C++

You can build your generator by writing your C++ class inheriting from G4VUserPrimaryGeneratorAction (see example in [ 9 ]).

After that you have to transform it into a GAMOS plug-in. To learn how to do this, see the instructions in the section Creating your plug-in, using the GmGeneratorFactory, or see the example examples/N02.