G4gsbool.cc File Reference

#include "G3G4Interface.hh"
#include "G3VolTable.hh"
#include "globals.hh"

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.

References G3VolTableEntry::AddOverlap(), FatalException, G3Vol, G4cerr, G4endl, G4Exception(), and G3VolTable::GetVTE().

00036 {
00037   // find VTEs
00038   G3VolTableEntry* vte = G3Vol.GetVTE(volName);
00039   G3VolTableEntry* manyVTE = G3Vol.GetVTE(manyVolName);
00040 
00041   if (vte == 0) {
00042     G4String text = "G4gsbool: '" + volName + "' has no VolTableEntry";
00043     G4Exception("G4gsbool()", "G3toG40012", FatalException, text);
00044     return;
00045   } 
00046   else if (manyVTE == 0) {
00047     // warning
00048     G4cerr << "G4gsbool: '" << manyVolName << "' has no VolTableEntry." 
00049            << G4endl
00050            << "          Specified overlap will be ignored."
00051            << G4endl;
00052     return;        
00053   } 
00054   else { 
00055     manyVTE->AddOverlap(vte);
00056   }   
00057 }


Generated on Mon May 27 17:50:45 2013 for Geant4 by  doxygen 1.4.7