Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4ProcessManager.hh,v 2.4 1998/10/17 04:58:56 kurasige Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4ProcessManager.hh,v 1.3 1999/05/03 01:52:36 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// ------------------------------------------------------------
@@ -22,10 +22,9 @@
// Added vector of processes at rest, 06 May 1996
// ------------------------------------------------------------
// New Physics scheme 8 Jan. 1997 H.Kurahige
// 20 Apr. 1997 M.Asai
// 14 June 1997 H.Kurahige
// Add SetProcessOrdering methods 27 Mar 1998 H.Kurahige
// Add copy constructor (deep copy) 28 June 1998 H.Kurashige
// Add copy constructor (deep copy) 28 June 1998 H.Kurashige
// Add GetProcessActivation 3 May. 1999 H.Kurashige
// ------------------------------------------------------------
#ifndef G4ProcessManager_h
@@ -42,22 +41,26 @@
class G4ProcessManagerMessenger;
class G4ProcessAttribute;
// Indexes for ProcessVector
enum G4ProcessVectorTypeIndex
{
typeGPIL = 0, typeDoIt =1
typeGPIL = 0, // for GetPhysicalInteractionLength
typeDoIt =1 // for DoIt
};
enum G4ProcessVectorDoItIndex
{
idxAll = -1,
idxAtRest = 0, idxAlongStep = 1, idxPostStep =2
idxAll = -1, // for all DoIt/GPIL
idxAtRest = 0, // for AtRestDoIt/GPIL
idxAlongStep = 1, // for AlongStepDoIt/GPIL
idxPostStep =2 // for AlongSTepDoIt/GPIL
};
// enumeration for Ordering Parameter
enum G4ProcessVectorOrdering
{
ordInActive = -1,
ordDefault = INT_MAX/2,
ordLast = INT_MAX
ordInActive = -1, // ordering parameter to indicate InActive DoIt
ordDefault = INT_MAX/2, // default ordering parameter
ordLast = INT_MAX // ordering parameter to indicate the last DoIt
};
class G4ProcessManager
@@ -222,13 +225,17 @@ class G4ProcessManager
G4VProcess* RemoveProcess(G4int index);
// Removes a process from the process List.
// return value is pointer to the removed process.
// (NULL value will be returned in case of errors)
// (0 value will be returned in case of errors)
G4VProcess* SetProcessActivation(G4VProcess *aProcess, G4bool fActive);
G4VProcess* SetProcessActivation(G4int index, G4bool fActive);
// Set activation flag.
// return value is pointer to the applied process.
// (NULL value will be returned in case of errors)
// (0 value will be returned in case of errors)
G4bool GetProcessActivation(G4VProcess *aProcess) const;
G4bool GetProcessActivation(G4int index) const;
// Get activation flag.
G4ParticleDefinition* GetParticleType() const;
// get the particle type
@@ -362,7 +369,7 @@ inline
if ( ivec >=0 ) {
return theProcVector[ivec];
} else {
return NULL;
return 0;
}
}