|
||||
Warning, file /include/Geant4/G4UOrb.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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 // G4UOrb 0027 // 0028 // Class description: 0029 // 0030 // Wrapper class for G4Orb to make use of VecGeom Orb. 0031 0032 // 30.10.13 G.Cosmo, CERN/PH 0033 // -------------------------------------------------------------------- 0034 #ifndef G4UORB_HH 0035 #define G4UORB_HH 0036 0037 #include "G4UAdapter.hh" 0038 0039 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) ) 0040 0041 #include <VecGeom/volumes/UnplacedOrb.h> 0042 0043 #include "G4Polyhedron.hh" 0044 0045 class G4UOrb : public G4UAdapter<vecgeom::UnplacedOrb> 0046 { 0047 using Shape_t = vecgeom::UnplacedOrb; 0048 using Base_t = G4UAdapter<vecgeom::UnplacedOrb>; 0049 0050 public: // with description 0051 0052 G4UOrb(const G4String& pName, G4double pRmax); 0053 0054 ~G4UOrb() override ; 0055 0056 void ComputeDimensions( G4VPVParameterisation* p, 0057 const G4int n, 0058 const G4VPhysicalVolume* pRep) override; 0059 0060 G4VSolid* Clone() const override; 0061 0062 G4double GetRadius() const; 0063 void SetRadius(G4double newRmax); 0064 G4double GetRadialTolerance() const; 0065 0066 inline G4GeometryType GetEntityType() const override; 0067 0068 void BoundingLimits(G4ThreeVector& pMin, G4ThreeVector& pMax) const override; 0069 0070 G4bool CalculateExtent(const EAxis pAxis, 0071 const G4VoxelLimits& pVoxelLimit, 0072 const G4AffineTransform& pTransform, 0073 G4double& pmin, G4double& pmax) const override; 0074 0075 G4Polyhedron* CreatePolyhedron() const override; 0076 0077 public: // without description 0078 0079 G4UOrb(__void__&); 0080 // Fake default constructor for usage restricted to direct object 0081 // persistency for clients requiring preallocation of memory for 0082 // persistifiable objects. 0083 0084 G4UOrb(const G4UOrb& rhs); 0085 G4UOrb& operator=(const G4UOrb& rhs); 0086 // Copy constructor and assignment operator. 0087 }; 0088 0089 // -------------------------------------------------------------------- 0090 // Inline methods 0091 // -------------------------------------------------------------------- 0092 0093 inline G4GeometryType G4UOrb::GetEntityType() const 0094 { 0095 return "G4Orb"; 0096 } 0097 0098 #endif // G4GEOM_USE_USOLIDS 0099 0100 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |