54 #ifndef __G4TWISTEDTUBS__
55 #define __G4TWISTEDTUBS__
136 std::ostream &
StreamInfo(std::ostream& os)
const;
252 if (
this == &r) {
return *
this; }
281 if (&r ==
this) {
return *
this; }
305 if (
this == &r) {
return *
this; }
328 if (
this == &r) {
return *
this; }
360 fEndZ[0] = negativeEndz;
361 fEndZ[1] = positiveEndz;
363 fEndZ2[1] = fEndZ[1] * fEndZ[1];
369 if (std::fabs(fEndZ[0]) >= std::fabs(fEndZ[1])) {
377 G4double innerNumerator = std::fabs(fInnerRadius * tanHalfTwist) *
parity;
378 G4double outerNumerator = std::fabs(fOuterRadius * tanHalfTwist) *
parity;
396 G4cout <<
"/********* G4TwistedTubs::SetFields() Field Parameters ***************** " <<
G4endl;
398 G4cout <<
"/* fEndZ(0, 1) : " << fEndZ[0] <<
" , " << fEndZ[1] <<
G4endl;
400 G4cout <<
"/* fInnerRadius, fOuterRadius : " << fInnerRadius <<
" , " << fOuterRadius <<
G4endl;
407 G4cout <<
"/*********************************************************************** " <<
G4endl;
void set(double x, double y, double z)
G4double GetZHalfLength() const
void ComputeDimensions(G4VPVParameterisation *, const G4int, const G4VPhysicalVolume *)
G4Polyhedron * fpPolyhedron
G4double GetEndOuterRadius() const
LastValue fLastDistanceToOut
LastVector & operator=(const LastVector &r)
G4Polyhedron * GetPolyhedron() const
~LastValueWithDoubleVector()
G4double GetTanOuterStereo2() const
G4double GetSurfaceArea()
static const G4double kInfinity
G4VTwistSurface * fInnerHype
void DescribeYourselfTo(G4VGraphicsScene &scene) const
G4double fTanOuterStereo2
LastState(const LastState &r)
G4double GetKappa() const
G4double GetOuterRadius() const
G4bool fRebuildPolyhedron
G4TwistedTubs(const G4String &pname, G4double twistedangle, G4double endinnerrad, G4double endouterrad, G4double halfzlen, G4double dphi)
G4VTwistSurface * fLatterTwisted
G4double fTanInnerStereo2
G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcnorm=G4bool(false), G4bool *validnorm=0, G4ThreeVector *n=0) const
G4VTwistSurface * fLowerEndcap
G4GeometryType GetEntityType() const
G4double GetInnerStereo() const
LastValue(const LastValue &r)
G4VisExtent GetExtent() const
G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const
G4VTwistSurface * fFormerTwisted
LastValueWithDoubleVector & operator=(const LastValueWithDoubleVector &r)
G4double GetEndZ(G4int i) const
const XML_Char int const XML_Char * value
G4double GetCubicVolume()
EInside Inside(const G4ThreeVector &p) const
LastValueWithDoubleVector()
G4VTwistSurface * fUpperEndcap
G4TwistedTubs & operator=(const G4TwistedTubs &rhs)
LastValue fLastDistanceToIn
LastValue & operator=(const LastValue &r)
G4double fEndOuterRadius[2]
G4Polyhedron * CreatePolyhedron() const
G4double GetPhiTwist() const
G4double GetEndInnerRadius() const
G4VTwistSurface ** surface
void BoundingLimits(G4ThreeVector &pMin, G4ThreeVector &pMax) const
std::ostream & StreamInfo(std::ostream &os) const
G4double GetEndOuterRadius(G4int i) const
LastValueWithDoubleVector fLastDistanceToInWithV
G4VTwistSurface * fOuterHype
G4ThreeVector GetPointOnSurface() const
LastState & operator=(const LastState &r)
G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const
LastVector(const LastVector &r)
void SetFields(G4double phitwist, G4double innerrad, G4double outerrad, G4double negativeEndz, G4double positiveEndz)
LastValueWithDoubleVector(const LastValueWithDoubleVector &r)
G4double fEndInnerRadius[2]
G4GLOB_DLL std::ostream G4cout
G4double GetEndInnerRadius(G4int i) const
G4double GetEndPhi(G4int i) const
G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
G4double GetTanInnerStereo2() const
G4double GetInnerRadius() const
G4double GetTanOuterStereo() const
LastValueWithDoubleVector fLastDistanceToOutWithV
G4double GetOuterStereo() const
G4double GetTanInnerStereo() const