Usage

g4tools comes with test programs of its own that may be usefull in case of problems (for example porting on a not yet covered platform).

You can build and run them with :

     UNIX> <get g4tools.zip>
     UNIX> <unzip g4tools.zip>
     UNIX> cd g4tools/test/cpp
     UNIX> ./build
     UNIX> ./tools_test_histo
     UNIX> ./tools_test_wroot
     UNIX> etc...
 and on Windows :
      DOS> <get g4tools.zip>
      DOS> <unzip g4tools.zip> (you can use the unzip.exe of CYGWIN)
      DOS> cd g4tools\test\cpp
      DOS> .\build.bat
      DOS> .\tools_test_histo.exe
      DOS> .\tools_test_wroot.exe
      DOS> etc...

Note that there is no need to have CLHEP and Geant4 installed to build and run the g4tools test programs, but you may have to install the CERNLIB (and a FORTRAN77 compiler!) if wanting to use the classes related to HBOOK.

     UNIX> cd g4tools/test/cpp
     UNIX> ./build_f77
     UNIX> ./tools_test_hello_f77
     UNIX> ./tools_test_hbook
     UNIX> ./tools_test_hbooknt
     UNIX> ./tools_test_chbook
     UNIX> ./tools_test_whbook
 and on Windows :
      DOS> cd g4tools\test\cpp
      DOS> .\build_f77.bat
      DOS> .\tools_test_hello_f77.exe
      DOS> .\tools_test_hbook.exe
      DOS> .\tools_test_chbook.exe
      DOS> .\tools_test_wbook.exe

Note that you may have to customize the use_cernlib script (for UNIX), build_f77 and build_f77.bat to access properly your FORTRAN compiler and the CERNLIB.