next up previous
Next: Running G4TWIST Up: g4twist Previous: Introduction

Directory Organization & Contents

The G4TWIST package resides in cvs under triumf/G4TWIST, and can be checked out using

cvs checkout -d devel triumf/G4TWIST

and is meant to reside in the same directory as mofia, geant, and geant4 (i.e. $HOME/e614soft/triumf/G4TWIST). Several directories appear under G4TWIST; the following is a brief description of the main directories.

G4TWIST/devel/cmt

This is the directory containing the setup and make files. CMT is a Configuration Management Tool that is package oriented. A lot of the setup and configuration has been automated in this package, and it has been used for other HEP experiments such as ATLAS. To use G4TWIST the user needs to execute the setup scripts

cd $HOME/e614soft/triumf/G4TWIST/devel/cmt
source /OSC/setup_maher.csh
source setup.csh

and then compile

make
make Python

The make Python command creates the Python libraries that are needed for the Python-scripting part of the code.

The Libraries reside in

G4TWIST/devel/Linux-i686

The source code resides in

G4TWIST/devel/source

and the include files in

G4TWIST/devel/include/G4TWIST.

Note that namspaces are used here, and the namespace for the TWIST code is G4TWIST.

The directory

G4TWIST/devel/scripts

contains three scripting directories

scripts/Geant4

contains G4 macros

scripts/Python

contains Python scripts. The relevant scripts here are the ones that are used to access the geometry for the various detector components for visualization purposes. Changing these scripts or adding more scripts for geometry components that already exist in C++ does not require re-compiling.

scripts/OnX

contains OnX scripts. OnX is a hub for other packages and handles interactivity scripting and visualization. The directory contain scripts for the GUI buttons that are created for the various geometry components which in turn invoke the corresponding Python scripts in the scripts/Python directory.


next up previous
Next: Running G4TWIST Up: g4twist Previous: Introduction
Maher Quraan 2005-04-28