Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4LogicalSkinSurface Class Reference

#include <G4LogicalSkinSurface.hh>

Inheritance diagram for G4LogicalSkinSurface:
Collaboration 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
G4LogicalSkinSurfaceTable
GetSurfaceTable ()
 
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 ( const G4String name,
G4LogicalVolume vol,
G4SurfaceProperty surfaceProperty 
)

Definition at line 50 of file G4LogicalSkinSurface.cc.

53  : G4LogicalSurface(name, surfaceProperty),
54  LogVolume(logicalVolume)
55 {
56  if (!theSkinSurfaceTable)
57  {
58  theSkinSurfaceTable = new G4LogicalSkinSurfaceTable;
59  }
60  // Store in the table of Surfaces
61  //
62  theSkinSurfaceTable->push_back(this);
63 }
G4LogicalSurface(const G4String &name, G4SurfaceProperty *prop)
std::vector< G4LogicalSkinSurface * > G4LogicalSkinSurfaceTable
G4LogicalSkinSurface::~G4LogicalSkinSurface ( )

Definition at line 77 of file G4LogicalSkinSurface.cc.

78 {
79 // delete theSkinSurfaceTable; theSkinSurfaceTable = 0;
80 }

Member Function Documentation

void G4LogicalSkinSurface::CleanSurfaceTable ( )
static

Definition at line 169 of file G4LogicalSkinSurface.cc.

170 {
171  if (theSkinSurfaceTable)
172  {
173  G4LogicalSkinSurfaceTable::iterator pos;
174  for(pos=theSkinSurfaceTable->begin();
175  pos!=theSkinSurfaceTable->end(); pos++)
176  {
177  if (*pos) { delete *pos; }
178  }
179  theSkinSurfaceTable->clear();
180  }
181  return;
182 }
static const G4double pos

Here is the caller graph for this function:

void G4LogicalSkinSurface::DumpInfo ( )
static

Definition at line 150 of file G4LogicalSkinSurface.cc.

151 {
152  G4cout << "***** Skin Surface Table : Nb of Surfaces = "
153  << GetNumberOfSkinSurfaces() << " *****" << G4endl;
154 
155  if (theSkinSurfaceTable)
156  {
157  for (size_t i=0; i<theSkinSurfaceTable->size(); i++)
158  {
159  G4LogicalSkinSurface* pSkinSurface = (*theSkinSurfaceTable)[i];
160  G4cout << pSkinSurface->GetName() << " : " << G4endl
161  << " Skin of logical volume "
162  << pSkinSurface->GetLogicalVolume()->GetName()
163  << G4endl;
164  }
165  }
166  G4cout << G4endl;
167 }
const G4LogicalVolume * GetLogicalVolume() const
static size_t GetNumberOfSkinSurfaces()
const G4String & GetName() const
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
const G4String & GetName() const

Here is the call graph for this function:

const G4LogicalVolume* G4LogicalSkinSurface::GetLogicalVolume ( ) const
inline

Here is the caller graph for this function:

size_t G4LogicalSkinSurface::GetNumberOfSkinSurfaces ( )
static

Definition at line 125 of file G4LogicalSkinSurface.cc.

126 {
127  if (theSkinSurfaceTable)
128  {
129  return theSkinSurfaceTable->size();
130  }
131  return 0;
132 }

Here is the caller graph for this function:

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

Definition at line 135 of file G4LogicalSkinSurface.cc.

136 {
137  if (theSkinSurfaceTable)
138  {
139  for (size_t i=0; i<theSkinSurfaceTable->size(); i++)
140  {
141  if((*theSkinSurfaceTable)[i]->GetLogicalVolume() == vol)
142  return (*theSkinSurfaceTable)[i];
143  }
144  }
145  return 0;
146 }

Here is the caller graph for this function:

const G4LogicalSkinSurfaceTable * G4LogicalSkinSurface::GetSurfaceTable ( )
static

Definition at line 116 of file G4LogicalSkinSurface.cc.

117 {
118  if (!theSkinSurfaceTable)
119  {
120  theSkinSurfaceTable = new G4LogicalSkinSurfaceTable;
121  }
122  return theSkinSurfaceTable;
123 }
std::vector< G4LogicalSkinSurface * > G4LogicalSkinSurfaceTable

Here is the caller graph for this function:

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

Definition at line 107 of file G4LogicalSkinSurface.cc.

108 {
109  return (this != (G4LogicalSkinSurface *) &right);
110 }
G4int G4LogicalSkinSurface::operator== ( const G4LogicalSkinSurface right) const

Definition at line 101 of file G4LogicalSkinSurface.cc.

102 {
103  return (this == (G4LogicalSkinSurface *) &right);
104 }
void G4LogicalSkinSurface::SetLogicalVolume ( G4LogicalVolume vol)
inline

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