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
+43 -42
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Alpha.cc,v 1.8 2003/06/16 16:57:21 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4Alpha.cc,v 1.10 2005/01/14 03:49:13 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -31,59 +31,60 @@
// 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
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include <fstream>
#include <iomanip>
#include "G4Alpha.hh"
#include "G4ParticleTable.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 )
G4Alpha* G4Alpha::theInstance = 0;
G4Alpha* G4Alpha::Definition()
{
SetParticleSubType("static");
if (theInstance !=0) return theInstance;
const G4String name = "alpha";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// 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
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 3.727417*GeV, 0.0*MeV, +2.0*eplus,
0, +1, 0,
0, 0, 0,
"nucleus", 0, +4, 0,
true, -1.0, NULL,
false, "static"
);
anInstance->SetAtomicNumber(2);
anInstance->SetAtomicMass(4);
}
theInstance = reinterpret_cast<G4Alpha*>(anInstance);
return theInstance;
}
G4Alpha::~G4Alpha()
G4Alpha* G4Alpha::AlphaDefinition()
{
return Definition();
}
// ......................................................................
// ... 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::Alpha()
{
return Definition();
}
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;}
G4Alpha* G4Alpha::Alpha(){return &theAlpha;}
+43 -42
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Deuteron.cc,v 1.8 2003/06/16 16:57:22 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4Deuteron.cc,v 1.10 2005/01/14 03:49:13 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -31,59 +31,60 @@
// 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
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include <fstream>
#include <iomanip>
#include "G4Deuteron.hh"
#include "G4ParticleTable.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 )
G4Deuteron* G4Deuteron::theInstance = 0;
G4Deuteron* G4Deuteron::Definition()
{
SetParticleSubType("static");
if (theInstance !=0) return theInstance;
const G4String name = "deuteron";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// 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
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 1.875613*GeV, 0.0*MeV, +1.0*eplus,
2, +1, 0,
0, 0, 0,
"nucleus", 0, +2, 0,
true, -1.0, NULL,
false, "static"
);
anInstance->SetAtomicNumber(1);
anInstance->SetAtomicMass(2);
}
theInstance = reinterpret_cast<G4Deuteron*>(anInstance);
return theInstance;
}
G4Deuteron::~G4Deuteron()
G4Deuteron* G4Deuteron::DeuteronDefinition()
{
return Definition();
}
// ......................................................................
// ... 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::Deuteron()
{
return Definition();
}
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;}
G4Deuteron* G4Deuteron::Deuteron(){return &theDeuteron;}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4GenericIon.cc,v 1.8 2003/06/16 16:57:23 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4GenericIon.cc,v 1.10 2005/01/14 03:49:13 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -31,59 +31,59 @@
// History: first implementation, based on object model of
// 4 Dec. 98 by H.Kurashige
// ----------------------------------------------------------------------
#include <fstream>
#include <iomanip>
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include "G4GenericIon.hh"
#include "G4ParticleTable.hh"
// ######################################################################
// ### GenericIon ###
// ### GenericIon ###
// ######################################################################
G4GenericIon* G4GenericIon::theInstance = 0;
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 )
G4GenericIon* G4GenericIon::Definition()
{
SetParticleSubType("generic");
}
G4GenericIon::~G4GenericIon()
{
}
if (theInstance !=0) return theInstance;
const G4String name = "GenericIon";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// 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
// shortlived subType anti_encoding
//!!!!
//!!!! this particle is not used for tracking
//!!!! this particle should not be 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,
anInstance = new G4ParticleDefinition(
name, 0.9382723*GeV, 0.0*MeV, eplus,
1, +1, 0,
1, +1, 0,
"nucleus", 0, +1, 0,
true, -1.0, NULL
);
true, -1.0, NULL,
false, "generic"
);
}
theInstance = reinterpret_cast<G4GenericIon*>(anInstance);
return theInstance;
}
G4GenericIon* G4GenericIon::GenericIonDefinition()
{
return Definition();
}
G4GenericIon* G4GenericIon::GenericIon()
{
return Definition();
}
G4GenericIon* G4GenericIon::GenericIonDefinition(){return &theGenericIon;}
G4GenericIon* G4GenericIon::GenericIon(){return &theGenericIon;}
+47 -43
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4He3.cc,v 1.8 2003/06/16 16:57:24 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4He3.cc,v 1.10 2005/01/14 03:49:13 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -31,56 +31,60 @@
// History: first implementation, based on object model of
// 24th April 1998, H.Kurashige
// **********************************************************************
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include <fstream>
#include <iomanip>
#include "G4He3.hh"
#include "G4ParticleTable.hh"
// ######################################################################
// ### He3 ###
// ### 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 )
{
SetParticleSubType("static");
}
G4He3* G4He3::theInstance = 0;
G4He3::~G4He3()
G4He3* G4He3::Definition()
{
if (theInstance !=0) return theInstance;
const G4String name = "He3";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// 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
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 2.80923*GeV, 0.0*MeV, +2.0*eplus,
1, +1, 0,
0, 0, 0,
"nucleus", 0, +3, 0,
true, -1.0, NULL,
false, "static"
);
anInstance->SetAtomicNumber(2);
anInstance->SetAtomicMass(3);
}
theInstance = reinterpret_cast<G4He3*>(anInstance);
return theInstance;
}
G4He3* G4He3::He3Definition()
{
return Definition();
}
G4He3* G4He3::He3()
{
return Definition();
}
// ......................................................................
// ... 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;}
G4He3* G4He3::He3(){return &theHe3;}
@@ -22,7 +22,7 @@
//
//
// $Id: G4IonConstructor.cc,v 1.3 2001/07/11 10:01:44 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// --------------------------------------------------------------
+43 -41
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Triton.cc,v 1.8 2003/06/16 16:57:25 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4Triton.cc,v 1.10 2005/01/14 03:49:13 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -31,58 +31,60 @@
// 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
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include <fstream>
#include <iomanip>
#include "G4Triton.hh"
#include "G4ParticleTable.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 )
G4Triton* G4Triton::theInstance = 0;
G4Triton* G4Triton::Definition()
{
SetParticleSubType("static");
if (theInstance !=0) return theInstance;
const G4String name = "triton";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// 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
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 2.80925*GeV, 0.0*MeV, +1.0*eplus,
1, +1, 0,
0, 0, 0,
"nucleus", 0, +3, 0,
true, -1.0, NULL,
false, "static"
);
anInstance->SetAtomicNumber(1);
anInstance->SetAtomicMass(3);
}
theInstance = reinterpret_cast<G4Triton*>(anInstance);
return theInstance;
}
G4Triton::~G4Triton()
G4Triton* G4Triton::TritonDefinition()
{
return Definition();
}
// ......................................................................
// ... 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::Triton()
{
return Definition();
}
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;}
G4Triton* G4Triton::Triton(){return &theTriton;}
@@ -1,41 +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.cc,v 1.3 2001/07/11 10:01:44 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// --------------------------------------------------------------
// GEANT 4 class implementation file
//
// 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;
}