Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4ScoringBox Class Reference

#include <G4ScoringBox.hh>

Inheritance diagram for G4ScoringBox:
G4VScoringMesh

Public Member Functions

 G4ScoringBox (G4String wName)
 
 ~G4ScoringBox ()
 
virtual void Construct (G4VPhysicalVolume *fWorldPhys)
 
void List () const
 
void Draw (std::map< G4int, G4double * > *map, G4VScoreColorMap *colorMap, G4int axflg=111)
 
void DrawColumn (std::map< G4int, G4double * > *map, G4VScoreColorMap *colorMap, G4int idxProj, G4int idxColumn)
 
void SetSegmentDirection (G4int dir)
 
- Public Member Functions inherited from G4VScoringMesh
 G4VScoringMesh (const G4String &wName)
 
virtual ~G4VScoringMesh ()
 
virtual void WorkerConstruct (G4VPhysicalVolume *fWorldPhys)
 
const G4StringGetWorldName () const
 
G4bool IsActive () const
 
void Activate (G4bool vl=true)
 
MeshShape GetShape () const
 
void Accumulate (G4THitsMap< G4double > *map)
 
void Merge (const G4VScoringMesh *scMesh)
 
void Dump ()
 
void DrawMesh (const G4String &psName, G4VScoreColorMap *colorMap, G4int axflg=111)
 
void DrawMesh (const G4String &psName, G4int idxPlane, G4int iColumn, G4VScoreColorMap *colorMap)
 
void ResetScore ()
 
void SetSize (G4double size[3])
 
G4ThreeVector GetSize () const
 
void SetCenterPosition (G4double centerPosition[3])
 
G4ThreeVector GetTranslation () const
 
void RotateX (G4double delta)
 
void RotateY (G4double delta)
 
void RotateZ (G4double delta)
 
G4RotationMatrix GetRotationMatrix () const
 
void SetNumberOfSegments (G4int nSegment[3])
 
void GetNumberOfSegments (G4int nSegment[3])
 
void SetPrimitiveScorer (G4VPrimitiveScorer *ps)
 
void SetFilter (G4VSDFilter *filter)
 
void SetCurrentPrimitiveScorer (const G4String &name)
 
G4bool FindPrimitiveScorer (const G4String &psname)
 
G4bool IsCurrentPrimitiveScorerNull ()
 
G4String GetPSUnit (const G4String &psname)
 
G4String GetCurrentPSUnit ()
 
void SetCurrentPSUnit (const G4String &unit)
 
G4double GetPSUnitValue (const G4String &psname)
 
void SetDrawPSName (const G4String &psname)
 
void GetDivisionAxisNames (G4String divisionAxisNames[3])
 
void SetNullToCurrentPrimitiveScorer ()
 
void SetVerboseLevel (G4int vl)
 
MeshScoreMap GetScoreMap () const
 
G4bool ReadyForQuantity () const
 
void SetMeshElementLogical (G4LogicalVolume *val)
 
G4LogicalVolumeGetMeshElementLogical () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VScoringMesh
G4VPrimitiveScorerGetPrimitiveScorer (const G4String &name)
 
- Protected Attributes inherited from G4VScoringMesh
G4String fWorldName
 
G4VPrimitiveScorerfCurrentPS
 
G4bool fConstructed
 
G4bool fActive
 
MeshShape fShape
 
G4double fSize [3]
 
G4ThreeVector fCenterPosition
 
G4RotationMatrixfRotationMatrix
 
G4int fNSegment [3]
 
std::map< G4String, G4THitsMap
< G4double > * > 
fMap
 
G4MultiFunctionalDetectorfMFD
 
G4int verboseLevel
 
G4bool sizeIsSet
 
G4bool nMeshIsSet
 
G4String fDrawUnit
 
G4double fDrawUnitValue
 
G4String fDrawPSName
 
G4String fDivisionAxisNames [3]
 
G4LogicalVolumefMeshElementLogical
 

Detailed Description

Definition at line 43 of file G4ScoringBox.hh.

Constructor & Destructor Documentation

G4ScoringBox::G4ScoringBox ( G4String  wName)

Definition at line 52 of file G4ScoringBox.cc.

References boxMesh, G4VScoringMesh::fDivisionAxisNames, and G4VScoringMesh::fShape.

