Import Geant4 8.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:36:02 +02:00
parent d93e1e39a9
commit 8a51e0bc40
5471 changed files with 99628 additions and 55248 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Alpha.hh,v 1.7 2001/10/16 08:16:05 kurasige Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4Alpha.hh,v 1.9 2005/01/14 03:49:13 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,47 +31,31 @@
// History: first implementation, based on object model of
// 4-th April 1996, G.Cosmo
// ****************************************************************
// Added particle definitions, H.Kurashige, 19 April 1996
// Revised, G.Cosmo, 6 June 1996
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// Each class inheriting from G4VIon
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4Alpha_h
#define G4Alpha_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VIon.hh"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### ALPHA ###
// ######################################################################
class G4Alpha : public G4VIon
class G4Alpha : public G4ParticleDefinition
{
private:
static G4Alpha theAlpha;
static G4Alpha* theInstance;
G4Alpha(){}
~G4Alpha(){}
public:
G4Alpha(
const G4String& aName, G4double mass,
G4double width, G4double charge,
G4int iSpin, G4int iParity,
G4int iConjugation, G4int iIsospin,
G4int iIsospin3, G4int gParity,
const G4String& pType, G4int lepton,
G4int baryon, G4int encoding,
G4bool stable, G4double lifetime,
G4DecayTable *decaytable
);
virtual ~G4Alpha();
static G4Alpha* AlphaDefinition();
static G4Alpha* Alpha();
static G4Alpha* Definition();
static G4Alpha* AlphaDefinition();
static G4Alpha* Alpha();
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Deuteron.hh,v 1.7 2001/10/16 08:16:05 kurasige Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4Deuteron.hh,v 1.9 2005/01/14 03:49:13 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,45 +31,29 @@
// History: first implementation, based on object model of
// 4-th April 1996, G.Cosmo
// ****************************************************************
// Added particle definitions, H.Kurashige, 19 April 1996
// Revised, G.Cosmo, 6 June 1996
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// Each class inheriting from G4VIon
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4Deuteron_h
#define G4Deuteron_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VIon.hh"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### DEUTERON ###
// ######################################################################
class G4Deuteron : public G4VIon
class G4Deuteron : public G4ParticleDefinition
{
private:
static G4Deuteron theDeuteron;
static G4Deuteron* theInstance;
G4Deuteron(){}
~G4Deuteron(){}
public:
G4Deuteron(
const G4String& aName, G4double mass,
G4double width, G4double charge,
G4int iSpin, G4int iParity,
G4int iConjugation, G4int iIsospin,
G4int iIsospin3, G4int gParity,
const G4String& pType, G4int lepton,
G4int baryon, G4int encoding,
G4bool stable, G4double lifetime,
G4DecayTable *decaytable
);
virtual ~G4Deuteron();
static G4Deuteron* Definition();
static G4Deuteron* DeuteronDefinition();
static G4Deuteron* Deuteron();
};
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4GenericIon.hh,v 1.7 2001/10/16 08:16:05 kurasige Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4GenericIon.hh,v 1.9 2005/01/14 03:49:13 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,44 +31,37 @@
// History: first implementation, based on object model of
// 4-th Dec 1998, H.Kurashige
// ****************************************************************
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ****************************************************************
// This class is used only by G4IonTable and not for tracking
// G4IonTable creates various ions other than alpha,deuteron,triton,
// and He3. Processes for these ions will be same as ones for
// this "GenericIon". So, user should register processes for ions
// to this class in his/her UserPhysicsList
// ----------------------------------------------------------------------
#ifndef G4GenericIon_h
#define G4GenericIon_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VIon.hh"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### GenericIon ###
// ######################################################################
class G4GenericIon : public G4VIon
class G4GenericIon : public G4ParticleDefinition
{
private:
static G4GenericIon theGenericIon;
static G4GenericIon* theInstance;
G4GenericIon(){}
~G4GenericIon(){}
public:
G4GenericIon(
const G4String& aName, G4double mass,
G4double width, G4double charge,
G4int iSpin, G4int iParity,
G4int iConjugation, G4int iIsospin,
G4int iIsospin3, G4int gParity,
const G4String& pType, G4int lepton,
G4int baryon, G4int encoding,
G4bool stable, G4double lifetime,
G4DecayTable *decaytable
);
virtual ~G4GenericIon();
static G4GenericIon* GenericIonDefinition();
static G4GenericIon* GenericIon();
static G4GenericIon* Definition();
static G4GenericIon* GenericIonDefinition();
static G4GenericIon* GenericIon();
};
#endif
+13 -26
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4He3.hh,v 1.7 2001/10/16 08:16:06 kurasige Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4He3.hh,v 1.9 2005/01/14 03:49:13 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,45 +31,32 @@
// History: first implementation, based on object model of
// 24-th April 1998,H.Kurashige
// ****************************************************************
// ----------------------------------------------------------------------
// Each class inheriting from G4VIon
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
#ifndef G4He3_h
#define G4He3_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VIon.hh"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### He3 ###
// ### He3 ###
// ######################################################################
class G4He3 : public G4VIon
class G4He3 : public G4ParticleDefinition
{
private:
static G4He3 theHe3;
static G4He3* theInstance;
G4He3(){}
~G4He3(){}
public:
G4He3(
const G4String& aName, G4double mass,
G4double width, G4double charge,
G4int iSpin, G4int iParity,
G4int iConjugation, G4int iIsospin,
G4int iIsospin3, G4int gParity,
const G4String& pType, G4int lepton,
G4int baryon, G4int encoding,
G4bool stable, G4double lifetime,
G4DecayTable *decaytable
);
virtual ~G4He3();
static G4He3* He3Definition();
static G4He3* He3();
static G4He3* Definition();
static G4He3* He3Definition();
static G4He3* He3();
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4IonConstructor.hh,v 1.3 2001/07/11 10:01:43 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4IonConstructor.hh,v 1.4 2005/09/30 22:59:05 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// --------------------------------------------------------------
@@ -37,17 +37,16 @@
class G4IonConstructor
{
//This class is a utility class for construction
//short lived particles
public:
G4IonConstructor();
~G4IonConstructor();
public:
void ConstructParticle();
static void ConstructParticle();
protected:
void ConstructLightIons();
static void ConstructLightIons();
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Triton.hh,v 1.7 2001/10/16 08:16:06 kurasige Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4Triton.hh,v 1.9 2005/01/14 03:49:13 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,50 +31,31 @@
// History: first implementation, based on object model of
// 4-th April 1996, G.Cosmo
// ****************************************************************
// Added particle definitions, H.Kurashige, 19 April 1996
// Revised, G.Cosmo, 6 June 1996
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// Each class inheriting from G4VIon
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4Triton_h
#define G4Triton_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VIon.hh"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### TRITON ###
// ######################################################################
class G4Triton : public G4VIon
class G4Triton : public G4ParticleDefinition
{
private:
static G4Triton theTriton;
static G4Triton* theInstance;
G4Triton(){}
~G4Triton(){}
public:
G4Triton(
const G4String& aName, G4double mass,
G4double width, G4double charge,
G4int iSpin, G4int iParity,
G4int iConjugation, G4int iIsospin,
G4int iIsospin3, G4int gParity,
const G4String& pType, G4int lepton,
G4int baryon, G4int encoding,
G4bool stable, G4double lifetime,
G4DecayTable *decaytable
);
virtual ~G4Triton();
static G4Triton* TritonDefinition();
static G4Triton* Triton();
static G4Triton* Definition();
static G4Triton* TritonDefinition();
static G4Triton* Triton();
};
#endif
@@ -1,104 +0,0 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * 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: G4VIon.hh,v 1.6 2004/07/26 08:17:08 kurasige Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// ------------------------------------------------------------
// GEANT 4 class header file
//
// History: first implementation, based on object model of
// 2nd December 1995, G.Cosmo
// ------------------------------------------------------------
// Revised, Hisaya Kurashige, 16 Dec 1996
// Revised, Hisaya Kurashige, 24 Feb 1997
// ----------------------------------------------------------------
#ifndef G4VIon_h
#define G4VIon_h 1
#include "G4ios.hh"
#include "globals.hh"
#include "G4ParticleDefinition.hh"
class G4VIon : public G4ParticleDefinition
{
// A virtual class for Ions particles. It defines
// public methods which describe the behavior of a
// ion.
private:
const G4VIon & operator=(const G4VIon &right);
public:
G4VIon(const G4String& aName,
G4double mass,
G4double width,
G4double charge,
G4int iSpin,
G4int iParity,
G4int iConjugation,
G4int iIsospin,
G4int iIsospinZ,
G4int gParity,
const G4String& pType,
G4int lepton,
G4int baryon,
G4int encoding,
G4bool stable,
G4double lifetime,
G4DecayTable *decaytable)
: G4ParticleDefinition(aName, mass, width, charge, iSpin, iParity,
iConjugation, iIsospin, iIsospinZ, gParity,
pType, lepton, baryon, encoding, stable,
lifetime, decaytable) {};
virtual ~G4VIon() {};
public: //With Description
G4int GetAtomicNumber() const;
G4int GetAtomicMass() const;
G4double GetExcitationEnergy() const {return 0.;}
void SetExcitationEnergy(G4double ){}
// These two methods are dummy because all particles derived from
// G4VIon is "groud state" nuclei
};
inline
G4int G4VIon::GetAtomicNumber() const
{
return int(GetPDGCharge()/eplus);
}
inline
G4int G4VIon::GetAtomicMass() const
{
return GetBaryonNumber();
}
#endif