Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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

◆ G4gsbool()

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}
G3G4DLL_API G3VolTable G3Vol
Definition: clparse.cc:54
@ FatalException
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cerr
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