53  :G4VScoringMesh(wName), fSegmentDirection(-1)
54 {
55  fShape = boxMesh;
56  fDivisionAxisNames[0] = "X";
57  fDivisionAxisNames[1] = "Y";
58  fDivisionAxisNames[2] = "Z";
59 }
G4VScoringMesh(const G4String &wName)
G4String fDivisionAxisNames[3]
G4ScoringBox::~G4ScoringBox ( )

Definition at line 61 of file G4ScoringBox.cc.

62 {
63 }

Member Function Documentation

void G4ScoringBox::Construct ( G4VPhysicalVolume fWorldPhys)
virtual

Implements G4VScoringMesh.

Definition at line 65 of file G4ScoringBox.cc.

References G4VScoringMesh::fConstructed, G4cout, G4endl, G4VPhysicalVolume::GetName(), G4VScoringMesh::ResetScore(), and G4VScoringMesh::verboseLevel.

66 {
67  if(fConstructed) {
68 
69  if(verboseLevel > 0)
70  G4cout << fWorldPhys->GetName() << " --- All quantities are reset."
71  << G4endl;
72  ResetScore();
73 
74  } else {
75  fConstructed = true;
76  SetupGeometry(fWorldPhys);
77  }
78 }
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
#define G4endl
Definition: G4ios.hh:61
void G4ScoringBox::Draw ( std::map< G4int, G4double * > *  map,
G4VScoreColorMap colorMap,
G4int  axflg = 111 
)
virtual

Implements G4VScoringMesh.

Definition at line 253 of file G4ScoringBox.cc.

References test::c, DBL_MAX, G4VVisManager::Draw(), G4VScoreColorMap::DrawColorChart(), G4VScoringMesh::fCenterPosition, G4VScoringMesh::fDrawPSName, G4VScoringMesh::fDrawUnit, G4VScoringMesh::fDrawUnitValue, G4VScoringMesh::fNSegment, G4VScoringMesh::fRotationMatrix, G4VScoringMesh::fSize, G4VVisManager::GetConcreteInstance(), G4VScoreColorMap::GetMapColor(), G4VScoreColorMap::IfFloatMinMax(), HepGeom::Transform3D::inverse(), G4VisAttributes::SetColour(), G4VisAttributes::SetForceAuxEdgeVisible(), G4VisAttributes::SetForceSolid(), G4VScoreColorMap::SetMinMax(), G4VScoreColorMap::SetPSName(), G4VScoreColorMap::SetPSUnit(), test::x, and z.

