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();
116 switch(detectorChoice)
132 factory -> CreateSource(PhantomPhys);
169 G4Material* air = pMaterial -> GetMat(
"Air") ;
170 G4Material* water = pMaterial -> GetMat(
"Water");
173 World =
new G4Box(
"World",worldSizeX,worldSizeY,worldSizeZ);
176 "WorldPhys",WorldLog,0,
false,0);
179 Phantom =
new G4Box(
"Phantom",phantomSizeX,phantomSizeY,
196 simpleBoxVisAtt -> SetVisibility(
true);
197 simpleBoxVisAtt -> SetForceWireframe(
true);
198 PhantomLog -> SetVisAttributes(simpleBoxVisAtt);
204 G4cout <<
"-----------------------------------------------------------------------"
206 <<
"the phantom is a water box whose size is: " <<
G4endl
207 << phantomSizeX *2./
cm
209 << phantomSizeY *2./
cm
211 << phantomSizeZ *2./
cm
213 <<
"The phantom is made of "
214 << phantomAbsorberMaterial -> GetName() <<
G4endl
215 <<
"the source is at the center of the phantom" <<
G4endl
216 <<
"-------------------------------------------------------------------------"
229 phantomAbsorberMaterial = pttoMaterial;
234 G4cout <<
"WARNING: material '" << materialChoice
235 <<
"' not available!" <<
G4endl;