63 detectorChoice(0), factory(0),
64 World(0), WorldLog(0), WorldPhys(0),
65 Phantom(0), PhantomLog(0), PhantomPhys(0),
66 phantomAbsorberMaterial(0)
69 phantomSizeX = 15.*
cm;
70 phantomSizeY = 15.*
cm;
71 phantomSizeZ = 15.*
cm;
94 delete detectorMessenger;
99 pMaterial -> DefineMaterials();
105 factory -> CreateSource(PhantomPhys);
113 factory -> CleanSource();
117 switch(detectorChoice)
133 factory -> CreateSource(PhantomPhys);
138 G4cout <<
"... Geometry is notified .... THAT'S IT!!!!!" <<
G4endl;
143 if (val ==
"Iodium") detectorChoice = 1;
145 if(val==
"Leipzig") detectorChoice = 2;
147 if(val==
"Iridium") detectorChoice = 3;
161 G4Material* air = pMaterial -> GetMat(
"Air") ;
162 G4Material* water = pMaterial -> GetMat(
"Water");
165 World =
new G4Box(
"World",worldSizeX,worldSizeY,worldSizeZ);
170 Phantom =
new G4Box(
"Phantom",phantomSizeX,phantomSizeY,phantomSizeZ);
185 simpleBoxVisAtt -> SetVisibility(
true);
186 simpleBoxVisAtt -> SetForceWireframe(
true);
187 PhantomLog -> SetVisAttributes(simpleBoxVisAtt);
193 <<
"the phantom is a water box whose size is: " <<
G4endl
194 << phantomSizeX *2./
cm
196 << phantomSizeY *2./
cm
198 << phantomSizeZ *2./
cm
200 <<
"The phantom is made of "
201 << phantomAbsorberMaterial -> GetName() <<
G4endl
202 <<
"the source is at the center of the phantom" <<
G4endl
203 <<
"----------------"
217 phantomAbsorberMaterial = pttoMaterial;
221 {
G4cout <<
"WARNING: material '" << materialChoice <<
"' not available!" <<
G4endl;}
CLHEP::Hep3Vector G4ThreeVector
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
void SelectBrachytherapicSeed(G4String val)
void PrintDetectorParameters()
G4VPhysicalVolume * Construct()
G4GLOB_DLL std::ostream G4cout
void SetPhantomMaterial(G4String)
static G4RunManager * GetRunManager()
~BrachyDetectorConstruction()
static const G4VisAttributes Invisible
void SwitchBrachytherapicSeed()
BrachyDetectorConstruction()