254  {
255 
257  if(pVisManager) {
258 
259  // cell vectors
260  std::vector<std::vector<std::vector<double> > > cell; // cell[X][Y][Z]
261  std::vector<double> ez;
262  for(int z = 0; z < fNSegment[2]; z++) ez.push_back(0.);
263  std::vector<std::vector<double> > eyz;
264  for(int y = 0; y < fNSegment[1]; y++) eyz.push_back(ez);
265  for(int x = 0; x < fNSegment[0]; x++) cell.push_back(eyz);
266 
267  std::vector<std::vector<double> > xycell; // xycell[X][Y]
268  std::vector<double> ey;
269  for(int y = 0; y < fNSegment[1]; y++) ey.push_back(0.);
270  for(int x = 0; x < fNSegment[0]; x++) xycell.push_back(ey);
271 
272  std::vector<std::vector<double> > yzcell; // yzcell[Y][Z]
273  for(int y = 0; y < fNSegment[1]; y++) yzcell.push_back(ez);
274 
275  std::vector<std::vector<double> > xzcell; // xzcell[X][Z]
276  for(int x = 0; x < fNSegment[0]; x++) xzcell.push_back(ez);
277 
278  // projections
279  G4int q[3];
280  std::map<G4int, G4double*>::iterator itr = map->begin();
281  for(; itr != map->end(); itr++) {
282  GetXYZ(itr->first, q);
283 
284  xycell[q[0]][q[1]] += *(itr->second)/fDrawUnitValue;
285  yzcell[q[1]][q[2]] += *(itr->second)/fDrawUnitValue;
286  xzcell[q[0]][q[2]] += *(itr->second)/fDrawUnitValue;
287  }
288 
289  // search max. & min. values in each slice
290  G4double xymin = DBL_MAX, yzmin = DBL_MAX, xzmin = DBL_MAX;
291  G4double xymax = 0., yzmax = 0., xzmax = 0.;
292  for(int x = 0; x < fNSegment[0]; x++) {
293  for(int y = 0; y < fNSegment[1]; y++) {
294  if(xymin > xycell[x][y]) xymin = xycell[x][y];
295  if(xymax < xycell[x][y]) xymax = xycell[x][y];
296  }
297  for(int z = 0; z < fNSegment[2]; z++) {
298  if(xzmin > xzcell[x][z]) xzmin = xzcell[x][z];
299  if(xzmax < xzcell[x][z]) xzmax = xzcell[x][z];
300  }
301  }
302  for(int y = 0; y < fNSegment[1]; y++) {
303  for(int z = 0; z < fNSegment[2]; z++) {
304  if(yzmin > yzcell[y][z]) yzmin = yzcell[y][z];
305  if(yzmax < yzcell[y][z]) yzmax = yzcell[y][z];
306  }
307  }
308 
309 
310  G4VisAttributes att;
311  att.SetForceSolid(true);
312  att.SetForceAuxEdgeVisible(true);
313 
314  G4Scale3D scale;
315  if(axflg/100==1) {
316  // xy plane
317  if(colorMap->IfFloatMinMax()) { colorMap->SetMinMax(xymin ,xymax); }
318  G4ThreeVector zhalf(0., 0., fSize[2]/fNSegment[2]*0.98);
319  G4Box xyplate("xy", fSize[0]/fNSegment[0], fSize[1]/fNSegment[1],
320  fSize[2]/fNSegment[2]*0.01);
321  for(int x = 0; x < fNSegment[0]; x++) {
322  for(int y = 0; y < fNSegment[1]; y++) {
323  G4ThreeVector pos(GetReplicaPosition(x, y, 0) - zhalf);
324  G4ThreeVector pos2(GetReplicaPosition(x, y, fNSegment[2]-1) + zhalf);
325  G4Transform3D trans, trans2;
326  if(fRotationMatrix) {
327  trans = G4Rotate3D(*fRotationMatrix).inverse()*G4Translate3D(pos);
328  trans = G4Translate3D(fCenterPosition)*trans;
329  trans2 = G4Rotate3D(*fRotationMatrix).inverse()*G4Translate3D(pos2);
330  trans2 = G4Translate3D(fCenterPosition)*trans2;
331  } else {
334  }
335  G4double c[4];
336  colorMap->GetMapColor(xycell[x][y], c);
337  att.SetColour(c[0], c[1], c[2]);//, c[3]);
338  pVisManager->Draw(xyplate, att, trans);
339  pVisManager->Draw(xyplate, att, trans2);
340 
341  }
342  }
343  }
344  axflg = axflg%100;
345  if(axflg/10==1) {
346  // yz plane
347  if(colorMap->IfFloatMinMax()) { colorMap->SetMinMax(yzmin, yzmax); }
348  G4ThreeVector xhalf(fSize[0]/fNSegment[0]*0.98, 0., 0.);
349  G4Box yzplate("yz", fSize[0]/fNSegment[0]*0.01, fSize[1]/fNSegment[1],
350  fSize[2]/fNSegment[2]);
351  for(int y = 0; y < fNSegment[1]; y++) {
352  for(int z = 0; z < fNSegment[2]; z++) {
353  G4ThreeVector pos(GetReplicaPosition(0, y, z) - xhalf);
354  G4ThreeVector pos2(GetReplicaPosition(fNSegment[0]-1, y, z) + xhalf);
355  G4Transform3D trans, trans2;
356  if(fRotationMatrix) {
357  trans = G4Rotate3D(*fRotationMatrix).inverse()*G4Translate3D(pos);
358  trans = G4Translate3D(fCenterPosition)*trans;
359  trans2 = G4Rotate3D(*fRotationMatrix).inverse()*G4Translate3D(pos2);
360  trans2 = G4Translate3D(fCenterPosition)*trans2;
361  } else {
364  }
365  G4double c[4];
366  colorMap->GetMapColor(yzcell[y][z], c);
367  att.SetColour(c[0], c[1], c[2]);//, c[3]);
368  pVisManager->Draw(yzplate, att, trans);
369  pVisManager->Draw(yzplate, att, trans2);
370 
371  }
372  }
373  }
374  axflg = axflg%10;
375  if(axflg==1) {
376  // xz plane
377  if(colorMap->IfFloatMinMax()) { colorMap->SetMinMax(xzmin,xzmax); }
378  G4ThreeVector yhalf(0., fSize[1]/fNSegment[1]*0.98, 0.);
379  G4Box xzplate("xz", fSize[0]/fNSegment[0], fSize[1]/fNSegment[1]*0.01,
380  fSize[2]/fNSegment[2]);
381  for(int x = 0; x < fNSegment[0]; x++) {
382  for(int z = 0; z < fNSegment[2]; z++) {
383  G4ThreeVector pos(GetReplicaPosition(x, 0, z) - yhalf);
384  G4ThreeVector pos2(GetReplicaPosition(x, fNSegment[1]-1, z) + yhalf);
385  G4Transform3D trans, trans2;
386  if(fRotationMatrix) {
387  trans = G4Rotate3D(*fRotationMatrix).inverse()*G4Translate3D(pos);
388  trans = G4Translate3D(fCenterPosition)*trans;
389  trans2 = G4Rotate3D(*fRotationMatrix).inverse()*G4Translate3D(pos2);
390  trans2 = G4Translate3D(fCenterPosition)*trans2;
391  } else {
394  }
395  G4double c[4];
396  colorMap->GetMapColor(xzcell[x][z], c);
397  att.SetColour(c[0], c[1], c[2]);//, c[3]);
398  pVisManager->Draw(xzplate, att, trans);
399  pVisManager->Draw(xzplate, att, trans2);
400 
401  }
402  }
403  }
404  }
405  colorMap->SetPSUnit(fDrawUnit);
406  colorMap->SetPSName(fDrawPSName);
407  colorMap->DrawColorChart();
408 }
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
void SetColour(const G4Colour &)
void SetPSName(G4String &psName)
G4ThreeVector fCenterPosition
static G4VVisManager * GetConcreteInstance()
G4double z
Definition: TRTMaterials.hh:39
Definition: G4Box.hh:63
void SetPSUnit(G4String &unit)
virtual void GetMapColor(G4double val, G4double color[4])=0
Transform3D inverse() const
Definition: Transform3D.cc:142
G4double fSize[3]
void SetForceSolid(G4bool)
int G4int
Definition: G4Types.hh:78
void SetMinMax(G4double minVal, G4double maxVal)
G4double fDrawUnitValue
G4RotationMatrix * fRotationMatrix
void SetForceAuxEdgeVisible(G4bool)
HepGeom::Rotate3D G4Rotate3D
HepGeom::Translate3D G4Translate3D
G4bool IfFloatMinMax() const
double G4double
Definition: G4Types.hh:76
#define DBL_MAX
Definition: templates.hh:83
G4String fDrawPSName
virtual void DrawColorChart(G4int nPoint=5)
void G4ScoringBox::DrawColumn ( std::map< G4int, G4double * > *  map,
G4VScoreColorMap colorMap,
G4int  idxProj,
G4int  idxColumn 
)
virtual

