Analysis in the Geant4 Advanced Examples

Geant4 Advanced Examples show how to embed some common analysis operations, like booking and filling histograms and ntuples, in a simulation application.

 

Analysis in the Advanced examples is based on AIDA (Abstract Interfaces for Data Analysis).
Various analysis tools systems, implementing the AIDA interfaces, are available:

Being based on AIDA, the design and the code of the simulation application are independent from any specific analysis system; the user may choose the analysis implementation of his/her choice by loading the corresponding shared library.

Analysis with PI as an AIDA implementation

A dose distribution from a radioactive source, simulated with Geant4: the 2D histogram is produced with AIDA and Anaphe

PI is an AIDA-compliant analysis system developed in the context of the LCG project at CERN. It exploits a large fraction of the AIDA implementation formerly in Anaphe, that was previously used as an AIDA implementation in Geant4 Advanced Examples.

Geant4 Advanced Examples document how to perform the analysis of the simulation selecting PI as an Analysis Tools system.
However, one may choose  JAS or Open Scientist as an alternative AIDA implementation, without needing to change the C++ code of the examples at all.

A light version of PI, named PI-LITE, is available to simplify the installation for usage in Geant4 applications, like the Advanced Examples.

For further information about PI and its usage in Geant4 Advanced Examples contact Andreas Pfeiffer or Lorenzo Moneta.

Setting up the environment

Please refer to the README in each example directory for further information.

Design of analysis in Geant4 advanced examples

The design of the analysis is common to all the advanced examples: a singleton class is responsible for performing the analysis.

Class diagram
Sequence diagram


A. Pfeiffer, M.G. Pia - Last modified 05 July 2004