Import Geant4 9.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:58:43 +02:00
parent 96c8bcd0af
commit b79225fb37
7544 changed files with 245407 additions and 91099 deletions
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4IVContinuousDiscreteProcess.cc,v 1.9 2006/06/29 21:08:02 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4IVContinuousDiscreteProcess.cc,v 1.10 2007/11/15 04:10:18 kurasige Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
// $Id:
// --------------------------------------------------------------
@@ -48,8 +48,8 @@ G4IVContinuousDiscreteProcess::G4IVContinuousDiscreteProcess()
G4IVContinuousDiscreteProcess::G4IVContinuousDiscreteProcess(const G4String& aName , G4ProcessType aType)
: G4VProcess(aName, aType),BIGSTEP(1.e10)
{
enableAtRestDoIt = false;
}
G4IVContinuousDiscreteProcess::~G4IVContinuousDiscreteProcess()
{
}
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4IVRestDiscreteProcess.cc,v 1.9 2006/06/29 21:08:04 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4IVRestDiscreteProcess.cc,v 1.10 2007/11/15 04:10:18 kurasige Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
// $Id:
// --------------------------------------------------------------
@@ -49,6 +49,7 @@ G4IVRestDiscreteProcess::G4IVRestDiscreteProcess()
G4IVRestDiscreteProcess::G4IVRestDiscreteProcess(const G4String& aName , G4ProcessType aType)
: G4VProcess(aName, aType),BIGSTEP(1.e10)
{
enableAlongStepDoIt = false;
}
G4IVRestDiscreteProcess::~G4IVRestDiscreteProcess()
@@ -25,7 +25,7 @@
//
//
// $Id: G4ProcTblElement.cc,v 1.7 2006/06/29 21:08:06 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// ------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: G4ProcessAttribute.cc,v 1.5 2006/06/29 21:08:08 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// ------------------------------------------------------------
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4ProcessManager.cc,v 1.34 2007/11/28 17:47:57 kurasige Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4ProcessManager.cc,v 1.36 2008/03/20 02:57:09 kurasige Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// --------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: G4ProcessManagerMessenger.cc,v 1.10 2006/06/29 21:08:12 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
//---------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: G4ProcessTable.cc,v 1.13 2007/10/06 05:33:58 kurasige Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// ------------------------------------------------------------
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4ProcessTableMessenger.cc,v 1.17 2006/06/29 21:08:16 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4ProcessTableMessenger.cc,v 1.18 2008/03/14 02:55:04 kurasige Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
//
//---------------------------------------------------------------
@@ -437,7 +437,8 @@ void G4ProcessTableMessenger::SetNumberOfProcessType()
G4int idx;
for (idx = 0; idx < 1000 ; idx ++ ) {
G4String typeName = G4VProcess::GetProcessTypeName(G4ProcessType(idx));
if ( isFoundEndMark = typeName.contains("---")) break;
isFoundEndMark = typeName.contains("---");
if ( isFoundEndMark ) break;
}
if ( isFoundEndMark ) {
NumberOfProcessType = idx;
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4ProcessVector.cc,v 1.4 2006/06/29 21:08:18 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4ProcessVector.cc,v 1.5 2008/06/23 08:58:26 gcosmo Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// ------------------------------------------------------------
@@ -37,11 +37,11 @@
#include "G4VProcess.hh"
#include "G4ProcessVector.hh"
/////// Constructors
G4ProcessVector::G4ProcessVector(size_t):pProcVector(0)
//
G4ProcessVector::G4ProcessVector(size_t)
{
pProcVector = new G4ProcVector();
pProcVector = new G4ProcVector();
}
G4ProcessVector::G4ProcessVector(const G4ProcessVector& right)
@@ -50,21 +50,28 @@ G4ProcessVector::G4ProcessVector(const G4ProcessVector& right)
}
/////// destructor
//
G4ProcessVector::~G4ProcessVector()
{
// delete pProcVector
if (pProcVector != 0 ) {
//
if (pProcVector != 0 )
{
pProcVector->clear();
delete pProcVector;
}
}
////// assignment oeprator
//
G4ProcessVector & G4ProcessVector::operator=(G4ProcessVector &right)
{
if (this != &right) {
if (this != &right)
{
// delete pProcVector
if (pProcVector != 0 ) {
//
if (pProcVector != 0 )
{
pProcVector->clear();
delete pProcVector;
}
@@ -72,17 +79,12 @@ G4ProcessVector & G4ProcessVector::operator=(G4ProcessVector &right)
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) {
for (i = pProcVector->begin(); i!= pProcVector->end(); ++i)
{
pProcVector->push_back(*i);
}
}
return *this;
}
@@ -25,7 +25,7 @@
//
//
// $Id: G4VContinuousDiscreteProcess.cc,v 1.6 2007/10/02 08:23:20 kurasige Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// --------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: G4VContinuousProcess.cc,v 1.5 2007/10/02 08:23:20 kurasige Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// --------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: G4VDiscreteProcess.cc,v 1.6 2007/10/02 08:23:20 kurasige Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// --------------------------------------------------------------
+18 -10
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VProcess.cc,v 1.15 2007/10/02 08:23:20 kurasige Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4VProcess.cc,v 1.16 2007/11/15 04:10:18 kurasige Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// --------------------------------------------------------------
@@ -51,11 +51,13 @@ G4VProcess::G4VProcess(const G4String& aName, G4ProcessType aType )
currentInteractionLength(-1.0),
theProcessName(aName),
theProcessType(aType),
theProcessSubType(-1),
thePILfactor(1.0),
enableAtRestDoIt(true),
enableAlongStepDoIt(true),
enablePostStepDoIt(true),
enableAtRestDoIt(true),
enableAlongStepDoIt(true),
enablePostStepDoIt(true),
verboseLevel(0)
{
pParticleChange = &aParticleChange;
}
@@ -70,11 +72,12 @@ G4VProcess::G4VProcess(const G4VProcess& right)
currentInteractionLength(-1.0),
theProcessName(right.theProcessName),
theProcessType(right.theProcessType),
theProcessSubType(right.theProcessSubType),
thePILfactor(1.0),
enableAtRestDoIt(true),
enableAlongStepDoIt(true),
enablePostStepDoIt(true),
verboseLevel(right.verboseLevel)
enableAtRestDoIt(right.enableAtRestDoIt),
enableAlongStepDoIt(right.enableAlongStepDoIt),
enablePostStepDoIt(right.enablePostStepDoIt),
verboseLevel(right.verboseLevel)
{
}
@@ -84,6 +87,10 @@ void G4VProcess::SubtractNumberOfInteractionLengthLeft(
{
if (currentInteractionLength>0.0) {
theNumberOfInteractionLengthLeft -= previousStepSize/currentInteractionLength;
if(theNumberOfInteractionLengthLeft<0.) {
theNumberOfInteractionLengthLeft=perMillion;
}
} else {
#ifdef G4VERBOSE
if (verboseLevel>0) {
@@ -181,7 +188,8 @@ G4int G4VProcess::operator!=(const G4VProcess &right) const
void G4VProcess::DumpInfo() const
{
G4cout << "Process Name " << theProcessName ;
G4cout << " : Type[" << GetProcessTypeName(theProcessType) << "]"<< G4endl;
G4cout << " : Type[" << GetProcessTypeName(theProcessType) << "]";
G4cout << " : SubType[" << theProcessSubType << "]"<< G4endl;
}
@@ -25,7 +25,7 @@
//
//
// $Id: G4VRestContinuousDiscreteProcess.cc,v 1.6 2007/10/02 08:23:20 kurasige Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// --------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: G4VRestContinuousProcess.cc,v 1.6 2007/10/02 08:23:20 kurasige Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// --------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: G4VRestDiscreteProcess.cc,v 1.6 2007/10/02 08:23:20 kurasige Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// --------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: G4VRestProcess.cc,v 1.6 2007/10/02 08:23:20 kurasige Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// --------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: G4WrapperProcess.cc,v 1.1 2007/12/12 10:09:49 gcosmo Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// ------------------------------------------------------------