59 std::cout<<
"\n\n\tcentre of the phantom: " <<centre/
mm<<
" [mm]"<<
G4endl;
60 std::cout<<
"\thalf thickness of the phantom: " <<halfSize/
mm<<
" [mm]\n"<<
G4endl;
68 G4Box *fullWaterPhantomBox =
new G4Box(
"fullWaterPhantomBox", halfSize.
getX(), halfSize.
getY(), halfSize.
getZ());
70 fullWaterPhantomPV =
new G4PVPlacement(0, centre,
"fullWaterPhantomPV", fullWaterPhantomLV, PVWorld,
false, 0);
78 fullWaterPhantomLV->SetRegion(regVol);
85 fullWaterPhantomLV->SetVisAttributes(simpleAlSVisAtt);
88 sensDet=
new CML2SDWithVoxels(
"Water phantom", saving_in_ROG_Voxels_every_events, seed, ROGOutFile, bSaveROG,
G4ThreeVector(0.,0.,0.), halfSize, 100, 100, 100);
97 fullWaterPhantomLV->SetSensitiveDetector(sensDet);
void set(double x, double y, double z)
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
G4ThreeVector GetFrameTranslation() const
CLHEP::Hep3Vector G4ThreeVector
void AddRootLogicalVolume(G4LogicalVolume *lv)
void SetVisibility(G4bool)
void SetProductionCut(G4double cut, G4int index=-1)
static G4NistManager * Instance()
void SetROgeometry(G4VReadOutGeometry *value)
void AddNewDetector(G4VSensitiveDetector *aSD)
static G4SDManager * GetSDMpointer()
void setBuildData(G4ThreeVector centre, G4ThreeVector halfSize, G4int NumberOfVoxelsAlongX, G4int NumberOfVoxelsAlongY, G4int NumberOfVoxelsAlongZ)
bool Construct(G4VPhysicalVolume *PVWorld, G4int saving_in_ROG_Voxels_every_events, G4int seed, G4String ROGOutFile, G4bool bSaveROG)
void SetProductionCuts(G4ProductionCuts *cut)