246 std::vector<std::vector<std::vector<double> > > cell;
247 std::vector<double> ez;
249 std::vector<std::vector<double> > eyz;
250 for(
int y = 0;
y < fNSegment[1];
y++) eyz.push_back(ez);
251 for(
int x = 0;
x < fNSegment[0];
x++) cell.push_back(eyz);
253 std::vector<std::vector<double> > xycell;
254 std::vector<double> ey;
255 for(
int y = 0;
y < fNSegment[1];
y++) ey.push_back(0.);
256 for(
int x = 0;
x < fNSegment[0];
x++) xycell.push_back(ey);
258 std::vector<std::vector<double> > yzcell;
259 for(
int y = 0;
y < fNSegment[1];
y++) yzcell.push_back(ez);
261 std::vector<std::vector<double> > xzcell;
262 for(
int x = 0;
x < fNSegment[0];
x++) xzcell.push_back(ez);
266 std::map<G4int, G4double*>::iterator itr = map->begin();
267 for(; itr != map->end(); itr++) {
277 G4double xymax = 0., yzmax = 0., xzmax = 0.;
278 for(
int x = 0;
x < fNSegment[0];
x++) {
279 for(
int y = 0;
y < fNSegment[1];
y++) {
280 if(xymin > xycell[
x][
y]) xymin = xycell[
x][
y];
281 if(xymax < xycell[
x][y]) xymax = xycell[
x][
y];
283 for(
int z = 0;
z < fNSegment[2];
z++) {
284 if(xzmin > xzcell[
x][
z]) xzmin = xzcell[
x][
z];
285 if(xzmax < xzcell[
x][z]) xzmax = xzcell[
x][
z];
288 for(
int y = 0; y < fNSegment[1]; y++) {
289 for(
int z = 0;
z < fNSegment[2];
z++) {
290 if(yzmin > yzcell[y][
z]) yzmin = yzcell[
y][
z];
291 if(yzmax < yzcell[y][z]) yzmax = yzcell[
y][
z];
308 for(
int x = 0;
x < fNSegment[0];
x++) {
309 for(
int y = 0; y < fNSegment[1]; y++) {
332 pVisManager->
Draw(*poly);
334 G4Box xyplate2 = xyplate;
338 pVisManager->
Draw(*poly2);
371 for(
int y = 0; y < fNSegment[1]; y++) {
372 for(
int z = 0;
z < fNSegment[2];
z++) {
390 G4Box yzplate(
"yz", thick,
391 fSize[1]/fNSegment[1],
392 fSize[2]/fNSegment[2]);
396 pVisManager->
Draw(*poly);
398 G4Box yzplate2 = yzplate;
402 pVisManager->
Draw(*poly2);
435 for(
int x = 0;
x < fNSegment[0];
x++) {
436 for(
int z = 0; z < fNSegment[2]; z++) {
454 G4Box xzplate(
"xz",
fSize[0]/fNSegment[0], thick,
455 fSize[2]/fNSegment[2]);
459 pVisManager->
Draw(*poly);
461 G4Box xzplate2 = xzplate;
465 pVisManager->
Draw(*poly2);
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
void SetColour(const G4Colour &)
void SetPSName(G4String &psName)
G4ThreeVector fCenterPosition
G4ThreeVector GetReplicaPosition(G4int x, G4int y, G4int z)
static G4VVisManager * GetConcreteInstance()
void SetPSUnit(G4String &unit)
virtual void GetMapColor(G4double val, G4double color[4])=0
void SetForceSolid(G4bool)
HepPolyhedron & Transform(const G4Transform3D &t)
void SetMinMax(G4double minVal, G4double maxVal)
G4bool IfFloatMinMax() const
G4RotationMatrix * fRotationMatrix
virtual void BeginDraw(const G4Transform3D &objectTransformation=G4Transform3D())=0
void SetForceAuxEdgeVisible(G4bool)
void SetVisAttributes(const G4VisAttributes *)
virtual G4Polyhedron * GetPolyhedron() const
void GetXYZ(G4int index, G4int q[3]) const
static const G4double pos
virtual void DrawColorChart(G4int nPoint=5)