Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4IVContinuousDiscreteProcess.cc,v 1.5 1999/12/15 14:53:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
// $Id:
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4IVRestDiscreteProcess.cc,v 1.5 1999/12/15 14:53:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
// $Id:
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ProcTblElement.cc,v 1.4 2000/03/02 01:16:06 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4ProcTblElement.cc,v 1.5 2000/11/03 03:44:52 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -24,9 +24,8 @@
|
||||
|
||||
// default constructor ////////////////////////
|
||||
G4ProcTblElement::G4ProcTblElement()
|
||||
:pProcess(0),pProcMgrVector(0)
|
||||
{
|
||||
pProcess = 0;
|
||||
pProcMgrVector=0;
|
||||
}
|
||||
|
||||
//////////////////////////
|
||||
@@ -39,13 +38,7 @@ G4ProcTblElement::G4ProcTblElement(G4VProcess* aProcess):
|
||||
// copy constructor //////////////////////////
|
||||
G4ProcTblElement::G4ProcTblElement(const G4ProcTblElement &right)
|
||||
{
|
||||
pProcess = right.pProcess;
|
||||
// copy all contents in pProcMgrVector
|
||||
pProcMgrVector = new G4ProcMgrVector();
|
||||
G4ProcMgrVector::iterator i;
|
||||
for (i = pProcMgrVector->begin(); i!= pProcMgrVector->end(); ++i) {
|
||||
pProcMgrVector->push_back(*i);
|
||||
}
|
||||
*this = right;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +53,7 @@ G4ProcTblElement::~G4ProcTblElement()
|
||||
|
||||
|
||||
//////////////////////////
|
||||
G4ProcTblElement & G4ProcTblElement::operator=(G4ProcTblElement &right)
|
||||
G4ProcTblElement & G4ProcTblElement::operator=(const G4ProcTblElement &right)
|
||||
{
|
||||
if (this != &right) {
|
||||
pProcess = right.pProcess;
|
||||
@@ -71,7 +64,7 @@ G4ProcTblElement & G4ProcTblElement::operator=(G4ProcTblElement &right)
|
||||
}
|
||||
pProcMgrVector = new G4ProcMgrVector();
|
||||
G4ProcMgrVector::iterator i;
|
||||
for (i = pProcMgrVector->begin(); i!= pProcMgrVector->end(); ++i) {
|
||||
for (i = right.pProcMgrVector->begin(); i!= right.pProcMgrVector->end(); ++i) {
|
||||
pProcMgrVector->push_back(*i);
|
||||
}
|
||||
}
|
||||
@@ -95,3 +88,23 @@ G4int G4ProcTblElement::operator!=(const G4ProcTblElement &right) const
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ProcessAttribute.cc,v 1.3 1999/12/15 14:53:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ProcessManager.cc,v 1.15 2000/03/11 00:58:47 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4ProcessManager.cc,v 1.16 2000/06/15 15:34:12 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -87,7 +87,7 @@ G4ProcessManager::G4ProcessManager(G4ProcessManager &right)
|
||||
verboseLevel = right.verboseLevel;
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << "G4ProcessManagerMessenger:: copy constructor " <<G4endl;
|
||||
G4cout << "G4ProcessManageer:: copy constructor " <<G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ProcessManagerMessenger.cc,v 1.4 1999/12/15 14:53:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ProcessTable.cc,v 1.5 2000/03/02 01:16:06 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4ProcessTable.cc,v 1.6 2000/11/03 03:44:52 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -64,11 +64,13 @@ G4ProcessTable::~G4ProcessTable()
|
||||
|
||||
if ( fProcTblVector != 0) {
|
||||
G4ProcTableVector::iterator idx;
|
||||
for (idx=fProcTblVector->begin(); idx!=fProcTblVector->end(); ++idx) {
|
||||
|
||||
// destruction of processes has moved to G4VUserPhysicsList
|
||||
// for (idx=fProcTblVector->begin(); idx!=fProcTblVector->end(); ++idx) {
|
||||
// delete all processes
|
||||
delete (*idx)->GetProcess();
|
||||
delete (*idx);
|
||||
}
|
||||
// delete (*idx)->GetProcess();
|
||||
// delete (*idx);
|
||||
//}
|
||||
fProcTblVector ->clear();
|
||||
delete fProcTblVector;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ProcessTableMessenger.cc,v 1.7 2000/03/02 01:16:06 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// 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: G4ProcessVector.cc,v 1.2 2000/11/03 06:15:34 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// This class is a container for pointers to physics process objects.
|
||||
// ------------------------------------------------------------
|
||||
|
||||
#include "G4VProcess.hh"
|
||||
#include "G4ProcessVector.hh"
|
||||
|
||||
|
||||
/////// Constructors
|
||||
G4ProcessVector::G4ProcessVector(size_t):pProcVector(0)
|
||||
{
|
||||
pProcVector = new G4ProcVector();
|
||||
}
|
||||
|
||||
G4ProcessVector::G4ProcessVector(const G4ProcessVector& right)
|
||||
{
|
||||
*this == right;
|
||||
}
|
||||
|
||||
/////// destructor
|
||||
G4ProcessVector::~G4ProcessVector()
|
||||
{
|
||||
// delete pProcVector
|
||||
if (pProcVector != 0 ) {
|
||||
pProcVector->clear();
|
||||
delete pProcVector;
|
||||
}
|
||||
}
|
||||
|
||||
////// assignment oeprator
|
||||
G4ProcessVector & G4ProcessVector::operator=(G4ProcessVector &right)
|
||||
{
|
||||
if (this != &right) {
|
||||
// delete pProcVector
|
||||
if (pProcVector != 0 ) {
|
||||
pProcVector->clear();
|
||||
delete pProcVector;
|
||||
}
|
||||
|
||||
pProcVector = new G4ProcVector();
|
||||
|
||||
// copy all contents in pProcVector
|
||||
if (pProcVector != 0) {
|
||||
pProcVector->clear();
|
||||
delete pProcVector;
|
||||
}
|
||||
pProcVector = new G4ProcVector();
|
||||
G4ProcVector::iterator i;
|
||||
for (i = pProcVector->begin(); i!= pProcVector->end(); ++i) {
|
||||
pProcVector->push_back(*i);
|
||||
}
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VContinuousDiscreteProcess.cc,v 1.2 1999/12/15 14:53:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VContinuousProcess.cc,v 1.2 1999/12/15 14:53:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VDiscreteProcess.cc,v 1.2 1999/12/15 14:53:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VProcess.cc,v 1.4 1999/12/15 14:53:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4VProcess.cc,v 1.5 2000/11/03 07:09:31 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -34,6 +34,7 @@ G4VProcess::G4VProcess(const G4String& aName, G4ProcessType aType )
|
||||
pParticleChange(0),
|
||||
theNumberOfInteractionLengthLeft(-1.0),
|
||||
currentInteractionLength(-1.0),
|
||||
thePILfactor(1.0),
|
||||
verboseLevel(0)
|
||||
{
|
||||
pParticleChange = &aParticleChange;
|
||||
@@ -48,6 +49,7 @@ G4VProcess::G4VProcess(G4VProcess& right):
|
||||
theProcessName(right.theProcessName),
|
||||
theProcessType(right.theProcessType),
|
||||
theNumberOfInteractionLengthLeft(-1.0),
|
||||
thePILfactor(1.0),
|
||||
currentInteractionLength(-1.0)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VRestContinuousDiscreteProcess.cc,v 1.2 1999/12/15 14:53:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VRestContinuousProcess.cc,v 1.2 1999/12/15 14:53:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VRestDiscreteProcess.cc,v 1.2 1999/12/15 14:53:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VRestProcess.cc,v 1.2 1999/12/15 14:53:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user