Import Geant4 10.3.0.beta source tree
This commit is contained in:
@@ -44,9 +44,10 @@
|
||||
|
||||
#include "G4USolid.hh"
|
||||
|
||||
#if defined(G4GEOM_USE_USOLIDS)
|
||||
#if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
|
||||
|
||||
#include "UBox.hh"
|
||||
|
||||
#include "G4Polyhedron.hh"
|
||||
|
||||
class G4UBox : public G4USolid
|
||||
@@ -66,13 +67,17 @@ class G4UBox : public G4USolid
|
||||
|
||||
inline UBox* GetShape() const;
|
||||
|
||||
inline G4double GetXHalfLength() const;
|
||||
inline G4double GetYHalfLength() const;
|
||||
inline G4double GetZHalfLength() const;
|
||||
G4double GetXHalfLength() const;
|
||||
G4double GetYHalfLength() const;
|
||||
G4double GetZHalfLength() const;
|
||||
|
||||
inline void SetXHalfLength(G4double dx);
|
||||
inline void SetYHalfLength(G4double dy);
|
||||
inline void SetZHalfLength(G4double dz);
|
||||
void SetXHalfLength(G4double dx);
|
||||
void SetYHalfLength(G4double dy);
|
||||
void SetZHalfLength(G4double dz);
|
||||
|
||||
inline G4GeometryType GetEntityType() const;
|
||||
|
||||
G4Polyhedron* CreatePolyhedron() const;
|
||||
|
||||
public: // without description
|
||||
|
||||
@@ -95,33 +100,9 @@ inline UBox* G4UBox::GetShape() const
|
||||
return (UBox*) fShape;
|
||||
}
|
||||
|
||||
inline G4double G4UBox::GetXHalfLength() const
|
||||
inline G4GeometryType G4UBox::GetEntityType() const
|
||||
{
|
||||
return GetShape()->GetXHalfLength();
|
||||
}
|
||||
inline G4double G4UBox::GetYHalfLength() const
|
||||
{
|
||||
return GetShape()->GetYHalfLength();
|
||||
}
|
||||
inline G4double G4UBox::GetZHalfLength() const
|
||||
{
|
||||
return GetShape()->GetZHalfLength();
|
||||
}
|
||||
|
||||
inline void G4UBox::SetXHalfLength(G4double dx)
|
||||
{
|
||||
GetShape()->SetXHalfLength(dx);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UBox::SetYHalfLength(G4double dy)
|
||||
{
|
||||
GetShape()->SetYHalfLength(dy);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UBox::SetZHalfLength(G4double dz)
|
||||
{
|
||||
GetShape()->SetZHalfLength(dz);
|
||||
fRebuildPolyhedron = true;
|
||||
return "G4Box";
|
||||
}
|
||||
|
||||
#endif // G4GEOM_USE_USOLIDS
|
||||
|
||||
@@ -45,9 +45,10 @@
|
||||
|
||||
#include "G4USolid.hh"
|
||||
|
||||
#if defined(G4GEOM_USE_USOLIDS)
|
||||
#if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
|
||||
|
||||
#include "UCons.hh"
|
||||
|
||||
#include "G4Polyhedron.hh"
|
||||
|
||||
class G4UCons : public G4USolid
|
||||
@@ -71,21 +72,25 @@ class G4UCons : public G4USolid
|
||||
|
||||
inline UCons* GetShape() const;
|
||||
|
||||
inline G4double GetInnerRadiusMinusZ() const;
|
||||
inline G4double GetOuterRadiusMinusZ() const;
|
||||
inline G4double GetInnerRadiusPlusZ() const;
|
||||
inline G4double GetOuterRadiusPlusZ() const;
|
||||
inline G4double GetZHalfLength() const;
|
||||
inline G4double GetStartPhiAngle() const;
|
||||
inline G4double GetDeltaPhiAngle() const;
|
||||
G4double GetInnerRadiusMinusZ() const;
|
||||
G4double GetOuterRadiusMinusZ() const;
|
||||
G4double GetInnerRadiusPlusZ() const;
|
||||
G4double GetOuterRadiusPlusZ() const;
|
||||
G4double GetZHalfLength() const;
|
||||
G4double GetStartPhiAngle() const;
|
||||
G4double GetDeltaPhiAngle() const;
|
||||
|
||||
inline void SetInnerRadiusMinusZ (G4double Rmin1 );
|
||||
inline void SetOuterRadiusMinusZ (G4double Rmax1 );
|
||||
inline void SetInnerRadiusPlusZ (G4double Rmin2 );
|
||||
inline void SetOuterRadiusPlusZ (G4double Rmax2 );
|
||||
inline void SetZHalfLength (G4double newDz );
|
||||
inline void SetStartPhiAngle (G4double newSPhi, G4bool trig=true);
|
||||
inline void SetDeltaPhiAngle (G4double newDPhi);
|
||||
void SetInnerRadiusMinusZ (G4double Rmin1 );
|
||||
void SetOuterRadiusMinusZ (G4double Rmax1 );
|
||||
void SetInnerRadiusPlusZ (G4double Rmin2 );
|
||||
void SetOuterRadiusPlusZ (G4double Rmax2 );
|
||||
void SetZHalfLength (G4double newDz );
|
||||
void SetStartPhiAngle (G4double newSPhi, G4bool trig=true);
|
||||
void SetDeltaPhiAngle (G4double newDPhi);
|
||||
|
||||
inline G4GeometryType GetEntityType() const;
|
||||
|
||||
G4Polyhedron* CreatePolyhedron() const;
|
||||
|
||||
public: // without description
|
||||
|
||||
@@ -108,69 +113,9 @@ inline UCons* G4UCons::GetShape() const
|
||||
return (UCons*) fShape;
|
||||
}
|
||||
|
||||
inline G4double G4UCons::GetInnerRadiusMinusZ() const
|
||||
inline G4GeometryType G4UCons::GetEntityType() const
|
||||
{
|
||||
return GetShape()->GetInnerRadiusMinusZ();
|
||||
}
|
||||
inline G4double G4UCons::GetOuterRadiusMinusZ() const
|
||||
{
|
||||
return GetShape()->GetOuterRadiusMinusZ();
|
||||
}
|
||||
inline G4double G4UCons::GetInnerRadiusPlusZ() const
|
||||
{
|
||||
return GetShape()->GetInnerRadiusPlusZ();
|
||||
}
|
||||
inline G4double G4UCons::GetOuterRadiusPlusZ() const
|
||||
{
|
||||
return GetShape()->GetOuterRadiusPlusZ();
|
||||
}
|
||||
inline G4double G4UCons::GetZHalfLength() const
|
||||
{
|
||||
return GetShape()->GetZHalfLength();
|
||||
}
|
||||
inline G4double G4UCons::GetStartPhiAngle() const
|
||||
{
|
||||
return GetShape()->GetStartPhiAngle();
|
||||
}
|
||||
inline G4double G4UCons::GetDeltaPhiAngle() const
|
||||
{
|
||||
return GetShape()->GetDeltaPhiAngle();
|
||||
}
|
||||
|
||||
inline void G4UCons::SetInnerRadiusMinusZ(G4double Rmin1)
|
||||
{
|
||||
GetShape()->SetInnerRadiusMinusZ(Rmin1);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UCons::SetOuterRadiusMinusZ(G4double Rmax1)
|
||||
{
|
||||
GetShape()->SetOuterRadiusMinusZ(Rmax1);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UCons::SetInnerRadiusPlusZ(G4double Rmin2)
|
||||
{
|
||||
GetShape()->SetInnerRadiusPlusZ(Rmin2);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UCons::SetOuterRadiusPlusZ(G4double Rmax2)
|
||||
{
|
||||
GetShape()->SetOuterRadiusPlusZ(Rmax2);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UCons::SetZHalfLength(G4double newDz)
|
||||
{
|
||||
GetShape()->SetZHalfLength(newDz);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UCons::SetStartPhiAngle(G4double newSPhi, G4bool trig)
|
||||
{
|
||||
GetShape()->SetStartPhiAngle(newSPhi, trig);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UCons::SetDeltaPhiAngle(G4double newDPhi)
|
||||
{
|
||||
GetShape()->SetDeltaPhiAngle(newDPhi);
|
||||
fRebuildPolyhedron = true;
|
||||
return "G4Cons";
|
||||
}
|
||||
|
||||
#endif // G4GEOM_USE_USOLIDS
|
||||
|
||||
@@ -44,9 +44,10 @@
|
||||
|
||||
#include "G4USolid.hh"
|
||||
|
||||
#if defined(G4GEOM_USE_USOLIDS)
|
||||
#if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
|
||||
|
||||
#include "UOrb.hh"
|
||||
|
||||
#include "G4Polyhedron.hh"
|
||||
|
||||
class G4UOrb : public G4USolid
|
||||
@@ -65,8 +66,12 @@ class G4UOrb : public G4USolid
|
||||
|
||||
inline UOrb* GetShape() const;
|
||||
|
||||
inline G4double GetRadius() const;
|
||||
inline void SetRadius(G4double newRmax);
|
||||
G4double GetRadius() const;
|
||||
void SetRadius(G4double newRmax);
|
||||
|
||||
inline G4GeometryType GetEntityType() const;
|
||||
|
||||
G4Polyhedron* CreatePolyhedron() const;
|
||||
|
||||
public: // without description
|
||||
|
||||
@@ -89,15 +94,9 @@ inline UOrb* G4UOrb::GetShape() const
|
||||
return (UOrb*) fShape;
|
||||
}
|
||||
|
||||
inline G4double G4UOrb::GetRadius() const
|
||||
inline G4GeometryType G4UOrb::GetEntityType() const
|
||||
{
|
||||
return GetShape()->GetRadius();
|
||||
}
|
||||
|
||||
inline void G4UOrb::SetRadius(G4double newRmax)
|
||||
{
|
||||
GetShape()->SetRadius(newRmax);
|
||||
fRebuildPolyhedron = true;
|
||||
return "G4Orb";
|
||||
}
|
||||
|
||||
#endif // G4GEOM_USE_USOLIDS
|
||||
|
||||
@@ -44,9 +44,10 @@
|
||||
|
||||
#include "G4USolid.hh"
|
||||
|
||||
#if defined(G4GEOM_USE_USOLIDS)
|
||||
#if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
|
||||
|
||||
#include "USphere.hh"
|
||||
|
||||
#include "G4Polyhedron.hh"
|
||||
|
||||
class G4USphere : public G4USolid
|
||||
@@ -69,20 +70,24 @@ class G4USphere : public G4USolid
|
||||
G4VSolid* Clone() const;
|
||||
|
||||
inline USphere* GetShape() const;
|
||||
|
||||
inline G4double GetInnerRadius () const;
|
||||
inline G4double GetOuterRadius () const;
|
||||
inline G4double GetStartPhiAngle () const;
|
||||
inline G4double GetDeltaPhiAngle () const;
|
||||
inline G4double GetStartThetaAngle() const;
|
||||
inline G4double GetDeltaThetaAngle() const;
|
||||
|
||||
inline void SetInnerRadius (G4double newRMin);
|
||||
inline void SetOuterRadius (G4double newRmax);
|
||||
inline void SetStartPhiAngle (G4double newSphi, G4bool trig=true);
|
||||
inline void SetDeltaPhiAngle (G4double newDphi);
|
||||
inline void SetStartThetaAngle(G4double newSTheta);
|
||||
inline void SetDeltaThetaAngle(G4double newDTheta);
|
||||
G4double GetInnerRadius () const;
|
||||
G4double GetOuterRadius () const;
|
||||
G4double GetStartPhiAngle () const;
|
||||
G4double GetDeltaPhiAngle () const;
|
||||
G4double GetStartThetaAngle() const;
|
||||
G4double GetDeltaThetaAngle() const;
|
||||
|
||||
void SetInnerRadius (G4double newRMin);
|
||||
void SetOuterRadius (G4double newRmax);
|
||||
void SetStartPhiAngle (G4double newSphi, G4bool trig=true);
|
||||
void SetDeltaPhiAngle (G4double newDphi);
|
||||
void SetStartThetaAngle(G4double newSTheta);
|
||||
void SetDeltaThetaAngle(G4double newDTheta);
|
||||
|
||||
inline G4GeometryType GetEntityType() const;
|
||||
|
||||
G4Polyhedron* CreatePolyhedron() const;
|
||||
|
||||
public: // without description
|
||||
|
||||
@@ -106,60 +111,9 @@ inline USphere* G4USphere::GetShape() const
|
||||
return (USphere*) fShape;
|
||||
}
|
||||
|
||||
inline G4double G4USphere::GetInnerRadius() const
|
||||
inline G4GeometryType G4USphere::GetEntityType() const
|
||||
{
|
||||
return GetShape()->GetInnerRadius();
|
||||
}
|
||||
inline G4double G4USphere::GetOuterRadius() const
|
||||
{
|
||||
return GetShape()->GetOuterRadius();
|
||||
}
|
||||
inline G4double G4USphere::GetStartPhiAngle() const
|
||||
{
|
||||
return GetShape()->GetStartPhiAngle();
|
||||
}
|
||||
inline G4double G4USphere::GetDeltaPhiAngle() const
|
||||
{
|
||||
return GetShape()->GetDeltaPhiAngle();
|
||||
}
|
||||
inline G4double G4USphere::GetStartThetaAngle() const
|
||||
{
|
||||
return GetShape()->GetStartThetaAngle();
|
||||
}
|
||||
inline G4double G4USphere::GetDeltaThetaAngle() const
|
||||
{
|
||||
return GetShape()->GetDeltaThetaAngle();
|
||||
}
|
||||
|
||||
inline void G4USphere::SetInnerRadius(G4double newRMin)
|
||||
{
|
||||
GetShape()->SetInnerRadius(newRMin);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4USphere::SetOuterRadius(G4double newRmax)
|
||||
{
|
||||
GetShape()->SetOuterRadius(newRmax);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4USphere::SetStartPhiAngle(G4double newSphi, G4bool trig)
|
||||
{
|
||||
GetShape()->SetStartPhiAngle(newSphi, trig);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4USphere::SetDeltaPhiAngle(G4double newDphi)
|
||||
{
|
||||
GetShape()->SetDeltaPhiAngle(newDphi);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4USphere::SetStartThetaAngle(G4double newSTheta)
|
||||
{
|
||||
GetShape()->SetStartThetaAngle(newSTheta);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4USphere::SetDeltaThetaAngle(G4double newDTheta)
|
||||
{
|
||||
GetShape()->SetDeltaThetaAngle(newDTheta);
|
||||
fRebuildPolyhedron = true;
|
||||
return "G4Sphere";
|
||||
}
|
||||
|
||||
#endif // G4GEOM_USE_USOLIDS
|
||||
|
||||
@@ -44,9 +44,10 @@
|
||||
|
||||
#include "G4USolid.hh"
|
||||
|
||||
#if defined(G4GEOM_USE_USOLIDS)
|
||||
#if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
|
||||
|
||||
#include "UTorus.hh"
|
||||
|
||||
#include "G4Polyhedron.hh"
|
||||
|
||||
class G4UTorus : public G4USolid
|
||||
@@ -68,20 +69,24 @@ class G4UTorus : public G4USolid
|
||||
|
||||
inline UTorus* GetShape() const;
|
||||
|
||||
inline G4double GetRmin() const;
|
||||
inline G4double GetRmax() const;
|
||||
inline G4double GetRtor() const;
|
||||
inline G4double GetSPhi() const;
|
||||
inline G4double GetDPhi() const;
|
||||
G4double GetRmin() const;
|
||||
G4double GetRmax() const;
|
||||
G4double GetRtor() const;
|
||||
G4double GetSPhi() const;
|
||||
G4double GetDPhi() const;
|
||||
|
||||
inline void SetRmin(G4double arg);
|
||||
inline void SetRmax(G4double arg);
|
||||
inline void SetRtor(G4double arg);
|
||||
inline void SetSPhi(G4double arg);
|
||||
inline void SetDPhi(G4double arg);
|
||||
void SetRmin(G4double arg);
|
||||
void SetRmax(G4double arg);
|
||||
void SetRtor(G4double arg);
|
||||
void SetSPhi(G4double arg);
|
||||
void SetDPhi(G4double arg);
|
||||
|
||||
inline void SetAllParameters(G4double arg1, G4double arg2,
|
||||
G4double arg3, G4double arg4, G4double arg5);
|
||||
void SetAllParameters(G4double arg1, G4double arg2,
|
||||
G4double arg3, G4double arg4, G4double arg5);
|
||||
|
||||
inline G4GeometryType GetEntityType() const;
|
||||
|
||||
G4Polyhedron* CreatePolyhedron() const;
|
||||
|
||||
public: // without description
|
||||
|
||||
@@ -104,70 +109,9 @@ inline UTorus* G4UTorus::GetShape() const
|
||||
return (UTorus*) fShape;
|
||||
}
|
||||
|
||||
inline G4double G4UTorus::GetRmin() const
|
||||
inline G4GeometryType G4UTorus::GetEntityType() const
|
||||
{
|
||||
return GetShape()->GetRmin();
|
||||
}
|
||||
|
||||
inline G4double G4UTorus::GetRmax() const
|
||||
{
|
||||
return GetShape()->GetRmax();
|
||||
}
|
||||
|
||||
inline G4double G4UTorus::GetRtor() const
|
||||
{
|
||||
return GetShape()->GetRtor();
|
||||
}
|
||||
|
||||
inline G4double G4UTorus::GetSPhi() const
|
||||
{
|
||||
return GetShape()->GetSPhi();
|
||||
}
|
||||
|
||||
inline G4double G4UTorus::GetDPhi() const
|
||||
{
|
||||
return GetShape()->GetDPhi();
|
||||
}
|
||||
|
||||
inline void G4UTorus::SetRmin(G4double arg)
|
||||
{
|
||||
GetShape()->SetRmin(arg);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
|
||||
inline void G4UTorus::SetRmax(G4double arg)
|
||||
{
|
||||
GetShape()->SetRmax(arg);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
|
||||
inline void G4UTorus::SetRtor(G4double arg)
|
||||
{
|
||||
GetShape()->SetRtor(arg);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
|
||||
inline void G4UTorus::SetSPhi(G4double arg)
|
||||
{
|
||||
GetShape()->SetSPhi(arg);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
|
||||
inline void G4UTorus::SetDPhi(G4double arg)
|
||||
{
|
||||
GetShape()->SetDPhi(arg);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
|
||||
inline void G4UTorus::SetAllParameters(G4double arg1, G4double arg2,
|
||||
G4double arg3, G4double arg4, G4double arg5)
|
||||
{
|
||||
GetShape()->SetRmin(arg1);
|
||||
GetShape()->SetRmax(arg2);
|
||||
GetShape()->SetRtor(arg3);
|
||||
GetShape()->SetSPhi(arg4);
|
||||
GetShape()->SetDPhi(arg5);
|
||||
fRebuildPolyhedron = true;
|
||||
return "G4Torus";
|
||||
}
|
||||
|
||||
#endif // G4GEOM_USE_USOLIDS
|
||||
|
||||
@@ -44,11 +44,11 @@
|
||||
|
||||
#include "G4USolid.hh"
|
||||
|
||||
#if defined(G4GEOM_USE_USOLIDS)
|
||||
#if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
|
||||
|
||||
#include "UTrap.hh"
|
||||
|
||||
class G4Polyhedron;
|
||||
#include "G4Polyhedron.hh"
|
||||
|
||||
class G4UTrap : public G4USolid
|
||||
{
|
||||
@@ -105,24 +105,28 @@ class G4UTrap : public G4USolid
|
||||
|
||||
inline UTrap* GetShape() const;
|
||||
|
||||
inline G4double GetZHalfLength() const;
|
||||
inline G4double GetYHalfLength1() const;
|
||||
inline G4double GetXHalfLength1() const;
|
||||
inline G4double GetXHalfLength2() const;
|
||||
inline G4double GetTanAlpha1() const;
|
||||
inline G4double GetYHalfLength2() const;
|
||||
inline G4double GetXHalfLength3() const;
|
||||
inline G4double GetXHalfLength4() const;
|
||||
inline G4double GetTanAlpha2() const;
|
||||
inline TrapSidePlane GetSidePlane(G4int n) const;
|
||||
inline G4ThreeVector GetSymAxis() const;
|
||||
G4double GetZHalfLength() const;
|
||||
G4double GetYHalfLength1() const;
|
||||
G4double GetXHalfLength1() const;
|
||||
G4double GetXHalfLength2() const;
|
||||
G4double GetTanAlpha1() const;
|
||||
G4double GetYHalfLength2() const;
|
||||
G4double GetXHalfLength3() const;
|
||||
G4double GetXHalfLength4() const;
|
||||
G4double GetTanAlpha2() const;
|
||||
TrapSidePlane GetSidePlane(G4int n) const;
|
||||
G4ThreeVector GetSymAxis() const;
|
||||
|
||||
inline void SetAllParameters(G4double pDz, G4double pTheta, G4double pPhi,
|
||||
G4double pDy1, G4double pDx1, G4double pDx2,
|
||||
G4double pAlp1,
|
||||
G4double pDy2, G4double pDx3, G4double pDx4,
|
||||
G4double pAlp2);
|
||||
inline void SetPlanes(const G4ThreeVector pt[8]);
|
||||
void SetAllParameters(G4double pDz, G4double pTheta, G4double pPhi,
|
||||
G4double pDy1, G4double pDx1, G4double pDx2,
|
||||
G4double pAlp1,
|
||||
G4double pDy2, G4double pDx3, G4double pDx4,
|
||||
G4double pAlp2);
|
||||
void SetPlanes(const G4ThreeVector pt[8]);
|
||||
|
||||
inline G4GeometryType GetEntityType() const;
|
||||
|
||||
G4Polyhedron* CreatePolyhedron() const;
|
||||
|
||||
public: // without description
|
||||
|
||||
@@ -134,8 +138,6 @@ class G4UTrap : public G4USolid
|
||||
G4UTrap(const G4UTrap& rhs);
|
||||
G4UTrap& operator=(const G4UTrap& rhs);
|
||||
// Copy constructor and assignment operator.
|
||||
|
||||
G4Polyhedron* CreatePolyhedron () const;
|
||||
};
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
@@ -147,76 +149,9 @@ inline UTrap* G4UTrap::GetShape() const
|
||||
return (UTrap*) fShape;
|
||||
}
|
||||
|
||||
inline G4double G4UTrap::GetZHalfLength() const
|
||||
inline G4GeometryType G4UTrap::GetEntityType() const
|
||||
{
|
||||
return GetShape()->GetZHalfLength();
|
||||
}
|
||||
inline G4double G4UTrap::GetYHalfLength1() const
|
||||
{
|
||||
return GetShape()->GetYHalfLength1();
|
||||
}
|
||||
inline G4double G4UTrap::GetXHalfLength1() const
|
||||
{
|
||||
return GetShape()->GetXHalfLength1();
|
||||
}
|
||||
inline G4double G4UTrap::GetXHalfLength2() const
|
||||
{
|
||||
return GetShape()->GetXHalfLength2();
|
||||
}
|
||||
inline G4double G4UTrap::GetTanAlpha1() const
|
||||
{
|
||||
return GetShape()->GetTanAlpha1();
|
||||
}
|
||||
inline G4double G4UTrap::GetYHalfLength2() const
|
||||
{
|
||||
return GetShape()->GetYHalfLength2();
|
||||
}
|
||||
inline G4double G4UTrap::GetXHalfLength3() const
|
||||
{
|
||||
return GetShape()->GetXHalfLength3();
|
||||
}
|
||||
inline G4double G4UTrap::GetXHalfLength4() const
|
||||
{
|
||||
return GetShape()->GetXHalfLength4();
|
||||
}
|
||||
inline G4double G4UTrap::GetTanAlpha2() const
|
||||
{
|
||||
return GetShape()->GetTanAlpha2();
|
||||
}
|
||||
inline TrapSidePlane G4UTrap::GetSidePlane(G4int n) const
|
||||
{
|
||||
UTrapSidePlane iplane = GetShape()->GetSidePlane(n);
|
||||
TrapSidePlane oplane = {iplane.a, iplane.b, iplane.c, iplane.d };
|
||||
return oplane;
|
||||
}
|
||||
inline G4ThreeVector G4UTrap::GetSymAxis() const
|
||||
{
|
||||
UVector3 axis = GetShape()->GetSymAxis();
|
||||
return G4ThreeVector(axis.x(), axis.y(), axis.z());
|
||||
}
|
||||
|
||||
inline
|
||||
void G4UTrap::SetAllParameters(G4double pDz, G4double pTheta, G4double pPhi,
|
||||
G4double pDy1, G4double pDx1, G4double pDx2,
|
||||
G4double pAlp1,
|
||||
G4double pDy2, G4double pDx3, G4double pDx4,
|
||||
G4double pAlp2)
|
||||
{
|
||||
GetShape()->SetAllParameters(pDz, pTheta, pPhi,
|
||||
pDy1, pDx1, pDx2, pAlp1,
|
||||
pDy2, pDx3, pDx4, pAlp2);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
|
||||
inline void G4UTrap::SetPlanes(const G4ThreeVector pt[8])
|
||||
{
|
||||
UVector3 upt[8];
|
||||
for (unsigned int i=0; i<8; ++i)
|
||||
{
|
||||
upt[i] = UVector3(pt[i].x(), pt[i].y(), pt[i].z());
|
||||
}
|
||||
GetShape()->SetPlanes(upt);
|
||||
fRebuildPolyhedron = true;
|
||||
return "G4Trap";
|
||||
}
|
||||
|
||||
#endif // G4GEOM_USE_USOLIDS
|
||||
|
||||
@@ -44,9 +44,10 @@
|
||||
|
||||
#include "G4USolid.hh"
|
||||
|
||||
#if defined(G4GEOM_USE_USOLIDS)
|
||||
#if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
|
||||
|
||||
#include "UTrd.hh"
|
||||
|
||||
#include "G4Polyhedron.hh"
|
||||
|
||||
class G4UTrd : public G4USolid
|
||||
@@ -69,21 +70,24 @@ class G4UTrd : public G4USolid
|
||||
|
||||
inline UTrd* GetShape() const;
|
||||
|
||||
inline G4double GetXHalfLength1() const;
|
||||
inline G4double GetXHalfLength2() const;
|
||||
inline G4double GetYHalfLength1() const;
|
||||
inline G4double GetYHalfLength2() const;
|
||||
inline G4double GetZHalfLength() const;
|
||||
G4double GetXHalfLength1() const;
|
||||
G4double GetXHalfLength2() const;
|
||||
G4double GetYHalfLength1() const;
|
||||
G4double GetYHalfLength2() const;
|
||||
G4double GetZHalfLength() const;
|
||||
|
||||
inline void SetXHalfLength1(G4double val);
|
||||
inline void SetXHalfLength2(G4double val);
|
||||
inline void SetYHalfLength1(G4double val);
|
||||
inline void SetYHalfLength2(G4double val);
|
||||
inline void SetZHalfLength(G4double val);
|
||||
void SetXHalfLength1(G4double val);
|
||||
void SetXHalfLength2(G4double val);
|
||||
void SetYHalfLength1(G4double val);
|
||||
void SetYHalfLength2(G4double val);
|
||||
void SetZHalfLength(G4double val);
|
||||
|
||||
inline void SetAllParameters(G4double pdx1, G4double pdx2,
|
||||
G4double pdy1, G4double pdy2,
|
||||
G4double pdz);
|
||||
void SetAllParameters(G4double pdx1, G4double pdx2,
|
||||
G4double pdy1, G4double pdy2, G4double pdz);
|
||||
|
||||
inline G4GeometryType GetEntityType() const;
|
||||
|
||||
G4Polyhedron* CreatePolyhedron() const;
|
||||
|
||||
public: // without description
|
||||
|
||||
@@ -106,58 +110,9 @@ inline UTrd* G4UTrd::GetShape() const
|
||||
return (UTrd*) fShape;
|
||||
}
|
||||
|
||||
inline G4double G4UTrd::GetXHalfLength1() const
|
||||
inline G4GeometryType G4UTrd::GetEntityType() const
|
||||
{
|
||||
return GetShape()->GetXHalfLength1();
|
||||
}
|
||||
inline G4double G4UTrd::GetXHalfLength2() const
|
||||
{
|
||||
return GetShape()->GetXHalfLength2();
|
||||
}
|
||||
inline G4double G4UTrd::GetYHalfLength1() const
|
||||
{
|
||||
return GetShape()->GetYHalfLength1();
|
||||
}
|
||||
inline G4double G4UTrd::GetYHalfLength2() const
|
||||
{
|
||||
return GetShape()->GetYHalfLength2();
|
||||
}
|
||||
inline G4double G4UTrd::GetZHalfLength() const
|
||||
{
|
||||
return GetShape()->GetZHalfLength();
|
||||
}
|
||||
|
||||
inline void G4UTrd::SetXHalfLength1(G4double val)
|
||||
{
|
||||
GetShape()->SetXHalfLength1(val);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UTrd::SetXHalfLength2(G4double val)
|
||||
{
|
||||
GetShape()->SetXHalfLength2(val);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UTrd::SetYHalfLength1(G4double val)
|
||||
{
|
||||
GetShape()->SetYHalfLength1(val);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UTrd::SetYHalfLength2(G4double val)
|
||||
{
|
||||
GetShape()->SetYHalfLength2(val);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UTrd::SetZHalfLength(G4double val)
|
||||
{
|
||||
GetShape()->SetZHalfLength(val);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UTrd::SetAllParameters(G4double pdx1, G4double pdx2,
|
||||
G4double pdy1, G4double pdy2,
|
||||
G4double pdz)
|
||||
{
|
||||
GetShape()->SetAllParameters(pdx1, pdx2, pdy1, pdy2, pdz);
|
||||
fRebuildPolyhedron = true;
|
||||
return "G4Trd";
|
||||
}
|
||||
|
||||
#endif // G4GEOM_USE_USOLIDS
|
||||
|
||||
@@ -46,9 +46,10 @@
|
||||
|
||||
#include "G4USolid.hh"
|
||||
|
||||
#if defined(G4GEOM_USE_USOLIDS)
|
||||
#if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
|
||||
|
||||
#include "UTubs.hh"
|
||||
|
||||
#include "G4Polyhedron.hh"
|
||||
|
||||
class G4UTubs : public G4USolid
|
||||
@@ -73,18 +74,22 @@ class G4UTubs : public G4USolid
|
||||
|
||||
inline UTubs* GetShape() const;
|
||||
|
||||
inline G4double GetInnerRadius () const;
|
||||
inline G4double GetOuterRadius () const;
|
||||
inline G4double GetZHalfLength () const;
|
||||
inline G4double GetStartPhiAngle () const;
|
||||
inline G4double GetDeltaPhiAngle () const;
|
||||
G4double GetInnerRadius () const;
|
||||
G4double GetOuterRadius () const;
|
||||
G4double GetZHalfLength () const;
|
||||
G4double GetStartPhiAngle () const;
|
||||
G4double GetDeltaPhiAngle () const;
|
||||
|
||||
inline void SetInnerRadius (G4double newRMin);
|
||||
inline void SetOuterRadius (G4double newRMax);
|
||||
inline void SetZHalfLength (G4double newDz);
|
||||
inline void SetStartPhiAngle (G4double newSPhi, G4bool trig=true);
|
||||
inline void SetDeltaPhiAngle (G4double newDPhi);
|
||||
void SetInnerRadius (G4double newRMin);
|
||||
void SetOuterRadius (G4double newRMax);
|
||||
void SetZHalfLength (G4double newDz);
|
||||
void SetStartPhiAngle (G4double newSPhi, G4bool trig=true);
|
||||
void SetDeltaPhiAngle (G4double newDPhi);
|
||||
|
||||
inline G4GeometryType GetEntityType() const;
|
||||
|
||||
G4Polyhedron* CreatePolyhedron() const;
|
||||
|
||||
public: // without description
|
||||
|
||||
G4UTubs(__void__&);
|
||||
@@ -107,51 +112,9 @@ inline UTubs* G4UTubs::GetShape() const
|
||||
return (UTubs*) fShape;
|
||||
}
|
||||
|
||||
inline G4double G4UTubs::GetInnerRadius() const
|
||||
inline G4GeometryType G4UTubs::GetEntityType() const
|
||||
{
|
||||
return GetShape()->GetInnerRadius();
|
||||
}
|
||||
inline G4double G4UTubs::GetOuterRadius() const
|
||||
{
|
||||
return GetShape()->GetOuterRadius();
|
||||
}
|
||||
inline G4double G4UTubs::GetZHalfLength() const
|
||||
{
|
||||
return GetShape()->GetZHalfLength();
|
||||
}
|
||||
inline G4double G4UTubs::GetStartPhiAngle() const
|
||||
{
|
||||
return GetShape()->GetStartPhiAngle();
|
||||
}
|
||||
inline G4double G4UTubs::GetDeltaPhiAngle() const
|
||||
{
|
||||
return GetShape()->GetDeltaPhiAngle();
|
||||
}
|
||||
|
||||
inline void G4UTubs::SetInnerRadius(G4double newRMin)
|
||||
{
|
||||
GetShape()->SetInnerRadius(newRMin);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UTubs::SetOuterRadius(G4double newRMax)
|
||||
{
|
||||
GetShape()->SetOuterRadius(newRMax);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UTubs::SetZHalfLength(G4double newDz)
|
||||
{
|
||||
GetShape()->SetZHalfLength(newDz);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UTubs::SetStartPhiAngle(G4double newSPhi, G4bool trig)
|
||||
{
|
||||
GetShape()->SetStartPhiAngle(newSPhi, trig);
|
||||
fRebuildPolyhedron = true;
|
||||
}
|
||||
inline void G4UTubs::SetDeltaPhiAngle(G4double newDPhi)
|
||||
{
|
||||
GetShape()->SetDeltaPhiAngle(newDPhi);
|
||||
fRebuildPolyhedron = true;
|
||||
return "G4Tubs";
|
||||
}
|
||||
|
||||
#endif // G4GEOM_USE_USOLIDS
|
||||
|
||||
Reference in New Issue
Block a user