Import Geant4 0.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-01 15:25:35 +02:00
parent 54d6b71f95
commit b97f8d0df7
3237 changed files with 807095 additions and 0 deletions
@@ -0,0 +1,72 @@
// This code implementation is the intellectual property of
// the RD44 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: G4Alpha.cc,v 2.2 1998/09/24 11:24:53 kurasige Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// ----------------------------------------------------------------------
// GEANT 4 class implementation file
//
// For information related to this code contact:
// CERN, CN Division, ASD Group
// History: first implementation, based on object model of
// 4th April 1996, G.Cosmo
// **********************************************************************
// Added by J.L.Chuma, TRIUMF, 27 June 1996
// Added G4Alpha::AlphaDefinition() by H.Kurashige 27 June 1996
// Fixed parameters by H.Kurashige, 25 Apr 1998
// ----------------------------------------------------------------------
#include <fstream.h>
#include <iomanip.h>
#include "G4Alpha.hh"
// ######################################################################
// ### ALPHA ###
// ######################################################################
G4Alpha::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 )
: G4VIon( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
{
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
G4Alpha G4Alpha::theAlpha(
"alpha", 3.727417*GeV, 0.0*MeV, +2.0*eplus,
0, +1, 0,
0, 0, 0,
"nucleus", 0, +4, 0,
true, -1.0, NULL
);
G4Alpha* G4Alpha::AlphaDefinition(){return &theAlpha;}
// initialization for static cut values
G4double G4Alpha::theAlphaLengthCut;
G4double* G4Alpha::theAlphaKineticEnergyCuts;
@@ -0,0 +1,72 @@
// This code implementation is the intellectual property of
// the RD44 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: G4Deuteron.cc,v 2.2 1998/09/24 11:24:56 kurasige Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// ----------------------------------------------------------------------
// GEANT 4 class implementation file
//
// For information related to this code contact:
// CERN, CN Division, ASD Group
// History: first implementation, based on object model of
// 4th April 1996, G.Cosmo
// **********************************************************************
// Added by J.L.Chuma, TRIUMF, 27 June 1996
// Added G4Deuteron::DeuteronDefinition() by H.Kurashige, 27 June 1996
// Fixed parameters H. Kurashige, 25 Apr 1998
// ----------------------------------------------------------------------
#include <fstream.h>
#include <iomanip.h>
#include "G4Deuteron.hh"
// ######################################################################
// ### DEUTERON ###
// ######################################################################
G4Deuteron::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 )
: G4VIon( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
{
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
G4Deuteron G4Deuteron::theDeuteron(
"deuteron", 1.875613*GeV, 0.0*MeV, +1.0*eplus,
2, +1, 0,
0, 0, 0,
"nucleus", 0, +2, 0,
true, -1.0, NULL
);
G4Deuteron* G4Deuteron::DeuteronDefinition(){return &theDeuteron;}
// initialization for static cut values
G4double G4Deuteron::theDeuteronLengthCut;
G4double* G4Deuteron::theDeuteronKineticEnergyCuts;
@@ -0,0 +1,71 @@
// This code implementation is the intellectual property of
// the RD44 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: G4GenericIon.cc,v 2.1 1998/12/05 07:54:04 kurasige Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// ----------------------------------------------------------------------
// GEANT 4 class implementation file
//
// For information related to this code contact:
// CERN, CN Division, ASD Group
// History: first implementation, based on object model of
// 4 Dec. 98 by H.Kurashige
// ----------------------------------------------------------------------
#include <fstream.h>
#include <iomanip.h>
#include "G4GenericIon.hh"
// ######################################################################
// ### GenericIon ###
// ######################################################################
G4GenericIon::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 )
: G4VIon( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
{
}
//!!!!
//!!!! this particle is not used for tracking
//!!!! all properties except name and type are meaningless
//!!!!
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
G4GenericIon G4GenericIon::theGenericIon(
"GenericIon", 0.9382723*GeV, 0.0*MeV, eplus,
1, +1, 0,
1, +1, 0,
"nucleus", 0, +1, 0,
true, -1.0, NULL
);
G4GenericIon* G4GenericIon::GenericIonDefinition(){return &theGenericIon;}
// initialization for static cut values
G4double G4GenericIon::theGenericIonLengthCut;
G4double* G4GenericIon::theGenericIonKineticEnergyCuts;
@@ -0,0 +1,68 @@
// This code implementation is the intellectual property of
// the RD44 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: G4He3.cc,v 2.2 1998/09/24 11:24:58 kurasige Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// ----------------------------------------------------------------------
// GEANT 4 class implementation file
//
// For information related to this code contact:
// CERN, CN Division, ASD Group
// History: first implementation, based on object model of
// 24th April 1998, H.Kurashige
// **********************************************************************
// ----------------------------------------------------------------------
#include <fstream.h>
#include <iomanip.h>
#include "G4He3.hh"
// ######################################################################
// ### He3 ###
// ######################################################################
G4He3::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 )
: G4VIon( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
{
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
G4He3 G4He3::theHe3(
"He3", 2.80923*GeV, 0.0*MeV, +2.0*eplus,
1, +1, 0,
0, 0, 0,
"nucleus", 0, +3, 0,
true, -1.0, NULL
);
G4He3* G4He3::He3Definition(){return &theHe3;}
// initialization for static cut values
G4double G4He3::theHe3LengthCut;
G4double* G4He3::theHe3KineticEnergyCuts;
@@ -0,0 +1,51 @@
// This code implementation is the intellectual property of
// the RD44 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: G4IonConstructor.cc,v 2.1 1998/12/05 07:54:05 kurasige Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// --------------------------------------------------------------
// GEANT 4 class implementation file
//
#include "G4IonConstructor.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
// Nuclei
#include "G4Alpha.hh"
#include "G4Deuteron.hh"
#include "G4Triton.hh"
#include "G4He3.hh"
#include "G4GenericIon.hh"
G4IonConstructor::G4IonConstructor()
{
}
G4IonConstructor::~G4IonConstructor()
{
}
void G4IonConstructor::ConstructParticle()
{
ConstructLightIons();
}
void G4IonConstructor::ConstructLightIons()
{
// nuclei
G4Alpha::AlphaDefinition();
G4Deuteron::DeuteronDefinition();
G4Triton::TritonDefinition();
G4He3::He3Definition();
// generic ion
G4GenericIon::GenericIonDefinition();
}
@@ -0,0 +1,71 @@
// This code implementation is the intellectual property of
// the RD44 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: G4Triton.cc,v 2.2 1998/09/24 11:25:00 kurasige Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// ----------------------------------------------------------------------
// GEANT 4 class implementation file
//
// For information related to this code contact:
// CERN, CN Division, ASD Group
// History: first implementation, based on object model of
// 4th April 1996, G.Cosmo
// **********************************************************************
// Added by J.L.Chuma, TRIUMF, 27 June 1996
// Add G4Triton::TritonDefinition() by H.Kurashige 27 June 1996
// ----------------------------------------------------------------------
#include <fstream.h>
#include <iomanip.h>
#include "G4Triton.hh"
// ######################################################################
// ### TRITON ###
// ######################################################################
G4Triton::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 )
: G4VIon( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
{
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
G4Triton G4Triton::theTriton(
"triton", 2.80925*GeV, 0.0*MeV, +1.0*eplus,
1, +1, 0,
0, 0, 0,
"nucleus", 0, +3, 0,
true, -1.0, NULL
);
G4Triton* G4Triton::TritonDefinition(){return &theTriton;}
// initialization for static cut values
G4double G4Triton::theTritonLengthCut;
G4double* G4Triton::theTritonKineticEnergyCuts;
@@ -0,0 +1,27 @@
// This code implementation is the intellectual property of
// the RD44 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.cc,v 2.0 1998/07/02 17:23:04 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// --------------------------------------------------------------
// GEANT 4 class implementation file
//
// For information related to this code contact:
// CERN, CN Division, ASD Group
// History: first implementation, based on object model of
// 2nd December 1995, G.Cosmo
// --------------------------------------------------------------
#include "G4VIon.hh"
const G4VIon & G4VIon::operator=(const G4VIon &right)
{
if (this != &right) {
} return right;
}