Import Geant4 3.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:55:53 +02:00
parent e7d7193284
commit cfcb558cfe
3050 changed files with 91703 additions and 48310 deletions
+27 -13
View File
@@ -5,32 +5,46 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PointRat.cc,v 1.3 2000/01/21 13:47:51 gcosmo Exp $
// GEANT4 tag $Name: geant4-02-00 $
// $Id: G4PointRat.cc,v 1.4 2000/08/28 08:57:58 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
//
// Modif 8 oct 98 : A.Floquet
// G4PointRat datas are made of
// . a point 3D
// . a additional value : the scale factor which is set to 1 by default
// G4PointRat.cc
//
// ----------------------------------------------------------------------
#include "G4PointRat.hh"
G4PointRat::G4PointRat():pt3d(){s=1;}
G4PointRat::G4PointRat()
: pt3d(), s(1)
{
}
G4PointRat::G4PointRat(const G4Point3D& tmp):pt3d(tmp){s=1;}
G4PointRat::G4PointRat(const G4Point3D& tmp)
: pt3d(tmp), s(1)
{
}
G4PointRat::~G4PointRat(){}
G4PointRat::~G4PointRat()
{
}
void G4PointRat::operator=(const G4PointRat& a)
{ pt3d.setX(a.x());
G4PointRat& G4PointRat::operator=(const G4PointRat& a)
{
pt3d.setX(a.x());
pt3d.setY(a.y());
pt3d.setZ(a.z());
s=a.w();
return *this;
}
void G4PointRat::operator=(const G4Point3D& a)
{ pt3d = a;
G4PointRat& G4PointRat::operator=(const G4Point3D& a)
{
pt3d = a;
s=1;
return *this;
}