Import Geant4 1.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:28:20 +02:00
parent aaa409b6ee
commit ca1c8cb059
2995 changed files with 106830 additions and 299600 deletions
@@ -1,5 +1,5 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VBasicShell.hh,v 1.3 1999/04/16 10:06:05 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4VBasicShell.hh,v 1.4.4.1 1999/12/07 20:49:09 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef G4VBasicShell_H
@@ -18,6 +18,19 @@ class G4UIcommand;
#include "G4UIsession.hh"
#include "globals.hh"
// Class description :
//
// G4VBasicShell : a base class to extract common things to various
// sessions.
//
// It handles "seek" completion logic, help logic.
// VBasicShell handles also commands like "cd, ls, pwd"
// without passing by a Geant4 "intercom" command. This feature,
// which is similar to a UNIX shell one, had given.
// its name to the class.
//
// Class description - end :
class G4VBasicShell : public G4UIsession
{
public:
@@ -1,5 +1,5 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
@@ -9,12 +9,22 @@
#ifndef G4VInteractiveSession_H
#define G4VInteractiveSession_H 1
#include <rw/tvhdict.h>
#include "g4std/map"
#include "G4VInteractorManager.hh"
class G4UImessenger;
// Class description :
//
// G4VInteractiveSession : a base class to isolate common things
// to various graphical "basic" G4UI sessions ; AddMenu, AddButton,
// a dictionnary for widgets.
// The word "interactor" is for "piece of user interface" or
// "widget" (which means nothing).
//
// Class description - end :
class G4VInteractiveSession {
public:
G4VInteractiveSession();
@@ -25,7 +35,8 @@ public:
G4Interactor GetInteractor(G4String);
private:
G4UImessenger* messenger;
RWTValHashDictionary<G4String,G4Interactor> interactors;
typedef G4std::map<G4String,G4Interactor, G4std::less<G4String> > G4interactor_map;
G4interactor_map interactors;
};
#endif
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VInteractorManager.hh,v 1.3 1999/04/16 10:06:06 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4VInteractorManager.hh,v 1.5.4.1 1999/12/07 20:49:10 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// G.Barrand
@@ -14,12 +14,22 @@
#define G4VINTERACTORMANAGER_HH
#include "globals.hh"
#include <rw/tvordvec.h>
#include "g4std/vector"
typedef void* G4Interactor;
typedef G4bool (*G4DispatchFunction)(void*);
typedef void (*G4SecondaryLoopAction)();
// Class description :
//
// G4VInteractorManager : a base class to isolate common things
// to various GUI "toolkits" like WIndows, Xt.
// The word "interactor" is for "piece of user interface" or
// "widget" (which means nothing). Then a GUI "toolkit" could be
// defined as a manager of interactors.
//
// Class description - end :
class G4VInteractorManager {
public:
G4VInteractorManager ();
@@ -56,10 +66,10 @@ private:
int argc;
char** argv;
G4Interactor mainInteractor;
RWTValOrderedVector<G4DispatchFunction> dispatchers;
RWTValOrderedVector<G4SecondaryLoopAction> preActions;
RWTValOrderedVector<G4SecondaryLoopAction> postActions;
RWTValOrderedVector<G4Interactor> shells;
G4std::vector<G4DispatchFunction> dispatchers;
G4std::vector<G4SecondaryLoopAction> preActions;
G4std::vector<G4SecondaryLoopAction> postActions;
G4std::vector<G4Interactor> shells;
G4bool secondaryLoopEnabled;
G4bool alreadyInSecondaryLoop;
int exitSecondaryLoop;
+11 -3
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Win32.hh,v 1.3 1999/05/07 10:34:11 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4Win32.hh,v 1.4.4.1 1999/12/07 20:49:10 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// To unify Windows message treatment between
// G4/interfaces Windows sessions and G4/visualizations Windows drivers.
@@ -22,6 +22,14 @@
#include "G4VInteractorManager.hh"
// Class description :
//
// G4Win32 : a singleton to handle GUI sessions and visualization
// drivers built over Windows. It permits to have one Windows main
// loop for the whole application.
//
// Class description - end :
class G4Win32 : public G4VInteractorManager {
public:
static G4Win32* getInstance ();
+19 -10
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Xt.hh,v 1.2 1999/04/13 01:26:31 yhajime Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4Xt.hh,v 1.3.4.1 1999/12/07 20:49:10 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// To unify X11 event treatment between
// G4/interfaces Xt sessions and G4/visualizations Xt drivers.
@@ -21,15 +21,24 @@
#include "G4VInteractorManager.hh"
// Class description :
//
// G4Xt : a singleton to handle GUI sessions and visualization
// drivers built over Xt. It permits to have one Xt main loop for
// the whole application. The Xt toolkit is inited in the
// constructor. It is done once for the whole application.
//
// Class description - end :
class G4Xt : public G4VInteractorManager {
public:
static G4Xt* getInstance ();
static G4Xt* getInstance (int,char**,char*);
void PutStringInResourceDatabase (char*);
G4bool Inited ();
void* GetEvent ();
void FlushAndWaitExecution ();
virtual ~G4Xt ();
static G4Xt* getInstance();
static G4Xt* getInstance(int,char**,char*);
void PutStringInResourceDatabase(char*);
G4bool Inited();
void* GetEvent();
void FlushAndWaitExecution();
virtual ~G4Xt();
private:
G4Xt (int,char**,char*);
static G4Xt* instance; // Pointer to single instance.