65 :
name(aname), solid(0), lv(0), lvsub(0),
85 G4cout <<
"%%% Warning (G4EzVolume): volume is already created."
90 solid=
new G4Box(
name, dx/2., dy/2., dz/2.);
95 lv-> SetVisAttributes(va);
106 G4cout <<
"%%% Warning (G4EzVolume): volume is already created."
111 solid=
new G4Tubs(
name, rmin, rmax, dz, phi0, dphi);
116 lv-> SetVisAttributes(va);
129 G4cout <<
"%%% Warning (G4EzVolume): volume is already created."
134 solid=
new G4Cons(
name, rmin1, rmax1, rmin2, rmax2,
140 lv-> SetVisAttributes(va);
152 G4cout <<
"%%% Warning (G4EzVolume): volume is already created."
157 solid=
new G4Sphere(
name, rmin, rmax, phi0, dphi, theta0, dtheta);
162 lv-> SetVisAttributes(va);
171 G4cout <<
"%%% Warning (G4EzVolume): volume is already created."
181 lv-> SetVisAttributes(va);
192 G4cout <<
"%%% Warning (G4EzVolume): volume is not yet created."
217 G4cout <<
"%%% Warning (G4EzVolume): volume is not yet created."
242 G4cout <<
"%%% Warning (G4EzVolume): volume is not yet created."
248 new G4PVReplica(
name, lv, parent->lv, pAxis, nReplicas, width, offset);
250 nplacement += nReplicas;
262 G4cout <<
"%%% Error (G4EzVolume): voxelization is valid "
263 <<
"only for Box geometry." <<
G4endl;
268 G4cout <<
"%%% Error (G4EzVolume): already voxelized." <<
G4endl;
281 G4Box* voxel=
new G4Box(
"voxel", ddx/2., ddy/2., ddz/2.);
282 G4Material* voxelMaterial= lv-> GetMaterial();
286 lvsub-> SetVisAttributes(vavoxel);
290 G4int nvoxel= nx*ny*nz;
304 lvsub-> SetSensitiveDetector(asd);
308 if(lv!=0) lv-> SetSensitiveDetector(asd);