64 detectorChoice(0), factory(0),
65 World(0), WorldLog(0), WorldPhys(0),
66 Phantom(0), PhantomLog(0), PhantomPhys(0),
67 phantomAbsorberMaterial(0)
70 phantomSizeX = 15.*
cm;
71 phantomSizeY = 15.*
cm;
72 phantomSizeZ = 15.*
cm;
95 delete detectorMessenger;
100 pMaterial -> DefineMaterials();
106 factory -> CreateSource(PhantomPhys);
114 factory -> CleanSource();
118 switch(detectorChoice)
137 factory -> CreateSource(PhantomPhys);
142 G4cout <<
"... Geometry is notified .... THAT'S IT!!!!!" <<
G4endl;
147 if (val ==
"Iodine") detectorChoice = 1;
149 if(val==
"Leipzig") detectorChoice = 2;
151 if(val==
"TG186") detectorChoice = 3;
153 if(val==
"Flexi") detectorChoice = 4;
168 G4Material* air = pMaterial -> GetMat(
"Air") ;
169 G4Material* water = pMaterial -> GetMat(
"Water");
172 World =
new G4Box(
"World",worldSizeX,worldSizeY,worldSizeZ);
177 Phantom =
new G4Box(
"Phantom",phantomSizeX,phantomSizeY,phantomSizeZ);
192 simpleBoxVisAtt -> SetVisibility(
true);
193 simpleBoxVisAtt -> SetForceWireframe(
true);
194 PhantomLog -> SetVisAttributes(simpleBoxVisAtt);
200 <<
"the phantom is a water box whose size is: " <<
G4endl
201 << phantomSizeX *2./
cm
203 << phantomSizeY *2./
cm
205 << phantomSizeZ *2./
cm
207 <<
"The phantom is made of "
208 << phantomAbsorberMaterial -> GetName() <<
G4endl
209 <<
"the source is at the center of the phantom" <<
G4endl
210 <<
"----------------"
224 phantomAbsorberMaterial = pttoMaterial;
228 {
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
static constexpr double m
static constexpr double cm
void SetPhantomMaterial(G4String)
static G4RunManager * GetRunManager()
~BrachyDetectorConstruction()
void SwitchBrachytherapicSeed()
static const G4VisAttributes & GetInvisible()
BrachyDetectorConstruction()