Import Geant4 11.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2025-12-05 08:54:02 +01:00
parent a499fb82e9
commit b4a16de652
6484 changed files with 232674 additions and 221097 deletions
@@ -27,30 +27,45 @@
//
// Class description:
//
// A G4TwistedTrd is a twisted trapezoid with the x and y dimensions
// varying along z
// A G4TwistedTrd is a twisted trapezoid with the X and Y dimensions
// varying along Z.
//
//
// Member Data:
// Member Data:
//
// pDx1 Half-length along x at the surface positioned at -dz
// pDx2 Half-length along x at the surface positioned at +dz
// pDy1 Half-length along y at the surface positioned at -dz
// pDy2 Half-length along y at the surface positioned at +dz
// pDz Half-length along z axis
// pPhiTwist Twist angle
// pDx1 Half-length along x at the surface positioned at -dz
// pDx2 Half-length along x at the surface positioned at +dz
// pDy1 Half-length along y at the surface positioned at -dz
// pDy2 Half-length along y at the surface positioned at +dz
// pDz Half-length along z axis
// pPhiTwist Twist angle
// Author: Oliver Link (Oliver.Link@cern.ch)
// Author: Oliver Link (CERN), 18.03.2005 - Created
// --------------------------------------------------------------------
#ifndef G4TWISTEDTRD_HH
#define G4TWISTEDTRD_HH
#include "G4VTwistedFaceted.hh"
/**
* @brief G4TwistedTrd is a twisted trapezoid with the X and Y dimensions
* varying along Z.
*/
class G4TwistedTrd : public G4VTwistedFaceted
{
public:
/**
* Constructs a twisted Trd, given its parameters.
* @param[in] pName The solid name.
* @param[in] pDx1 Half-length along X at the surface positioned at -dz.
* @param[in] pDx2 Half-length along X at the surface positioned at +dz.
* @param[in] pDy1 Half-length along Y at the surface positioned at -dz.
* @param[in] pDy2 Half-length along Y at the surface positioned at +dz.
* @param[in] pDz Half-length along Z axis.
* @param[in] pPhiTwist The twist angle.
*/
G4TwistedTrd( const G4String& pName,
G4double pDx1,
G4double pDx2,
@@ -59,10 +74,14 @@ class G4TwistedTrd : public G4VTwistedFaceted
G4double pDz,
G4double pPhiTwist );
~G4TwistedTrd() override;
// accessors
/**
* Default destructor.
*/
~G4TwistedTrd() override = default;
/**
* Accessors.
*/
inline G4double GetX1HalfLength() const { return GetDx1() ; }
inline G4double GetX2HalfLength() const { return GetDx3() ; }
inline G4double GetY1HalfLength() const { return GetDy1() ; }
@@ -70,24 +89,41 @@ class G4TwistedTrd : public G4VTwistedFaceted
inline G4double GetZHalfLength() const { return GetDz() ; }
inline G4double GetPhiTwist() const { return GetTwistAngle() ; }
/**
* Returns the type ID, "G4TwistedTrd" of the solid.
*/
G4GeometryType GetEntityType() const override;
/**
* Returning an estimation of the solid volume (capacity) and
* surface area, in internal units.
*/
G4double GetCubicVolume() override;
G4double GetSurfaceArea() override;
/**
* Makes a clone of the object for use in multi-treading.
* @returns A pointer to the new cloned allocated solid.
*/
G4VSolid* Clone() const override;
/**
* Streams the object contents to an output stream.
*/
std::ostream& StreamInfo(std::ostream& os) const override;
/**
* Fake default constructor for usage restricted to direct object
* persistency for clients requiring preallocation of memory for
* persistifiable objects.
*/
G4TwistedTrd(__void__&);
// Fake default constructor for usage restricted to direct object
// persistency for clients requiring preallocation of memory for
// persistifiable objects.
/**
* Copy constructor and assignment operator.
*/
G4TwistedTrd(const G4TwistedTrd& rhs);
G4TwistedTrd& operator=(const G4TwistedTrd& rhs);
// Copy constructor and assignment operator.
} ;
#endif