Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Mar 4, 2024
1 parent 97ed838 commit 67b0b89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/source/physicslists.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ define such a list in Geant4, and implement it in a shared library (i.e. in the
automatically show up as an available physics list with the name
``PL_<yourphyslistname>``, you must perform two specific steps. The first step
is the addition of an empty file named
`plugin_g4physlist_<yourphyslistname>.txt` in the `data/` directory of the same
package. This is needed solely as a way for your package to advertise the
``plugin_g4physlist_<yourphyslistname>.txt`` in the ``data/`` directory of the
same package. This is needed solely as a way for your package to advertise the
existence of the physics list. The second step is to add a factory function
named ``sbldplugindef_g4physlist_<yourphyslistname>`` inside your shared
library. This factory function should actually create ("i.e. ``new
MyPhysList``") the physics list and return a pointer to it, and it must be
library. This factory function should actually create (i.e. ``return new
MyPhysList()``) the physics list and return a pointer to it, and it must be
enclosed in an ``extern "C" { ... }`` block.

For an example of how this is done, refer to the implementation of the
Expand Down

0 comments on commit 67b0b89

Please sign in to comment.