I"w

A simple use of G4CAMP as a python module can be like this:

    from g4camp.g4camp import g4camp

    # initialize and configure
    sim = g4camp(...)
    sim.setXXX(...)
    sim.configure()

    # run simulation
    for data in app.run(n_events=10):
        particles = data.particles
        tracks = data.tracks
        photons = data.photons
        # do something else...

Also refer to an Example

## Initialization

Initilization is made by calling `g4camp()`. The arguments are the following:

- `physics`: ‘Custom’ or any standard Geant4 physics list (‘QGSP_BERT’, ‘FTFP_BERT’, and others, see Reference Physics Lists)
- `optics` (bool): enable/disable emission of Cherenkov photons. Can only be enabled for the ‘Custom’ physics.
- `primary_generator`: ‘gun’ or ‘gps’ (see Primary Modes in Introduction)
- `gun_args`: dictionary of gun source parameters:
  - `particle`: particle type (e-, e+, gamma, mu- etc.)
  - `energy`: energy in GeV
  - `position`: positio in meters
  - `direction`: X, Y, Z components of direction vector
    Note that the gun can also be configured by `SetGunXXX` methods

## Configuration

Configuration is done via `SetXXX()` methods and should be followed by method `configure()`.

- `SetDetectorHeight()`: height of the cylindrical simulation volume
- `SetDetectorRadius()`: radius of the cylindrical simulation volume

:ET