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
@@ -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: G4EnergyRangeManager.hh,v 1.1 1999/01/07 16:11:35 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4EnergyRangeManager.hh,v 1.1.10.1 1999/12/07 20:51:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// Hadronic Process: Energy Range Manager
// original by H.P. Wellisch
@@ -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: G4HadronInelasticProcess.hh,v 1.1 1999/01/07 16:11:35 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4HadronInelasticProcess.hh,v 1.1.10.1 1999/12/07 20:51:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// Hadronic Inelastic Process class
// The specific particle inelastic processes derive from this class
@@ -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: G4HadronicInteraction.hh,v 1.2 1999/03/29 09:35:31 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4HadronicInteraction.hh,v 1.2.8.1 1999/12/07 20:51:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// Hadronic Interaction abstract base class
// This class is the base class for the model classes.
@@ -1,7 +1,7 @@
#ifndef G4HadronicInteractionRegistry_h
#define G4HadronicInteractionRegistry_h 1
#include <rw/tpvector.h>
#include "g4rw/tpvector.h"
#include "globals.hh"
class G4HadronicInteraction;
@@ -27,7 +27,7 @@ class G4HadronicInteractionRegistry
void AddModel(G4HadronicInteraction * aModel);
G4int nModels;
RWTPtrVector<G4HadronicInteraction> allModels;
G4RWTPtrVector<G4HadronicInteraction> allModels;
static G4HadronicInteractionRegistry theRegistry;
};
@@ -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: G4HadronicProcess.hh,v 1.1 1999/01/07 16:11:35 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4HadronicProcess.hh,v 1.4.2.1 1999/12/07 20:51:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// This is the top level Hadronic Process class
// The inelastic, elastic, capture, and fission processes
@@ -34,6 +34,9 @@
#include "G4PhysicsVector.hh"
#include "G4Nucleus.hh"
#include "G4ReactionProduct.hh"
#include "g4rw/tpordvec.h"
#include "G4VIsotopeProduction.hh"
#include "G4IsoParticleChange.hh"
class G4HadronicProcess : public G4VDiscreteProcess
{
@@ -41,10 +44,10 @@
G4HadronicProcess( const G4String &processName = "Hadronic" ) :
G4VDiscreteProcess( processName )
{ }
{ isoIsOnAnyway = 0; }
virtual ~G4HadronicProcess()
{ }
{ theProductionModels.clearAndDestroy(); }
inline void RegisterMe( G4HadronicInteraction *a )
{ GetManagerPointer()->RegisterMe( a ); }
@@ -83,6 +86,25 @@
G4double GetCurrentN()
{ return currentN; }
// Set methods for isotope production
static void EnableIsotopeProductionGlobally();
static void DisableIsotopeProductionGlobally();
void EnableIsotopeCounting() {isoIsOnAnyway = 1;}
void DisableIsotopeCounting() {isoIsOnAnyway = -1;}
void RegisterIsotopeProductionModel(G4VIsotopeProduction * aModel)
{ theProductionModels.insert(aModel); }
static G4IsoParticleChange * GetIsotopeProductionInfo()
{
G4IsoParticleChange * anIsoResult = theIsoResult;
if(theIsoResult) theOldIsoResult = theIsoResult;
theIsoResult = NULL;
return anIsoResult;
}
protected:
@@ -95,11 +117,33 @@
G4Nucleus targetNucleus;
private:
G4VParticleChange * DoIsotopeCounting(G4VParticleChange * aResult,
const G4Track & aTrack,
const G4Nucleus & aNucleus);
G4IsoResult * ExtractResidualNucleus(const G4Track & aTrack,
const G4Nucleus & aNucleus,
G4VParticleChange * aResult);
private:
G4double currentZ;
G4double currentN;
G4HadronicProcess *dispatch;
// swiches for isotope production
static G4bool isoIsEnabled; // true or false; local swich overrides
G4int isoIsOnAnyway; // true(1), false(-1) or default(0)
G4IsoParticleChange theIsoPC;
G4RWTPtrOrderedVector<G4VIsotopeProduction> theProductionModels;
static G4IsoParticleChange * theIsoResult;
static G4IsoParticleChange * theOldIsoResult;
};
#endif
@@ -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: G4InelasticInteraction.hh,v 1.1 1999/01/07 16:11:36 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4InelasticInteraction.hh,v 1.1.10.1 1999/12/07 20:51:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// Hadronic Process: Inelastic Interaction
// This class is an abstract base class, since the pure virtual
@@ -0,0 +1,34 @@
#ifndef G4IsoParticleChange_h
#define G4IsoParticleChange_h
#include "G4Nucleus.hh"
class G4IsoParticleChange
{
public:
void SetIsotope(const G4String & anIsotope) {theIsotope = anIsotope;}
void SetProductionPosition(const G4ThreeVector & aPosition) {thePosition = aPosition;}
void SetProductionTime(const G4double & aProductionTime) {theProductionTime = aProductionTime; }
void SetParentParticle(const G4DynamicParticle & aProjectile) {theProjectile = aProjectile; }
void SetMotherNucleus(const G4Nucleus & aTarget) {theTarget = aTarget; }
void SetProducer(const G4String & aProducer) { theProducer = aProducer; }
G4String GetIsotope() {return theIsotope;}
G4ThreeVector GetProductionPosition() {return thePosition;}
G4double GetProductionTime() {return theProductionTime;}
G4DynamicParticle GetParentParticle() {return theProjectile;}
G4Nucleus GetMotherNucleus() {return theTarget;}
G4String GetProducer() {return theProducer;}
private:
G4String theIsotope;
G4ThreeVector thePosition;
G4double theProductionTime;
G4DynamicParticle theProjectile;
G4Nucleus theTarget;
G4String theProducer;
};
#endif
@@ -0,0 +1,22 @@
#ifndef G4VIsotopeProduction_h
#define G4VIsotopeProduction_h 1
#include "G4IsoResult.hh"
#include "G4Track.hh"
#include "G4Nucleus.hh"
class G4VIsotopeProduction
{
public:
virtual G4IsoResult * GetIsotope(const G4Track & aTrack, const G4Nucleus & aNucleus) = 0;
G4bool operator == (const G4VIsotopeProduction & aProd)
{
G4bool result = false;
if(&aProd==this) result = true;
return result;
}
};
#endif