The Mokka/examples/CGA directory shows how one can use the CGA interface.

You must do the following to get these examples running:

    1. One first has to build Mokka, as these examples rely on Mokka libraries.

    2. Then the java CGA interface should be built if one wants to run Ex03 and Ex05.
    This interface is located in the Mokka/java/CGA directory. Just go in that directory
    and type: gmake. The result (libCGAJava.so and CGAJava.jar) is located in the
    $G4WORKDIR/CGAJava/$G4SYSTEM directory.

    3. Build the examples by typing: gmake

Note: Ex04 and Ex05 use the LCIO library to read LCIO Mokka hit files. You need to have
          installed LCIO and built Mokka with it (you need to make the LCIO environment variable
          point to the home directory of LCIO for that - for example: export LCIO=$HOME/lcio/v01-00)
          Please note that Mokka is compatible with LCIO v01-00. Then build the java CGAinterface and the
          examples. If you don't set the LCIO environment variable only Ex01, Ex02 and Ex03 will be built.
          See http://www-it.desy.de/physics/projects/simsoft/lcio.

Running the examples:

    1. Ex01 and Ex02 just show how to get information about distances or number of X0's between two
        points in space. You run them by just typing their names. Ex03 does the same in java. You run it
        by typing: make run-ex03.

    2. Ex04 and Ex05 (the java version of Ex04) read an LCIO file (default file name is recjob.slcio)
        and use the CellID0 of every hit to get the cell center coordinates. First you have to generate
        these files with Mokka. You run Ex04 by just typing it's name, and Ex05 by typing:make run-ex05.

    3. Ex06 does the same as Ex04 and Ex05 but with ASCII hit files (default file name is ecal000000.hits)
        generated by Mokka. You run it by typing it's name.