Import Geant4 5.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:57:27 +02:00
parent 330b82b769
commit 37fff30d2e
5733 changed files with 263867 additions and 74574 deletions
+24 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.43 2002/06/07 17:37:43 asaim Exp $
$Id: History,v 1.50 2002/12/05 16:25:34 asaim Exp $
-------------------------------------------------------------------
=========================================================
@@ -16,6 +16,29 @@ committal in the CVS repository !
----------------------------------------------------------
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
Dec 4, 2002, M.Asai (intercoms-V04-01-04, intercoms-V04-01-05)
- Migration to new G4ApplicationState.
Nov 27, 2002, M.Asai (intercoms-V04-01-03)
- Fix memory leak in G4UIcommand.hh.
Nov 20, 2002, G.Cosmo (intercoms-V04-01-02)
- Patched access to public static data in G4VGlobalFastSimulationManager
and G4VVisManager. Added static accessors to be used in the kernel to
allow porting on Windows DLLs.
Nov 01, 2002, M.Asai (intercoms-V04-01-01)
- Tagged for Geant4 5.0
Oct 29, 2002, M.Asai
- Fixed uninitialized data member in G4UIcommand.cc
Oct 17, 2002, J.Allison (intercoms-V04-01-00 with vis-V04-01-02)
- Added two new pure virtual functions to G4VGraphicsScene:
AddThis(const G4VTrajectory&)
AddThis(const G4VHit&)
Jun 7, 2002, M.Asai (intercoms-V04-00-04)
- Fix for a warning message in G4UIbatch.
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIaliasList.hh,v 1.4 2002/04/26 22:03:34 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#ifndef G4UIaliasList_h
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIbatch.hh,v 1.6 2002/06/07 17:37:44 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
// $id$
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWith3Vector.hh,v 1.5 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWith3VectorAndUnit.hh,v 1.5 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWithABool.hh,v 1.5 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWithADouble.hh,v 1.5 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWithADoubleAndUnit.hh,v 1.5 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWithAString.hh,v 1.4 2001/07/11 10:01:12 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWithAnInteger.hh,v 1.5 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWithoutParameter.hh,v 1.4 2001/07/11 10:01:13 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
+3 -4
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UIcommand.hh,v 1.11 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4UIcommand.hh,v 1.12 2002/11/27 18:05:33 asaim Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -130,8 +130,7 @@ class G4UIcommand
// of the parameters is the order of invoking this method.
inline void SetGuidance(const char * aGuidance)
{
G4String * theGuidance = new G4String( aGuidance );
commandGuidance.push_back( *theGuidance );
commandGuidance.push_back( G4String( aGuidance ) );
}
// Adds a guidance line. Unlimitted number of invokation of this method is
// allowed. The given lines of guidance will appear for the help. The first
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcommandStatus.hh,v 1.4 2001/10/04 23:15:27 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#ifndef G4UIcommandStatus_h
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcommandTree.hh,v 1.13 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#ifndef G4UIcommandTree_h
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcontrolMessenger.hh,v 1.10 2002/05/15 06:51:31 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#ifndef G4UIcontrolMessenger_h
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIdirectory.hh,v 1.4 2001/07/11 10:01:14 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UImanager.hh,v 1.19 2002/05/14 01:40:10 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#ifndef G4UImanager_h
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UImessenger.hh,v 1.6 2001/10/11 13:29:16 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#ifndef G4UImessenger_h
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIparameter.hh,v 1.6 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// ---------------------------------------------------------------------
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIsession.hh,v 1.4 2001/07/11 10:01:14 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
// $id$
+3 -3
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UItokenNum.hh,v 1.4 2001/10/16 08:14:31 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4UItokenNum.hh,v 1.5 2002/11/27 19:08:09 asaim Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
// G4UItokenNum.hh
@@ -56,7 +56,7 @@ typedef struct yystype {
char C;
G4String S;
G4int operator==(const yystype &right) const
{ return (this == &right); }
{ return (this == &right)?1:0; }
} yystype;
#endif
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UnitsMessenger.hh,v 1.4 2001/07/11 10:01:15 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
// class description
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4VFlavoredParallelWorld.hh,v 1.3 2001/07/11 10:01:15 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// Abstract interface for GEANT4 Flavored Parallel World.
@@ -21,13 +21,15 @@
// ********************************************************************
//
//
// $Id: G4VGlobalFastSimulationManager.hh,v 1.3 2001/07/11 10:01:15 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4VGlobalFastSimulationManager.hh,v 1.4 2002/11/20 14:46:00 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// Abstract interface for GEANT4 Global Fast Simulation Manager.
// P. Mora de Freitas & M. Verderi 14/April/1999.
//
// Class description:
//
// G4GlobalFastSimulationManager is a "Singleton", i.e., only one instance
// of it may exist. This is ensured by making the constructor private.
//
@@ -54,29 +56,29 @@
class G4VFlavoredParallelWorld;
class G4ParticleDefinition;
class G4VGlobalFastSimulationManager {
class G4VGlobalFastSimulationManager
{
public: // with description
public:
// Returns pointer to actual Global Fast Simulation manager if
// at least a parameterisation envelope exists. Always check value.
static G4VGlobalFastSimulationManager* GetConcreteInstance ();
// Returns pointer to actual Global Fast Simulation manager if
// at least a parameterisation envelope exists. Always check value.
virtual ~G4VGlobalFastSimulationManager () {}
// VGlobalFastSimulationManager Interface for visualisation.
virtual
G4VFlavoredParallelWorld* GetFlavoredWorldForThis(G4ParticleDefinition*)=0;
// VGlobalFastSimulationManager interface for visualisation.
protected:
// Pointer to real G4GlobalFastSimulationManager.
static void SetConcreteInstance (G4VGlobalFastSimulationManager*);
// Sets the pointer to actual Global Fast Simulation manager.
static G4VGlobalFastSimulationManager* fpConcreteInstance;
// Pointer to real G4GlobalFastSimulationManager.
};
inline
G4VGlobalFastSimulationManager*
G4VGlobalFastSimulationManager::GetConcreteInstance () {
return fpConcreteInstance;
}
#endif
+6 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VGraphicsScene.hh,v 1.8 2001/08/14 18:19:14 johna Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4VGraphicsScene.hh,v 1.9 2002/10/24 14:11:04 johna Exp $
// GEANT4 tag $Name: geant4-05-00 $
// John Allison 19th July 1996
//
// Class Description:
@@ -47,6 +47,8 @@ class G4Torus;
class G4PhysicalVolumeModel;
class G4Polycone;
class G4Polyhedra;
class G4VTrajectory;
class G4VHit;
class G4Polyline;
class G4Scale;
class G4Text;
@@ -88,6 +90,8 @@ public: // With description
virtual void AddThis (const G4Polycone&) = 0;
virtual void AddThis (const G4Polyhedra&) = 0;
virtual void AddThis (const G4VSolid&) = 0; // For solids not above.
virtual void AddThis (const G4VTrajectory&) = 0;
virtual void AddThis (const G4VHit&) = 0;
///////////////////////////////////////////////////////////////////
// Functions for adding graphics primitives to the scene handler.
+5 -6
View File
@@ -21,11 +21,12 @@
// ********************************************************************
//
//
// $Id: G4VVisManager.hh,v 1.6 2001/08/17 22:49:26 johna Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4VVisManager.hh,v 1.7 2002/11/20 14:46:00 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// John Allison 19/Oct/1996.
//
// Class Description:
//
// G4VVisManager is an abstract interface for the GEANT4 Visualization Manager.
// The inheritance hierarchy is:
// G4VVisManager <- G4VisManager <- YourVisManager
@@ -144,12 +145,10 @@ public: // With description
protected:
static void SetConcreteInstance (G4VVisManager*);
static G4VVisManager* fpConcreteInstance; // Pointer to real G4VisManager.
};
inline G4VVisManager* G4VVisManager::GetConcreteInstance () {
return fpConcreteInstance;
}
#endif
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIaliasList.cc,v 1.5 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#include "G4UIaliasList.hh"
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIbatch.cc,v 1.11 2002/06/07 17:37:44 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#include "G4UIbatch.hh"
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWith3Vector.cc,v 1.4 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWith3VectorAndUnit.cc,v 1.4 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWithABool.cc,v 1.4 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWithADouble.cc,v 1.4 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWithADoubleAndUnit.cc,v 1.4 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWithAString.cc,v 1.3 2001/07/11 10:01:16 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWithAnInteger.cc,v 1.4 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcmdWithoutParameter.cc,v 1.3 2001/07/11 10:01:16 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
+12 -10
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UIcommand.cc,v 1.19 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4UIcommand.cc,v 1.21 2002/12/05 16:25:34 asaim Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -35,11 +35,13 @@
#include "G4Tokenizer.hh"
#include "G4ios.hh"
G4UIcommand::G4UIcommand():paramERR(0) { }
G4UIcommand::G4UIcommand()
:messenger(0),token(IDENTIFIER),paramERR(0)
{;}
G4UIcommand::G4UIcommand(const char * theCommandPath,
G4UImessenger * theMessenger)
:messenger(theMessenger), paramERR(0)
:messenger(theMessenger),token(IDENTIFIER),paramERR(0)
{
G4String comStr = theCommandPath;
if(!theMessenger)
@@ -55,12 +57,12 @@ G4UIcommand::G4UIcommand(const char * theCommandPath,
G4UIcommandCommonConstructorCode (comStr);
G4String nullString;
availabelStateList.clear();
availabelStateList.push_back(PreInit);
availabelStateList.push_back(Init);
availabelStateList.push_back(Idle);
availabelStateList.push_back(GeomClosed);
availabelStateList.push_back(EventProc);
availabelStateList.push_back(Abort);
availabelStateList.push_back(G4State_PreInit);
availabelStateList.push_back(G4State_Init);
availabelStateList.push_back(G4State_Idle);
availabelStateList.push_back(G4State_GeomClosed);
availabelStateList.push_back(G4State_EventProc);
availabelStateList.push_back(G4State_Abort);
}
void G4UIcommand::G4UIcommandCommonConstructorCode
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcommandTree.cc,v 1.11 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#include "G4UIcommandTree.hh"
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcontrolMessenger.cc,v 1.9 2002/05/15 06:51:32 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#include <stdlib.h>
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIdirectory.cc,v 1.3 2001/07/11 10:01:16 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
+6 -6
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UImanager.cc,v 1.26 2002/05/15 06:51:32 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4UImanager.cc,v 1.27 2002/12/04 18:30:43 asaim Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// ---------------------------------------------------------------------
@@ -457,14 +457,14 @@ G4bool G4UImanager::Notify(G4ApplicationState requestedState)
//G4cout << G4StateManager::GetStateManager()->GetStateString(requestedState) << " <--- " << G4StateManager::GetStateManager()->GetStateString(G4StateManager::GetStateManager()->GetPreviousState()) << G4endl;
if(pauseAtBeginOfEvent)
{
if(requestedState==EventProc &&
G4StateManager::GetStateManager()->GetPreviousState()==GeomClosed)
if(requestedState==G4State_EventProc &&
G4StateManager::GetStateManager()->GetPreviousState()==G4State_GeomClosed)
{ PauseSession("BeginOfEvent"); }
}
if(pauseAtEndOfEvent)
{
if(requestedState==GeomClosed &&
G4StateManager::GetStateManager()->GetPreviousState()==EventProc)
if(requestedState==G4State_GeomClosed &&
G4StateManager::GetStateManager()->GetPreviousState()==G4State_EventProc)
{ PauseSession("EndOfEvent"); }
}
return true;
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UImessenger.cc,v 1.3 2001/07/11 10:01:16 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#include "G4UImessenger.hh"
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIparameter.cc,v 1.11 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#include "G4UIparameter.hh"
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIsession.cc,v 1.4 2001/07/11 10:01:17 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// ---------------------------------------------------------------------
+3 -3
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UnitsMessenger.cc,v 1.3 2001/07/11 10:01:17 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4UnitsMessenger.cc,v 1.4 2002/12/04 18:30:43 asaim Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -44,7 +44,7 @@ G4UnitsMessenger::G4UnitsMessenger()
ListCmd = new G4UIcmdWithoutParameter("/units/list",this);
ListCmd->SetGuidance("full list of available units.");
ListCmd->AvailableForStates(Idle);
ListCmd->AvailableForStates(G4State_Idle);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VGlobalFastSimulationManager.cc,v 1.3 2001/07/11 10:01:17 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4VGlobalFastSimulationManager.cc,v 1.4 2002/11/20 14:46:01 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// Abstract interface for GEANT4 Global Fast Simulation Manager.
@@ -32,3 +32,16 @@
G4VGlobalFastSimulationManager*
G4VGlobalFastSimulationManager::fpConcreteInstance = 0;
G4VGlobalFastSimulationManager*
G4VGlobalFastSimulationManager::GetConcreteInstance ()
{
return fpConcreteInstance;
}
void
G4VGlobalFastSimulationManager::
SetConcreteInstance (G4VGlobalFastSimulationManager* m)
{
fpConcreteInstance = m;
}
+12 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VVisManager.cc,v 1.4 2001/07/11 10:01:17 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4VVisManager.cc,v 1.5 2002/11/20 14:46:01 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// Abstract interface for GEANT4 Visualization Manager.
@@ -33,3 +33,13 @@
G4VVisManager::~G4VVisManager () {}
G4VVisManager* G4VVisManager::fpConcreteInstance = 0;
G4VVisManager* G4VVisManager::GetConcreteInstance ()
{
return fpConcreteInstance;
}
void G4VVisManager::SetConcreteInstance (G4VVisManager* m)
{
fpConcreteInstance = m;
}