Import Geant4 10.3.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2016-06-30 14:12:05 +02:00
parent a654a7ab1f
commit 4ec577e5c4
2021 changed files with 100995 additions and 78277 deletions
@@ -48,10 +48,12 @@
#include "G4USolid.hh"
#if defined(G4GEOM_USE_USOLIDS)
#if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
#include "UTet.hh"
#include "G4Polyhedron.hh"
class G4UTet : public G4USolid
{
@@ -68,6 +70,8 @@ class G4UTet : public G4USolid
inline UTet* GetShape() const;
inline G4GeometryType GetEntityType() const;
public: // without description
G4UTet(__void__&);
@@ -79,7 +83,9 @@ class G4UTet : public G4USolid
G4UTet& operator=(const G4UTet& rhs);
// Copy constructor and assignment operator.
inline std::vector<G4ThreeVector> GetVertices() const;
G4Polyhedron* CreatePolyhedron() const;
std::vector<G4ThreeVector> GetVertices() const;
// Return the four vertices of the shape.
};
@@ -92,16 +98,9 @@ inline UTet* G4UTet::GetShape() const
return (UTet*) fShape;
}
inline std::vector<G4ThreeVector> G4UTet::GetVertices() const
inline G4GeometryType G4UTet::GetEntityType() const
{
std::vector<UVector3> vec = GetShape()->GetVertices();
std::vector<G4ThreeVector> vertices;
for (unsigned int i=0; i<vec.size(); ++i)
{
G4ThreeVector v(vec[i].x(), vec[i].y(), vec[i].z());
vertices.push_back(v);
}
return vertices;
return "G4Tet";
}
#endif // G4GEOM_USE_USOLIDS