Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -88,6 +88,9 @@ class G4GenericPolycone : public G4VCSGfaceted
|
||||
const G4AffineTransform& pTransform,
|
||||
G4double& pmin, G4double& pmax) const;
|
||||
|
||||
G4double GetCubicVolume();
|
||||
G4double GetSurfaceArea();
|
||||
|
||||
G4ThreeVector GetPointOnSurface() const;
|
||||
|
||||
G4GeometryType GetEntityType() const;
|
||||
@@ -135,6 +138,8 @@ class G4GenericPolycone : public G4VCSGfaceted
|
||||
|
||||
// Methods for random point generation
|
||||
|
||||
void SetSurfaceElements() const;
|
||||
|
||||
protected: // without description
|
||||
|
||||
// Here are our parameters
|
||||
@@ -145,9 +150,10 @@ class G4GenericPolycone : public G4VCSGfaceted
|
||||
G4int numCorner; // number RZ points
|
||||
G4PolyconeSideRZ* corners = nullptr; // corner r,z points
|
||||
|
||||
// Our quick test
|
||||
G4EnclosingCylinder* enclosingCylinder = nullptr; // Our quick test
|
||||
|
||||
G4EnclosingCylinder* enclosingCylinder = nullptr;
|
||||
struct surface_element { G4double area = 0.; G4int i0 = 0, i1 = 0, i2 = 0; };
|
||||
mutable std::vector<surface_element>* fElements = nullptr;
|
||||
};
|
||||
|
||||
#include "G4GenericPolycone.icc"
|
||||
|
||||
@@ -106,6 +106,9 @@ class G4Polycone : public G4VCSGfaceted
|
||||
const G4AffineTransform& pTransform,
|
||||
G4double& pmin, G4double& pmax) const;
|
||||
|
||||
G4double GetCubicVolume();
|
||||
G4double GetSurfaceArea();
|
||||
|
||||
G4ThreeVector GetPointOnSurface() const;
|
||||
|
||||
void ComputeDimensions( G4VPVParameterisation* p,
|
||||
@@ -161,23 +164,7 @@ class G4Polycone : public G4VCSGfaceted
|
||||
|
||||
// Methods for random point generation
|
||||
|
||||
G4ThreeVector GetPointOnCone(G4double fRmin1, G4double fRmax1,
|
||||
G4double fRmin2, G4double fRmax2,
|
||||
G4double zOne, G4double zTwo,
|
||||
G4double& totArea) const;
|
||||
|
||||
G4ThreeVector GetPointOnTubs(G4double fRMin, G4double fRMax,
|
||||
G4double zOne, G4double zTwo,
|
||||
G4double& totArea) const;
|
||||
|
||||
G4ThreeVector GetPointOnCut(G4double fRMin1, G4double fRMax1,
|
||||
G4double fRMin2, G4double fRMax2,
|
||||
G4double zOne, G4double zTwo,
|
||||
G4double& totArea) const;
|
||||
|
||||
G4ThreeVector GetPointOnRing(G4double fRMin, G4double fRMax,
|
||||
G4double fRMin2, G4double fRMax2,
|
||||
G4double zOne) const;
|
||||
void SetSurfaceElements() const;
|
||||
|
||||
protected: // without description
|
||||
|
||||
@@ -190,10 +177,10 @@ class G4Polycone : public G4VCSGfaceted
|
||||
G4PolyconeSideRZ* corners = nullptr; // Corner r,z points
|
||||
G4PolyconeHistorical* original_parameters = nullptr; // Original input params
|
||||
|
||||
// Our quick test
|
||||
|
||||
G4EnclosingCylinder* enclosingCylinder = nullptr;
|
||||
G4EnclosingCylinder* enclosingCylinder = nullptr; // Our quick test
|
||||
|
||||
struct surface_element { G4double area = 0.; G4int i0 = 0, i1 = 0, i2 = 0; };
|
||||
mutable std::vector<surface_element>* fElements = nullptr;
|
||||
};
|
||||
|
||||
#include "G4Polycone.icc"
|
||||
|
||||
@@ -115,6 +115,9 @@ class G4Polyhedra : public G4VCSGfaceted
|
||||
|
||||
G4VSolid* Clone() const;
|
||||
|
||||
G4double GetCubicVolume();
|
||||
G4double GetSurfaceArea();
|
||||
|
||||
G4ThreeVector GetPointOnSurface() const;
|
||||
|
||||
std::ostream& StreamInfo( std::ostream& os ) const;
|
||||
@@ -172,11 +175,7 @@ class G4Polyhedra : public G4VCSGfaceted
|
||||
|
||||
// Methods for generation of random points on surface
|
||||
|
||||
G4ThreeVector GetPointOnPlane(G4ThreeVector p0, G4ThreeVector p1,
|
||||
G4ThreeVector p2, G4ThreeVector p3) const;
|
||||
G4ThreeVector GetPointOnTriangle(G4ThreeVector p0, G4ThreeVector p1,
|
||||
G4ThreeVector p2) const;
|
||||
G4ThreeVector GetPointOnSurfaceCorners() const;
|
||||
void SetSurfaceElements() const;
|
||||
|
||||
protected: // without description
|
||||
|
||||
@@ -190,6 +189,9 @@ class G4Polyhedra : public G4VCSGfaceted
|
||||
G4PolyhedraHistorical* original_parameters = nullptr; // original input params
|
||||
|
||||
G4EnclosingCylinder* enclosingCylinder = nullptr;
|
||||
|
||||
struct surface_element { G4double area = 0.; G4int i0 = 0, i1 = 0, i2 = 0; };
|
||||
mutable std::vector<surface_element>* fElements = nullptr;
|
||||
};
|
||||
|
||||
#include "G4Polyhedra.icc"
|
||||
|
||||
Reference in New Issue
Block a user