Geant4 11.1.1
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 34 of file G4gsbool.cc.

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