GEANT4

Code Quality Checking

  1. Commercial tools.
  2. Scripts for code management and testing.
  3. Programming hints.

1. Commercial tools

The GEANT4 prototype code has been filtered by the most commonly used code inspectors packages currently in the market. Some of them have been used just for a limited period of time for evaluation.

2. Scripts for code management and testing

Scripts have been developed to inspect the code in order to find common mistakes: Another script has been developed for testing the code: g4test.

View the instructions for installing these scripts and other useful tools.

3. Programming hints

Here is a list of hints for development in Geant4 to avoid common programming mistakes. It is far from being exaustive or complete.

Note

Some tools for run-time memory usage checking are not able to cope with the Rogue Wave RWCString class. This class does not store a pointer to the beginning of the heap block it allocates, it stores just one to the beginning+4 (the first 4 bytes store some bookeeping information), thus they falsely report every undeleted RWCString as a possible memory leak.


Mon 29 Mar 1999 GC & PU