38 #include "DetectorConstruction.hh"
39 #include "VoxelParam.hh"
66 DXYZ_WORLD/2., DXYZ_WORLD/2., DXYZ_WORLD/2.);
68 G4Material* vacuum = nistManager-> FindOrBuildMaterial(
"G4_Galactic");
71 lv_world, 0,
false, 0);
74 va-> SetVisibility(
false);
75 lv_world-> SetVisAttributes(va);
82 DXY_PHANTOM/2., DXY_PHANTOM/2., DZ_PHANTOM/2.);
84 G4Material* water = nistManager-> FindOrBuildMaterial(
"G4_WATER");
89 lv_phantom-> SetVisAttributes(va);
97 G4Box* sld_vxp =
new G4Box(
"vxplane", DXY_VXP/2., DXY_VXP/2., DZ_VXP/2.);
98 G4LV* lv_vxp =
new G4LV(sld_vxp, water,
"vxplane");
101 va-> SetVisibility(
false);
102 lv_vxp-> SetVisAttributes(va);
104 for (
G4int iz =0; iz < 500; iz++) {
105 G4double z0 = -DZ_PHANTOM/2. + (iz+0.5)*DZ_VXP;
107 lv_vxp,
"vxplane", lv_phantom,
false, 1000+iz);
111 G4Box* sld_voxel =
new G4Box(
"voxel",1.,1.,1.);
115 va-> SetVisibility(
false);
118 const G4int nvoxels = 100*100;
CLHEP::Hep3Vector G4ThreeVector
void SetSensitiveDetector(const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
static constexpr double mm
G4VPhysicalVolume * Construct()
G4LogicalVolume * flv_voxel
virtual void ConstructSDandField()
static constexpr double cm
static G4NistManager * Instance()