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

#include <G4SurfaceProperty.hh>

+ Inheritance diagram for G4SurfaceProperty:

Public Member Functions

 G4SurfaceProperty ()
 
 G4SurfaceProperty (const G4String &name, G4SurfaceType type=x_ray)
 
virtual ~G4SurfaceProperty ()=default
 
const G4StringGetName () const
 
void SetName (const G4String &name)
 
const G4SurfaceTypeGetType () const
 
virtual void SetType (const G4SurfaceType &type)
 

Static Public Member Functions

static void CleanSurfacePropertyTable ()
 
static const G4SurfacePropertyTableGetSurfacePropertyTable ()
 
static size_t GetNumberOfSurfaceProperties ()
 
static void DumpTableInfo ()
 

Protected Attributes

G4String theName
 
G4SurfaceType theType
 

Static Protected Attributes

static G4SurfacePropertyTable theSurfacePropertyTable
 

Detailed Description

Definition at line 71 of file G4SurfaceProperty.hh.

Constructor & Destructor Documentation

◆ G4SurfaceProperty() [1/2]

G4SurfaceProperty::G4SurfaceProperty ( )

Definition at line 56 of file G4SurfaceProperty.cc.

56 : theName("Dielectric"), theType(dielectric_metal)
57{
58 theSurfacePropertyTable.push_back(this);
59}
@ dielectric_metal
static G4SurfacePropertyTable theSurfacePropertyTable

◆ G4SurfaceProperty() [2/2]

G4SurfaceProperty::G4SurfaceProperty ( const G4String & name,
G4SurfaceType type = x_ray )

Definition at line 50 of file G4SurfaceProperty.cc.

51 : theName(name), theType(type)
52{
53 theSurfacePropertyTable.push_back(this);
54}

◆ ~G4SurfaceProperty()

virtual G4SurfaceProperty::~G4SurfaceProperty ( )
virtualdefault

Member Function Documentation

◆ CleanSurfacePropertyTable()

void G4SurfaceProperty::CleanSurfacePropertyTable ( )
static

Definition at line 81 of file G4SurfaceProperty.cc.

82{
84 G4SurfacePropertyTable::iterator pos;
85 for (pos = theSurfacePropertyTable.begin(); pos != theSurfacePropertyTable.end(); pos++) {
86 if (*pos != nullptr) {
87 delete *pos;
88 }
89 }
92}
static void DumpTableInfo()

◆ DumpTableInfo()

void G4SurfaceProperty::DumpTableInfo ( )
static

Definition at line 69 of file G4SurfaceProperty.cc.

70{
71 G4cout << "***** Surface Property Table : Nb of Surface Properties = "
72 << GetNumberOfSurfaceProperties() << " *****" << G4endl;
73
74 for (auto pSurfaceProperty : theSurfacePropertyTable) {
75 G4cout << pSurfaceProperty->GetName() << " : " << G4endl
76 << " Surface Property type = " << pSurfaceProperty->GetType() << G4endl;
77 }
78 G4cout << G4endl;
79}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
static size_t GetNumberOfSurfaceProperties()

Referenced by CleanSurfacePropertyTable().

◆ GetName()

const G4String & G4SurfaceProperty::GetName ( ) const
inline

◆ GetNumberOfSurfaceProperties()

size_t G4SurfaceProperty::GetNumberOfSurfaceProperties ( )
static

Definition at line 66 of file G4SurfaceProperty.cc.

66{ return theSurfacePropertyTable.size(); }

Referenced by DumpTableInfo().

◆ GetSurfacePropertyTable()

const G4SurfacePropertyTable * G4SurfaceProperty::GetSurfacePropertyTable ( )
static

Definition at line 61 of file G4SurfaceProperty.cc.

62{
64}

Referenced by G4GDMLReadSolids::GetSurfaceProperty().

◆ GetType()

const G4SurfaceType & G4SurfaceProperty::GetType ( ) const
inline

◆ SetName()

void G4SurfaceProperty::SetName ( const G4String & name)
inline

Definition at line 82 of file G4SurfaceProperty.hh.

82{ theName = name; }
const char * name(G4int ptype)

◆ SetType()

virtual void G4SurfaceProperty::SetType ( const G4SurfaceType & type)
inlinevirtual

Reimplemented in G4OpticalSurface.

Definition at line 87 of file G4SurfaceProperty.hh.

87{ theType = type; }

Member Data Documentation

◆ theName

G4String G4SurfaceProperty::theName
protected

◆ theSurfacePropertyTable

G4SurfacePropertyTable G4SurfaceProperty::theSurfacePropertyTable
staticprotected

◆ theType


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