Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4gsbool.cc File Reference
#include "G3G4Interface.hh"
#include "G3VolTable.hh"
#include "globals.hh"
Include dependency graph for G4gsbool.cc:

Go to the source code of this file.

Functions

void G4gsbool (G4String volName, G4String manyVolName)
 

Function Documentation

void G4gsbool ( G4String  volName,
G4String  manyVolName 
)

Definition at line 35 of file G4gsbool.cc.

36 {
37  // find VTEs
38  G3VolTableEntry* vte = G3Vol.GetVTE(volName);
39  G3VolTableEntry* manyVTE = G3Vol.GetVTE(manyVolName);
40 
41  if (vte == 0) {
42  G4String text = "G4gsbool: '" + volName + "' has no VolTableEntry";
43  G4Exception("G4gsbool()", "G3toG40012", FatalException, text);
44  return;
45  }
46  else if (manyVTE == 0) {
47  // warning
48  G4cerr << "G4gsbool: '" << manyVolName << "' has no VolTableEntry."
49  << G4endl
50  << " Specified overlap will be ignored."
51  << G4endl;
52  return;
53  }
54  else {
55  manyVTE->AddOverlap(vte);
56  }
57 }
void AddOverlap(G3VolTableEntry *aOverlap)
G3VolTableEntry * GetVTE(const G4String &Vname)
Definition: G3VolTable.cc:54
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
#define G4endl
Definition: G4ios.hh:61
G3G4DLL_API G3VolTable G3Vol
Definition: clparse.cc:54
G4GLOB_DLL std::ostream G4cerr

Here is the call graph for this function: