Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4LogicalSkinSurface Class Reference

#include <G4LogicalSkinSurface.hh>

+ Inheritance diagram for G4LogicalSkinSurface:

Public Member Functions

 G4LogicalSkinSurface (const G4String &name, G4LogicalVolume *vol, G4SurfaceProperty *surfaceProperty)
 
 ~G4LogicalSkinSurface ()
 
const G4LogicalVolumeGetLogicalVolume () const
 
void SetLogicalVolume (G4LogicalVolume *vol)
 
G4int operator== (const G4LogicalSkinSurface &right) const
 
G4int operator!= (const G4LogicalSkinSurface &right) const
 
- Public Member Functions inherited from G4LogicalSurface
G4SurfacePropertyGetSurfaceProperty () const
 
void SetSurfaceProperty (G4SurfaceProperty *ptrSurfaceProperty)
 
const G4StringGetName () const
 
void SetName (const G4String &name)
 
G4TransitionRadiationSurface * GetTransitionRadiationSurface () const
 
void SetTransitionRadiationSurface (G4TransitionRadiationSurface *tRadSurf)
 
virtual ~G4LogicalSurface ()
 
G4int operator== (const G4LogicalSurface &right) const
 
G4int operator!= (const G4LogicalSurface &right) const
 

Static Public Member Functions

static G4LogicalSkinSurfaceGetSurface (const G4LogicalVolume *vol)
 
static void CleanSurfaceTable ()
 
static const G4LogicalSkinSurfaceTableGetSurfaceTable ()
 
static size_t GetNumberOfSkinSurfaces ()
 
static void DumpInfo ()
 

Additional Inherited Members

- Protected Member Functions inherited from G4LogicalSurface
 G4LogicalSurface (const G4String &name, G4SurfaceProperty *prop)
 

Detailed Description

Definition at line 54 of file G4LogicalSkinSurface.hh.

Constructor & Destructor Documentation

◆ G4LogicalSkinSurface()

G4LogicalSkinSurface::G4LogicalSkinSurface ( const G4String name,
G4LogicalVolume vol,
G4SurfaceProperty surfaceProperty 
)

Definition at line 50 of file G4LogicalSkinSurface.cc.

53 : G4LogicalSurface(name, surfaceProperty),
54 LogVolume(logicalVolume)
55{
56 // Store in the table of Surfaces
57 //
58 theSkinSurfaceTable.push_back(this);
59}

◆ ~G4LogicalSkinSurface()

G4LogicalSkinSurface::~G4LogicalSkinSurface ( )

Definition at line 69 of file G4LogicalSkinSurface.cc.

70{
71}

Member Function Documentation

◆ CleanSurfaceTable()

void G4LogicalSkinSurface::CleanSurfaceTable ( )
static

Definition at line 147 of file G4LogicalSkinSurface.cc.

148{
149 G4LogicalSkinSurfaceTable::iterator pos;
150 for(pos=theSkinSurfaceTable.begin(); pos!=theSkinSurfaceTable.end(); pos++)
151 {
152 if (*pos) delete *pos;
153 }
154 theSkinSurfaceTable.clear();
155}

◆ DumpInfo()

void G4LogicalSkinSurface::DumpInfo ( )
static

Definition at line 131 of file G4LogicalSkinSurface.cc.

132{
133 G4cout << "***** Skin Surface Table : Nb of Surfaces = "
134 << GetNumberOfSkinSurfaces() << " *****" << G4endl;
135
136 for (size_t i=0; i<theSkinSurfaceTable.size(); i++)
137 {
138 G4LogicalSkinSurface* pSkinSurface = theSkinSurfaceTable[i];
139 G4cout << pSkinSurface->GetName() << " : " << G4endl
140 << " Skin of logical volume "
141 << pSkinSurface->GetLogicalVolume()->GetName()
142 << G4endl;
143 }
144 G4cout << G4endl;
145}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
const G4LogicalVolume * GetLogicalVolume() const
static size_t GetNumberOfSkinSurfaces()
const G4String & GetName() const
G4String GetName() const

◆ GetLogicalVolume()

const G4LogicalVolume * G4LogicalSkinSurface::GetLogicalVolume ( ) const
inline

◆ GetNumberOfSkinSurfaces()

size_t G4LogicalSkinSurface::GetNumberOfSkinSurfaces ( )
static

Definition at line 113 of file G4LogicalSkinSurface.cc.

114{
115 return theSkinSurfaceTable.size();
116}

Referenced by DumpInfo(), and G4GDMLWriteStructure::GetSkinSurface().

◆ GetSurface()

G4LogicalSkinSurface * G4LogicalSkinSurface::GetSurface ( const G4LogicalVolume vol)
static

Definition at line 119 of file G4LogicalSkinSurface.cc.

120{
121 for (size_t i=0; i<theSkinSurfaceTable.size(); i++)
122 {
123 if(theSkinSurfaceTable[i]->GetLogicalVolume() == vol)
124 return theSkinSurfaceTable[i];
125 }
126 return NULL;
127}

Referenced by G4OpBoundaryProcess::PostStepDoIt().

◆ GetSurfaceTable()

const G4LogicalSkinSurfaceTable * G4LogicalSkinSurface::GetSurfaceTable ( )
static

Definition at line 108 of file G4LogicalSkinSurface.cc.

109{
110 return &theSkinSurfaceTable;
111}

Referenced by G4GDMLWriteStructure::GetSkinSurface().

◆ operator!=()

G4int G4LogicalSkinSurface::operator!= ( const G4LogicalSkinSurface right) const

Definition at line 99 of file G4LogicalSkinSurface.cc.

100{
101 return (this != (G4LogicalSkinSurface *) &right);
102}

◆ operator==()

G4int G4LogicalSkinSurface::operator== ( const G4LogicalSkinSurface right) const

Definition at line 93 of file G4LogicalSkinSurface.cc.

94{
95 return (this == (G4LogicalSkinSurface *) &right);
96}

◆ SetLogicalVolume()

void G4LogicalSkinSurface::SetLogicalVolume ( G4LogicalVolume vol)
inline

The documentation for this class was generated from the following files: