58 std::cout<<
"\n\n\tcentre of the inside box: " <<centreBoxInside/
mm<<
" [mm]"<<
G4endl;
59 std::cout<<
"\thalf thickness of the inside box: " <<halfBoxInside_Thickness/
mm<<
" [mm]\n"<<
G4endl;
77 G4int natoms, ncomponents;
93 boxInSideMaterial=PMMA;
94 std::cout <<
"boxInSideMaterial name "<<boxInSideMaterial->
GetName() <<
" density "<< boxInSideMaterial->
GetDensity()/(
g/
cm3) <<
" g/cm3"<<
G4endl;
96 centreBoxInside.
set(0,0,-50);
97 halfBoxInside_Thickness=3.*
cm;
99 G4Box *boxInSide=
new G4Box(
"BoxInSide", halfBoxInside_Thickness, halfBoxInside_Thickness, halfBoxInside_Thickness);
101 boxInSidePV =
new G4PVPlacement(0, centre+centreBoxInside,
"BoxInsidePV", boxInSideLV,PVWorld,
false,0,0);
106 G4Box *layer=
new G4Box(
"layer", halfSize.
getX(), halfSize.
getY(), halfPMMA_Z_Thickness);
110 std::cout <<
"layerMaterial name "<<layerMaterial->
GetName() <<
" density " << layerMaterial->
GetDensity()/(
g/
cm3) <<
" g/cm3"<<
G4endl;
114 boxOutSideMaterial=lightWater;
115 G4double halfBoxOutSide_Thickness=halfSize.
getZ()-halfPMMA_Z_Thickness;
116 G4Box *boxOutSide=
new G4Box(
"BoxOutSide", halfSize.
getX(), halfSize.
getY(), halfBoxOutSide_Thickness);
123 "OutMinusInBoxPV",OutMinusInBoxLV,PVWorld,
false,0);
125 std::cout <<
"boxOutSideMaterial name "<<boxOutSideMaterial->
GetName() <<
" density "<<boxOutSideMaterial->
GetDensity()/(
g/
cm3) <<
" g/cm3"<<
G4endl;
138 layerLV->SetRegion(regVol);
166 layerLV->SetVisAttributes(simple_PMMA_VisAttWalls);
169 sensDet=
new CML2SDWithVoxels(
"BoxInBoxPhantom", saving_in_ROG_Voxels_every_events, seed, ROGOutFile, bSaveROG, centre, halfSize, 100, 100, 100);
179 layerLV->SetSensitiveDetector(sensDet);