Mokka Common Geometry Access (CGA) Application Programming Interface (API)


The CGA API was designed with the aim to give the reconstruction and analysis access to the geometry model of the simulation. The simulation geometry model is written in C++ and is GEANT 4 based, while the reconstruction and analysis programs may have been written in Fortran, C , C++ or Java.

The CGA API is a library including, for the beginning, only a few facilities. Feedback is expected from people doing reconstruction and analysis in order to add new functionalities to the library.

1. The Fortran subroutine library
    1.1 Subroutine CGAInit
    1.2 Subroutine CGAWhereAmI
    1.3 Getting the information on the particle passage through the volumes
        1.3.1 Subroutine CGABeamOn
        1.3.2 Subroutine CGAGetSteps
        1.3.3 Subroutine CGAGetVolumeData
    1.4 Getting the coordinates of the cell center
         1.4.1 Subroutine CGASetSD
         1.4.2 Subroutine CGACellIndex
    1.5 Getting the CellId of a point
          1.5.1 Subroutine CGAGetCellId

2. The C/C++ library
    2.1 CGAInit
    2.2 CGAWhereAmI
    2.3 Getting the information on the particle passage through the volumes
        2.3.1 CGABeamOn
        2.3.2 CGAGetSteps
        2.3.3 CGAGetVolumeData
    2.4 Getting the coordinates of the cell center
        2.4.1 CGASetSD
        2.4.2 CGACellIndex
    2.5 Getting the CellId of a point
        2.5.1 CGAGetCellId

3. The Java library
    3.1 init
    3.2 whereAmI
    3.3 Getting the information on the particle passage through the volumes
        3.3.1 beamOn
        3.3.2 getSteps
        3.3.3 getVolumeData
    3.4 Getting the coordinates of the cell center
        3.4.1 setSD
        3.4.2 cellIndex
    3.5 Getting the CellId of a point
        3.5.1 getCellId

4. Examples
 

(Troubles and suggestions, please, contact Gabriel Musat.)

Team working on the Geant4 simulation for The Next Linear Collider:
      Henri VIDEAU
      Jean-Claude BRIENT
      Paulo Mora de Freitas
      Gabriel Musat