|
||||
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 // G4TwistedTrd 0027 // 0028 // Class description: 0029 // 0030 // A G4TwistedTrd is a twisted trapezoid with the x and y dimensions 0031 // varying along z 0032 // 0033 // 0034 // Member Data: 0035 // 0036 // pDx1 Half-length along x at the surface positioned at -dz 0037 // pDx2 Half-length along x at the surface positioned at +dz 0038 // pDy1 Half-length along y at the surface positioned at -dz 0039 // pDy2 Half-length along y at the surface positioned at +dz 0040 // pDz Half-length along z axis 0041 // pPhiTwist Twist angle 0042 0043 // Author: Oliver Link (Oliver.Link@cern.ch) 0044 // -------------------------------------------------------------------- 0045 #ifndef G4TWISTEDTRD_HH 0046 #define G4TWISTEDTRD_HH 0047 0048 #include "G4VTwistedFaceted.hh" 0049 0050 class G4TwistedTrd : public G4VTwistedFaceted 0051 { 0052 public: 0053 0054 G4TwistedTrd( const G4String& pName, 0055 G4double pDx1, 0056 G4double pDx2, 0057 G4double pDy1, 0058 G4double pDy2, 0059 G4double pDz, 0060 G4double pPhiTwist ); 0061 0062 ~G4TwistedTrd() override; 0063 0064 // accessors 0065 0066 inline G4double GetX1HalfLength() const { return GetDx1() ; } 0067 inline G4double GetX2HalfLength() const { return GetDx3() ; } 0068 inline G4double GetY1HalfLength() const { return GetDy1() ; } 0069 inline G4double GetY2HalfLength() const { return GetDy2() ; } 0070 inline G4double GetZHalfLength() const { return GetDz() ; } 0071 inline G4double GetPhiTwist() const { return GetTwistAngle() ; } 0072 0073 G4GeometryType GetEntityType() const override; 0074 0075 G4double GetCubicVolume() override; 0076 G4double GetSurfaceArea() override; 0077 0078 G4VSolid* Clone() const override; 0079 0080 std::ostream& StreamInfo(std::ostream& os) const override; 0081 0082 G4TwistedTrd(__void__&); 0083 // Fake default constructor for usage restricted to direct object 0084 // persistency for clients requiring preallocation of memory for 0085 // persistifiable objects. 0086 0087 G4TwistedTrd(const G4TwistedTrd& rhs); 0088 G4TwistedTrd& operator=(const G4TwistedTrd& rhs); 0089 // Copy constructor and assignment operator. 0090 0091 } ; 0092 0093 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |