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
+7 -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: G4o.cc,v 1.3 1999/05/18 10:56:53 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4o.cc,v 1.4.2.1.2.1 1999/12/07 20:46:52 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
/*
#define DEBUG
@@ -15,6 +15,10 @@
#include <stdio.h>
#include <string.h>
// GB : put this include before the GL ones.
// It avoid a clash with STL includes on Linux.
#include "g4rw/tvhdict.h"
// Geant4 :
#include <G4VPhysicalVolume.hh>
#include <G4LogicalVolume.hh>
+7 -3
View File
@@ -1,18 +1,22 @@
// 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: G4oDrawer.cc,v 1.2 1999/04/16 10:03:36 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4oDrawer.cc,v 1.3.2.1.2.1 1999/12/07 20:46:52 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
/*
From geant4/visualization/management/src/G4VisManager.cc.
*/
#include <stddef.h>
// GB : put this include before the GL ones.
// It avoid a clash with STL includes on Linux.
#include "g4rw/tvhdict.h"
#include <G4oDrawer.hh>
/*G4*/
+7 -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: G4oScene.cc,v 1.2 1999/04/16 10:03:38 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4oScene.cc,v 1.3.2.1.2.1 1999/12/07 20:46:52 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
/* +---------------------- Copyright notice -------------------------------+ */
/* | Copyright (C) 1995, Guy Barrand, LAL Orsay, (barrand@lal.in2p3.fr) | */
@@ -25,6 +25,10 @@
#include <stdio.h>
#endif
// GB : put this include before the GL ones.
// It avoid a clash with STL includes on Linux.
#include "g4rw/tvhdict.h"
/*Co*/
#include <CPrinter.h>
#include <CString.h>
+34 -17
View File
@@ -1,16 +1,18 @@
// 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: G4oState.cc,v 1.2 1999/04/16 10:03:39 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4oState.cc,v 1.3.2.1.2.1 1999/12/07 20:46:52 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//#define DEBUG
//#include "G4ios.hh"
// GB : put this include before the GL ones.
// It avoid a clash with STL includes on Linux.
#include "g4rw/tvhdict.h"
//G4
#include <globals.hh>
@@ -35,27 +37,42 @@ G4oState::G4oState(
G4UImanager::GetUIpointer()->SetSession(this); //So that Pause works..
}
/***************************************************************************/
G4oState::~G4oState(
)
/***************************************************************************/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
}
/***************************************************************************/
G4bool G4oState::Notify (
G4ApplicationState requestedState
)
/***************************************************************************/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
G4StateManager* statM = G4StateManager::GetStateManager();
G4StateManager* statM = G4StateManager::GetStateManager();
G4ApplicationState previousState = statM->GetPreviousState();
if(previousState==Idle && requestedState==GeomClosed) { //beginOfRun
G4String string = "RunBegin.osh";
OShellExecuteFile (G4oGetShell(),(char*)(name + string).data());
} else if(previousState==GeomClosed && requestedState==Idle) { //endOfRun
G4String string = "RunEnd.osh";
OShellExecuteFile (G4oGetShell(),(char*)(name + string).data());
} else if(previousState==GeomClosed && requestedState==EventProc) { //beginOfEvent
G4String string = "EventBegin.osh";
OShellExecuteFile (G4oGetShell(),(char*)(name + string).data());
} else if(previousState==EventProc && requestedState==GeomClosed) { // EndOfEvent
G4String string = "EventEnd.osh";
OShellExecuteFile (G4oGetShell(),(char*)(name + string).data());
if(previousState==Idle && requestedState==GeomClosed) {
//beginOfRun
G4String string = name;
string += "RunBegin.osh";
OShellExecuteFile (G4oGetShell(),(char*)string.data());
} else if(previousState==GeomClosed && requestedState==Idle) {
//endOfRun
G4String string = name;
string += "RunEnd.osh";
OShellExecuteFile (G4oGetShell(),(char*)string.data());
} else if(previousState==GeomClosed && requestedState==EventProc) {
//beginOfEvent
G4String string = name;
string += "EventBegin.osh";
OShellExecuteFile (G4oGetShell(),(char*)string.data());
} else if(previousState==EventProc && requestedState==GeomClosed) {
// EndOfEvent
G4String string = name;
string += "EventEnd.osh";
OShellExecuteFile (G4oGetShell(),(char*)string.data());
}
return true;