Import Geant4 10.7.1 source tree

This commit is contained in:
Gabriele Cosmo
2021-02-05 15:10:05 +01:00
parent dab42d2018
commit 3dfcdb544e
281 changed files with 37738 additions and 47638 deletions
@@ -40,8 +40,7 @@
// classes to work with multi-threading.
// Authors: John Apostolakis (CERN), Andrea Dotti (SLAC), July 2013
// ------------------------------------------------------------
// --------------------------------------------------------------------
#ifndef G4GEOMETRYWORKSPACE_HH
#define G4GEOMETRYWORKSPACE_HH
@@ -50,7 +50,7 @@ using G4LogicalBorderSurfaceTable
class G4LogicalBorderSurface : public G4LogicalSurface
{
public: // with description
public:
G4LogicalBorderSurface( const G4String& name,
G4VPhysicalVolume* vol1,
@@ -65,7 +65,7 @@ class G4LogicalBorderSurface : public G4LogicalSurface
G4bool operator==( const G4LogicalBorderSurface& right ) const;
G4bool operator!=( const G4LogicalBorderSurface& right ) const;
// Operators.
// Operators
static G4LogicalBorderSurface* GetSurface( const G4VPhysicalVolume* vol1,
const G4VPhysicalVolume* vol2 );
@@ -73,7 +73,8 @@ class G4LogicalBorderSurface : public G4LogicalSurface
G4VPhysicalVolume* vol2 );
inline const G4VPhysicalVolume* GetVolume1() const;
inline const G4VPhysicalVolume* GetVolume2() const;
// Generic accessors.
inline std::size_t GetIndex() const;
// Generic accessors
inline void SetVolume1( G4VPhysicalVolume* vol1 );
inline void SetVolume2( G4VPhysicalVolume* vol2 );
@@ -81,17 +82,19 @@ class G4LogicalBorderSurface : public G4LogicalSurface
static void CleanSurfaceTable();
static const G4LogicalBorderSurfaceTable* GetSurfaceTable();
static size_t GetNumberOfBorderSurfaces();
static std::size_t GetNumberOfBorderSurfaces();
static void DumpInfo();
// To handle the table of surfaces.
// To handle the table of surfaces
private:
G4VPhysicalVolume* Volume1; // Physical Volume pointer on side 1
G4VPhysicalVolume* Volume2; // Physical Volume pointer on side 2
std::size_t Index; // Creation order index
static G4LogicalBorderSurfaceTable *theBorderSurfaceTable;
// The static Table of BorderSurfaces.
// The static Table of BorderSurfaces
};
// ********************************************************************
@@ -101,4 +104,3 @@ class G4LogicalBorderSurface : public G4LogicalSurface
#include "G4LogicalBorderSurface.icc"
#endif
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// class G4LogicalBorderSurface inline implementation
// G4LogicalBorderSurface inline implementation
//
// ----------------------------------------------------------------------
@@ -47,6 +47,12 @@ const G4VPhysicalVolume* G4LogicalBorderSurface::GetVolume2() const
return Volume2;
}
inline
std::size_t G4LogicalBorderSurface::GetIndex() const
{
return Index;
}
inline
void G4LogicalBorderSurface::SetVolume1(G4VPhysicalVolume* vol1)
{