Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Gismo Class Reference

Provide an interface to the simulation classes GISMO. More...

#include <Gismo.h>

List of all members.

Public Methods

 Gismo (float size, Generator* gen , gui::DisplayControl* dcon)
Gismo& addMaterialPath (const char* path)
 add a new path to find .mat files to that established by the PEGS4PATH environment variable. More...

Gismo& setKEcutoff (float)
 set default minimum kinetic energy. More...

Gismo& setMaxStep (float)
 can be overridden by a Medium, or an Interactor. More...

Gismo& addInteractor (Interactor*)
 Default for charged particles is energy loss without fluctuations and naive multiple scattering. More...

Gismo& setGenerator (Generator* gen)
 replace current generator with a new one. More...

Gismo& setField (Field* field)
 set the field, which will be used by all contained media. Default: none. More...

void finishSetup ()
 setup tasks just before start of run. More...

void generate ()
 simply generate an event. More...

Generatorevent () const
 access to current generator. More...

const char* eventTitle () const
 return a title for the generated event. More...

 ~Gismo ()
 Destructor cleans up, if it is important. More...


Static Public Methods

Gismo* instance ()

Private Attributes

Worldm_world
Generatorm_generator

Static Private Attributes

Gismo* s_instance = 0


Detailed Description

Provide an interface to the simulation classes GISMO.

Definition at line 16 of file Gismo.h.


Constructor & Destructor Documentation

Gismo::Gismo ( float size,
Generator * gen,
gui::DisplayControl * dc )
 

Parameters:
size   the dimension of the World box that must enclose all subsequent volumes. The World is then accessible as a singleton.
generator   an initial generator
dcon   The display controller used to set up graphical displays of particles, detector, responses.

Definition at line 78 of file Gismo.cxx.

Gismo::~Gismo ( )
 

Destructor cleans up, if it is important.

Definition at line 187 of file Gismo.cxx.


Member Function Documentation

Gismo & Gismo::addInteractor ( Interactor * inter )
 

Default for charged particles is energy loss without fluctuations and naive multiple scattering.

Definition at line 113 of file Gismo.cxx.

Gismo & Gismo::addMaterialPath ( const char * path )
 

add a new path to find .mat files to that established by the PEGS4PATH environment variable.

Definition at line 108 of file Gismo.cxx.

Referenced by Gismo().

Generator * Gismo::event ( ) const
 

access to current generator.

Definition at line 182 of file Gismo.cxx.

Referenced by Gismo::PrintPDT::execute(), and Gismo::PrintEvent::execute().

const char * Gismo::eventTitle ( ) const
 

return a title for the generated event.

Definition at line 169 of file Gismo.cxx.

void Gismo::finishSetup ( )
 

setup tasks just before start of run.

Definition at line 141 of file Gismo.cxx.

void Gismo::generate ( )
 

simply generate an event.

Definition at line 159 of file Gismo.cxx.

Gismo * Gismo::instance ( ) [static]
 

Definition at line 151 of file Gismo.cxx.

Referenced by Gismo::PrintPDT::execute(), and Gismo::PrintEvent::execute().

Gismo & Gismo::setField ( Field * field )
 

set the field, which will be used by all contained media. Default: none.

Definition at line 133 of file Gismo.cxx.

Gismo & Gismo::setGenerator ( Generator * gen )
 

replace current generator with a new one.

Definition at line 127 of file Gismo.cxx.

Gismo & Gismo::setKEcutoff ( float e )
 

set default minimum kinetic energy.

Definition at line 118 of file Gismo.cxx.

Referenced by Gismo().

Gismo & Gismo::setMaxStep ( float step )
 

can be overridden by a Medium, or an Interactor.

Definition at line 123 of file Gismo.cxx.

Referenced by Gismo().


Member Data Documentation

Generator * Gismo::m_generator [private]
 

Definition at line 73 of file Gismo.h.

World * Gismo::m_world [private]
 

Definition at line 72 of file Gismo.h.

Gismo * Gismo::s_instance = 0 [static, private]
 

Definition at line 150 of file Gismo.cxx.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:20:29 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000