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: G4PBox.cc,v 1.1 1999/01/07 16:10:52 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4PBox.cc,v 1.2 1999/11/17 10:49:02 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//
@@ -20,8 +20,6 @@
#include "G4PBox.hh"
#include "G4Box.hh"
#include "G4AffineTransform.hh"
// Constructor - check & set half widths
G4PBox::G4PBox(const G4Box* theBox) : G4PCSGSolid(theBox->GetName()) {
G4double pX = theBox->GetXHalfLength();
@@ -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: G4PCSGSolid.cc,v 1.1 1999/01/07 16:10:52 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4PCSGSolid.cc,v 1.2 1999/11/17 10:49:02 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
// History:
@@ -19,9 +19,7 @@
G4PCSGSolid::G4PCSGSolid(const G4String& name) :
G4PVSolid(name)
{
}
{;}
G4PCSGSolid::~G4PCSGSolid()
{
}
{;}
@@ -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: G4PCons.cc,v 1.1 1999/01/07 16:10:52 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4PCons.cc,v 1.2 1999/11/17 10:49:02 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// class G4PCons
//
@@ -22,19 +22,8 @@
#include "G4VoxelLimits.hh"
#include "G4AffineTransform.hh"
// #include "G4PVPVParameterisation.hh"
#include "meshdefs.hh"
#include "G4VGraphicsScene.hh"
#include "G4Polyhedron.hh"
#include "G4NURBS.hh"
#include "G4NURBSbox.hh"
#include "G4VisExtent.hh"
G4PCons::~G4PCons() {
;
}
G4PCons::~G4PCons()
{;}
// make a transient object
G4VSolid* G4PCons::MakeTransientObject() const {
@@ -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: G4PHype.cc,v 1.1 1999/01/07 16:10:52 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4PHype.cc,v 1.2 1999/11/17 10:49:02 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// class G4PHype
//
@@ -17,13 +17,10 @@
#include "G4PHype.hh"
#include "G4Hype.hh"
#include "G4AffineTransform.hh"
#include "meshdefs.hh"
#define SURFACE_PRECISION (0.5*kCarTolerance)
// Constructor - check parameters, and fills protected data members
G4PHype::G4PHype(const G4Hype* theHype) : G4PCSGSolid(theHype->GetName()) {
G4PHype::G4PHype(const G4Hype* theHype)
: G4PCSGSolid(theHype->GetName())
{
const G4double newInnerRadius = theHype->GetInnerRadius();
const G4double newOuterRadius = theHype->GetOuterRadius();
@@ -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: G4PPara.cc,v 1.1 1999/01/07 16:10:53 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4PPara.cc,v 1.2 1999/11/17 10:49:03 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// class G4PPara
//
@@ -21,11 +21,10 @@
#include "G4PPara.hh"
#include "G4Para.hh"
#include "G4AffineTransform.hh"
// Constructor - check and set half-widths
G4PPara::G4PPara(const G4Para* thePara) : G4PCSGSolid(thePara->GetName())
G4PPara::G4PPara(const G4Para* thePara)
: G4PCSGSolid(thePara->GetName())
{
G4double pDx = thePara->GetXHalfLength();
G4double pDy = thePara->GetYHalfLength();
@@ -46,9 +45,7 @@ G4PPara::G4PPara(const G4Para* thePara) : G4PCSGSolid(thePara->GetName())
// ----------------------------------------------------------------------------
G4PPara::~G4PPara()
{
;
}
{;}
// ----------------------------------------------------------------------------
@@ -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: G4PSphere.cc,v 1.1 1999/01/07 16:10:53 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4PSphere.cc,v 1.3 1999/11/17 10:49:03 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
// class G4PSphere
@@ -16,20 +16,13 @@
// History:
// 19.06.98 A.Kimura Converted G4Sphere.cc
#include <assert.h>
#include "G4VSolid.hh"
#include "G4PSphere.hh"
#include "G4Sphere.hh"
#include "G4AffineTransform.hh"
#include "meshdefs.hh"
// Destructor
G4PSphere::~G4PSphere(){
;
}
G4PSphere::~G4PSphere()
{;}
// make a transient object
G4VSolid* G4PSphere::MakeTransientObject() const {
@@ -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: G4PTorus.cc,v 1.1 1999/01/07 16:10:53 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4PTorus.cc,v 1.2.2.1 1999/12/07 20:50:12 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
// class G4PTorus
@@ -20,13 +20,10 @@
#include "G4PTorus.hh"
#include "G4Torus.hh"
#include "G4AffineTransform.hh"
#include "meshdefs.hh"
// Constructor - check parameters, convert angles so 0<sphi+dpshi<=2_PI
// - note if pdphi>2PI then reset to 2PI
G4PTorus::G4PTorus(const G4Torus* theTorus)
: G4PCSGSolid(theTorus->GetName())
: G4PCSGSolid(theTorus->GetName())
{
SetAllParameters(theTorus->GetRmin(),
theTorus->GetRmax(),
@@ -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: G4PTrap.cc,v 1.1 1999/01/07 16:10:53 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4PTrap.cc,v 1.2 1999/11/17 10:49:03 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// class G4PTrap
//
@@ -21,16 +21,12 @@
#include "G4PTrap.hh"
#include "G4Trap.hh"
#include "G4AffineTransform.hh"
const G4double kCoplanar_Tolerance=1E-4;
// Destructor
G4PTrap::~G4PTrap()
{
;
}
{;}
// make a transient object
G4VSolid* G4PTrap::MakeTransientObject() const {
@@ -44,7 +40,8 @@ G4VSolid* G4PTrap::MakeTransientObject() const {
// Constructor for G4Trd
G4PTrap::G4PTrap(const G4Trap* theTrap)
: G4PCSGSolid(theTrap->GetName()) {
: G4PCSGSolid(theTrap->GetName())
{
G4double pDx1 = theTrap->GetXHalfLength1();
G4double pDx2 = theTrap->GetXHalfLength2();
@@ -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: G4PTrd.cc,v 1.1 1999/01/07 16:10:54 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4PTrd.cc,v 1.2 1999/11/17 10:49:03 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
// Implementation for G4Trd class
@@ -20,14 +20,13 @@
#include "G4PTrd.hh"
#include "G4Trd.hh"
#include "G4AffineTransform.hh"
#include <math.h>
// Constructor - check & set half widths
G4PTrd::G4PTrd(const G4Trd* theTrd) : G4PCSGSolid(theTrd->GetName())
G4PTrd::G4PTrd(const G4Trd* theTrd)
: G4PCSGSolid(theTrd->GetName())
{
G4double pdx1 = theTrd->GetXHalfLength1();
G4double pdx2 = theTrd->GetXHalfLength2();
@@ -40,7 +39,8 @@ G4PTrd::G4PTrd(const G4Trd* theTrd) : G4PCSGSolid(theTrd->GetName())
void
G4PTrd::CheckAndSetAllParameters (G4double pdx1, G4double pdx2,
G4double pdy1, G4double pdy2,
G4double pdz) {
G4double pdz)
{
if (pdx1>0&&pdx2>0&&pdy1>0&&pdy2>0&&pdz>0)
{
fDx1=pdx1; fDx2=pdx2;
@@ -70,12 +70,13 @@ G4PTrd::CheckAndSetAllParameters (G4double pdx1, G4double pdx2,
// Destructor
G4PTrd::~G4PTrd()
{}
{;}
// -----------------------------------------------------------------------
// make a transient object
G4VSolid* G4PTrd::MakeTransientObject() const {
G4VSolid* G4PTrd::MakeTransientObject() const
{
G4VSolid* transientObject = new G4Trd(GetName(),
fDx1, fDx2,
fDy1, fDy2,
@@ -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: G4PTubs.cc,v 1.1 1999/01/07 16:10:54 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4PTubs.cc,v 1.2 1999/11/17 10:49:03 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
// class G4PTubs
@@ -19,12 +19,11 @@
#include "G4PTubs.hh"
#include "G4Tubs.hh"
#include "G4AffineTransform.hh"
#include "meshdefs.hh"
// Constructor - check parameters, convert angles so 0<sphi+dpshi<=2_PI
// - note if pdphi>2PI then reset to 2PI
G4PTubs::G4PTubs(const G4Tubs* theTubs) : G4PCSGSolid(theTubs->GetName()) {
G4PTubs::G4PTubs(const G4Tubs* theTubs)
: G4PCSGSolid(theTubs->GetName())
{
G4double pRMin = theTubs->GetInnerRadius();
G4double pRMax = theTubs->GetOuterRadius();
@@ -92,7 +91,8 @@ G4PTubs::~G4PTubs()
{;}
// make a transient object
G4VSolid* G4PTubs::MakeTransientObject() const {
G4VSolid* G4PTubs::MakeTransientObject() const
{
G4VSolid* transientObject = new G4Tubs(GetName(),
fRMin, fRMax,
fDz,