Implements G4VScoringMesh.

Definition at line 433 of file G4ScoringBox.cc.

References test::c, DBL_MAX, G4VVisManager::Draw(), G4VScoreColorMap::DrawColorChart(), G4VScoringMesh::fCenterPosition, G4VScoringMesh::fDrawPSName, G4VScoringMesh::fDrawUnit, G4VScoringMesh::fDrawUnitValue, G4VScoringMesh::fNSegment, G4VScoringMesh::fRotationMatrix, G4VScoringMesh::fSize, G4cerr, G4endl, G4VVisManager::GetConcreteInstance(), G4VScoreColorMap::GetMapColor(), G4VScoreColorMap::IfFloatMinMax(), HepGeom::Transform3D::inverse(), G4VisAttributes::SetColour(), G4VisAttributes::SetForceAuxEdgeVisible(), G4VisAttributes::SetForceSolid(), G4VScoreColorMap::SetMinMax(), G4VScoreColorMap::SetPSName(), G4VScoreColorMap::SetPSUnit(), test::x, and z.

436 {
437  G4int iColumn[3] = {2, 0, 1};
438  if(idxColumn<0 || idxColumn>=fNSegment[iColumn[idxProj]])
439  {
440  G4cerr << "ERROR : Column number " << idxColumn
441  << " is out of scoring mesh [0," << fNSegment[iColumn[idxProj]]-1
442  << "]. Method ignored." << G4endl;
443  return;
444  }
446  if(pVisManager) {
447 
448  // cell vectors
449  std::vector<std::vector<std::vector<double> > > cell; // cell[X][Y][Z]
450  std::vector<double> ez;
451  for(int z = 0; z < fNSegment[2]; z++) ez.push_back(0.);
452  std::vector<std::vector<double> > eyz;
453  for(int y = 0; y < fNSegment[1]; y++) eyz.push_back(ez);
454  for(int x = 0; x < fNSegment[0]; x++) cell.push_back(eyz);
455 
456  std::vector<std::vector<double> > xycell; // xycell[X][Y]
457  std::vector<double> ey;
458  for(int y = 0; y < fNSegment[1]; y++) ey.push_back(0.);
459  for(int x = 0; x < fNSegment[0]; x++) xycell.push_back(ey);
460 
461  std::vector<std::vector<double> > yzcell; // yzcell[Y][Z]
462  for(int y = 0; y < fNSegment[1]; y++) yzcell.push_back(ez);
463 
464  std::vector<std::vector<double> > xzcell; // xzcell[X][Z]
465  for(int x = 0; x < fNSegment[0]; x++) xzcell.push_back(ez);
466 
467  // projections
468  G4int q[3];
469  std::map<G4int, G4double*>::iterator itr = map->begin();
470  for(; itr != map->end(); itr++) {
471  GetXYZ(itr->first, q);
472 
473  if(idxProj == 0 && q[2] == idxColumn) { // xy plane
474  xycell[q[0]][q[1]] += *(itr->second)/fDrawUnitValue;
475  }
476  if(idxProj == 1 && q[0] == idxColumn) { // yz plane
477  yzcell[q[1]][q[2]] += *(itr->second)/fDrawUnitValue;
478  }
479  if(idxProj == 2 && q[1] == idxColumn) { // zx plane
480  xzcell[q[0]][q[2]] += *(itr->second)/fDrawUnitValue;
481  }
482  }
483 
484  // search max. & min. values in each slice
485  G4double xymin = DBL_MAX, yzmin = DBL_MAX, xzmin = DBL_MAX;
486  G4double xymax = 0., yzmax = 0., xzmax = 0.;
487  for(int x = 0; x < fNSegment[0]; x++) {
488  for(int y = 0; y < fNSegment[1]; y++) {
489  if(xymin > xycell[x][y]) xymin = xycell[x][y];
490  if(xymax < xycell[x][y]) xymax = xycell[x][y];
491  }
492  for(int z = 0; z < fNSegment[2]; z++) {
493  if(xzmin > xzcell[x][z]) xzmin = xzcell[x][z];
494  if(xzmax < xzcell[x][z]) xzmax = xzcell[x][z];
495  }
496  }
497  for(int y = 0; y < fNSegment[1]; y++) {
498  for(int z = 0; z < fNSegment[2]; z++) {
499  if(yzmin > yzcell[y][z]) yzmin = yzcell[y][z];
500  if(yzmax < yzcell[y][z]) yzmax = yzcell[y][z];
501  }
502  }
503 
504 
505  G4VisAttributes att;
506  att.SetForceSolid(true);
507  att.SetForceAuxEdgeVisible(true);
508 
509 
510  G4Scale3D scale;
511  // xy plane
512  if(idxProj == 0) {
513  if(colorMap->IfFloatMinMax()) { colorMap->SetMinMax(xymin,xymax); }
514  G4Box xyplate("xy", fSize[0]/fNSegment[0], fSize[1]/fNSegment[1],
515  fSize[2]/fNSegment[2]);
516  for(int x = 0; x < fNSegment[0]; x++) {
517  for(int y = 0; y < fNSegment[1]; y++) {
518  G4ThreeVector pos(GetReplicaPosition(x, y, idxColumn));
519  G4Transform3D trans;
520  if(fRotationMatrix) {
521  trans = G4Rotate3D(*fRotationMatrix).inverse()*G4Translate3D(pos);
522  trans = G4Translate3D(fCenterPosition)*trans;
523  } else {
525  }
526  G4double c[4];
527  colorMap->GetMapColor(xycell[x][y], c);
528  att.SetColour(c[0], c[1], c[2]);//, c[3]);
529  pVisManager->Draw(xyplate, att, trans);
530 
531  }
532  }
533  } else
534  // yz plane
535  if(idxProj == 1) {
536  if(colorMap->IfFloatMinMax()) { colorMap->SetMinMax(yzmin,yzmax); }
537  G4Box yzplate("yz", fSize[0]/fNSegment[0], fSize[1]/fNSegment[1],
538  fSize[2]/fNSegment[2]);
539  for(int y = 0; y < fNSegment[1]; y++) {
540  for(int z = 0; z < fNSegment[2]; z++) {
541  G4ThreeVector pos(GetReplicaPosition(idxColumn, y, z));
542  G4Transform3D trans;
543  if(fRotationMatrix) {
544  trans = G4Rotate3D(*fRotationMatrix).inverse()*G4Translate3D(pos);
545  trans = G4Translate3D(fCenterPosition)*trans;
546  } else {
548  }
549  G4double c[4];
550  colorMap->GetMapColor(yzcell[y][z], c);
551  att.SetColour(c[0], c[1], c[2]);//, c[3]);
552  pVisManager->Draw(yzplate, att, trans);
553  }
554  }
555  } else
556  // xz plane
557  if(idxProj == 2) {
558  if(colorMap->IfFloatMinMax()) { colorMap->SetMinMax(xzmin,xzmax);}
559  G4Box xzplate("xz", fSize[0]/fNSegment[0], fSize[1]/fNSegment[1],
560  fSize[2]/fNSegment[2]);
561  for(int x = 0; x < fNSegment[0]; x++) {
562  for(int z = 0; z < fNSegment[2]; z++) {
563  G4ThreeVector pos(GetReplicaPosition(x, idxColumn, z));
564  G4Transform3D trans;
565  if(fRotationMatrix) {
566  trans = G4Rotate3D(*fRotationMatrix).inverse()*G4Translate3D(pos);
567  trans = G4Translate3D(fCenterPosition)*trans;
568  } else {
570  }
571  G4double c[4];
572  colorMap->GetMapColor(xzcell[x][z], c);
573  att.SetColour(c[0], c[1], c[2]);//, c[3]);
574  pVisManager->Draw(xzplate, att, trans);
575  }
576  }
577  }
578  }
579 
580  colorMap->SetPSUnit(fDrawUnit);
581  colorMap->SetPSName(fDrawPSName);
582  colorMap->DrawColorChart();
583 }
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
void SetColour(const G4Colour &)
void SetPSName(G4String &psName)
G4ThreeVector fCenterPosition
static G4VVisManager * GetConcreteInstance()
G4double z
Definition: TRTMaterials.hh:39
Definition: G4Box.hh:63
void SetPSUnit(G4String &unit)
virtual void GetMapColor(G4double val, G4double color[4])=0
Transform3D inverse() const
Definition: Transform3D.cc:142
G4double fSize[3]
void SetForceSolid(G4bool)
int G4int
Definition: G4Types.hh:78
void SetMinMax(G4double minVal, G4double maxVal)
G4double fDrawUnitValue
G4RotationMatrix * fRotationMatrix
void SetForceAuxEdgeVisible(G4bool)
HepGeom::Rotate3D G4Rotate3D
HepGeom::Translate3D G4Translate3D
G4bool IfFloatMinMax() const
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
#define DBL_MAX
Definition: templates.hh:83
G4String fDrawPSName
G4GLOB_DLL std::ostream G4cerr
virtual void DrawColorChart(G4int nPoint=5)
void G4ScoringBox::List ( ) const
virtual

Reimplemented from G4VScoringMesh.

Definition at line 242 of file G4ScoringBox.cc.

References python.hepunit::cm, G4VScoringMesh::fSize, G4VScoringMesh::fWorldName, G4cout, G4endl, and G4VScoringMesh::List().

242  {
243  G4cout << "G4ScoringBox : " << fWorldName << " --- Shape: Box mesh" << G4endl;
244  G4cout << " Size (x, y, z): ("
245  << fSize[0]/cm << ", "
246  << fSize[1]/cm << ", "
247  << fSize[2]/cm << ") [cm]"
248  << G4endl;
249 
251 }
G4double fSize[3]
G4GLOB_DLL std::ostream G4cout
virtual void List() const
#define G4endl
Definition: G4ios.hh:61
void G4ScoringBox::SetSegmentDirection ( G4int  dir)
inline

Definition at line 58 of file G4ScoringBox.hh.

58 {fSegmentDirection = dir;}

The documentation for this class was generated from the following files: