12.07.2015 Views

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.7.2.1. Building the executableSee paragraph Section 2.7.1.Getting Started with <strong>Geant4</strong>- Running a Simple Example2.8. How to Set Up an Interactive Session2.8.1. Introduction2.8.1.1. Roles of the "intercoms" categoryThe "intercoms" category provides an expandable command interpreter. It is the key mechanism of <strong>Geant4</strong> torealize secure user interactions in all categories without being annoyed by the dependencies among categories.The <strong>Geant4</strong> commands can be used both in a interactive terminal session and in a batch mode with a maco fileor a direct C++ call.2.8.1.2. User Interfaces to steer the simulation<strong>Geant4</strong> can be controllled by a seriese of <strong>Geant4</strong> UI commands. The "intercoms" category provides the abstractclass G4UIsession that processes interactive commands. The concrete implementation of (graphical) user interfaceisis located in the "interfaces" category. This interfacing strategy opens an important door towards varioususer interface tools, and allows <strong>Geant4</strong> to utilize the state-of-the-art GUI tools such as Motif, Qt, and Java etc.The richness of the collaboration realizes various user interfaces to the <strong>Geant4</strong> command system. The followinginterfaces is currently available;1. Character terminal (dumb terminal and tcsh-like terminal), that is the default user interface of <strong>Geant4</strong>2. Xm, Xaw, Win32, Qt variations of the above terminal by using a Motif, Athena, Qt or Windows widget3. GAG, a fully graphical user interface and its network extension GainServer of the client/server type.Implementation of the user sesssions (1 and 2) is included in the source/interfaces/basic directory. As<strong>for</strong> GAG, the front-end class is included in the source/interfaces/GAG directory, while its partner GUI packageMOMO.jar is available under the environments/MOMO directory. MOMO.jar, Java archive file, contains notonly GAG, but also GGE and other helper packages. Supplementary in<strong>for</strong>mation is available from the author'sweb page (see URL below).GAG, GainServer's client GUI Gain: http://www-geant4.kek.jp/~yoshidah2.8.2. A Short Description of Available Interface Classes2.8.2.1. G4UIterminal and G4UItcsh classesThese interfaces open a session on the character terminal. G4UIterminal runs on all plat<strong>for</strong>ms supported by <strong>Geant4</strong>,including cygwin on Windows. The following built-in commands are available in G4UIterminal;cd, pwdchange, display the current command directory.ls, lclist commands and subdirectories in the current directory.historyshow previous commands.!historyIDreissue previous command.?commandshow current parameter values of the command.19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!