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
+36 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4GRSVolume.cc,v 1.2 1999/12/15 14:50:26 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// $Id: G4GRSVolume.cc,v 1.3 2000/11/01 16:51:09 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
//
// class G4GRSVolume Implementation
@@ -17,3 +17,37 @@ G4GRSVolume::~G4GRSVolume()
{
delete frot; // safe if null
}
G4GRSVolume::G4GRSVolume(const G4GRSVolume& right)
{
if ((&right) && (&right != this))
{
fvol = right.fvol;
ftlate = right.ftlate;
if (frot)
{
delete frot;
frot = 0;
}
if (right.frot)
frot = new G4RotationMatrix(*(right.frot));
}
}
G4GRSVolume& G4GRSVolume::operator=(const G4GRSVolume& right)
{
if (&right == this) return *this;
if (&right)
{
fvol = right.fvol;
ftlate = right.ftlate;
if (frot)
{
delete frot;
frot = 0;
}
if (right.frot)
frot = new G4RotationMatrix(*(right.frot));
}
return *this;
}