|
||||
File indexing completed on 2025-01-18 09:59:14
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // G4TwistedTrap 0027 // 0028 // Class description: 0029 // 0030 // A G4TwistedTrap is a general twisted trapezoid: The faces perpendicular to the 0031 // z planes are trapezia, and their centres are not necessarily on 0032 // a line parallel to the z axis. 0033 // 0034 // pDz Half-length along the z-axis 0035 // pTheta Polar angle of the line joining the centres of the faces 0036 // at -/+pDz 0037 // pPhi Azimuthal angle of the line joing the centre of the face at 0038 // -pDz to the centre of the face at +pDz 0039 // pDy1 Half-length along y of the face at -pDz 0040 // pDx1 Half-length along x of the side at y=-pDy1 of the face at -pDz 0041 // pDx2 Half-length along x of the side at y=+pDy1 of the face at -pDz 0042 // 0043 // pDy2 Half-length along y of the face at +pDz 0044 // pDx3 Half-length along x of the side at y=-pDy2 of the face at +pDz 0045 // pDx4 Half-length along x of the side at y=+pDy2 of the face at +pDz 0046 // pAlph Angle with respect to the y axis from the centre of the side 0047 // 0048 // 0049 // A special regular case of a trapezoid with equal endcaps is available, 0050 // with polar,azimuthal and tilt angles set to zero. 0051 // 0052 0053 // Author: 27-Oct-2004 - O.Link (Oliver.Link@cern.ch) 0054 // -------------------------------------------------------------------- 0055 #ifndef G4TWISTEDTRAP_HH 0056 #define G4TWISTEDTRAP_HH 0057 0058 #include "G4VTwistedFaceted.hh" 0059 0060 class G4TwistedTrap : public G4VTwistedFaceted 0061 { 0062 public: 0063 0064 G4TwistedTrap(const G4String& pName, 0065 G4double pPhiTwist, 0066 G4double pDx1, // half x length at -pDz,-pDy 0067 G4double pDx2, // half x length at -pDz,+pDy 0068 G4double pDy, 0069 G4double pDz); 0070 0071 0072 G4TwistedTrap(const G4String& pName, // Name of instance 0073 G4double pPhiTwist, // twist angle 0074 G4double pDz, // half z length 0075 G4double pTheta, // direction between end planes 0076 G4double pPhi, // defined by polar and azim. angles 0077 G4double pDy1, // half y length at -pDz 0078 G4double pDx1, // half x length at -pDz,-pDy 0079 G4double pDx2, // half x length at -pDz,+pDy 0080 G4double pDy2, // half y length at +pDz 0081 G4double pDx3, // half x length at +pDz,-pDy 0082 G4double pDx4, // half x length at +pDz,+pDy 0083 G4double pAlph // tilt angle 0084 ); 0085 0086 ~G4TwistedTrap() override; 0087 0088 // accessors 0089 0090 inline G4double GetY1HalfLength() const { return GetDy1() ; } 0091 inline G4double GetX1HalfLength() const { return GetDx1() ; } 0092 inline G4double GetX2HalfLength() const { return GetDx2() ; } 0093 inline G4double GetY2HalfLength() const { return GetDy2() ; } 0094 inline G4double GetX3HalfLength() const { return GetDx3() ; } 0095 inline G4double GetX4HalfLength() const { return GetDx4() ; } 0096 inline G4double GetZHalfLength() const { return GetDz() ; } 0097 inline G4double GetPhiTwist() const { return GetTwistAngle() ; } 0098 inline G4double GetTiltAngleAlpha() const { return GetAlpha() ; } 0099 inline G4double GetPolarAngleTheta() const { return GetTheta() ; } 0100 inline G4double GetAzimuthalAnglePhi() const { return GetPhi() ; } 0101 0102 G4GeometryType GetEntityType() const override; 0103 0104 G4VSolid* Clone() const override; 0105 0106 std::ostream &StreamInfo(std::ostream& os) const override; 0107 0108 G4TwistedTrap(__void__&); 0109 // Fake default constructor for usage restricted to direct object 0110 // persistency for clients requiring preallocation of memory for 0111 // persistifiable objects. 0112 0113 G4TwistedTrap(const G4TwistedTrap& rhs); 0114 G4TwistedTrap& operator=(const G4TwistedTrap& rhs); 0115 // Copy constructor and assignment operator. 0116 } ; 0117 0118 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |