#include <G4ASCIITreeMessenger.hh>
Definition at line 47 of file G4ASCIITreeMessenger.hh.
G4ASCIITreeMessenger::G4ASCIITreeMessenger |
( |
G4ASCIITree * |
ASCIITree | ) |
|
Definition at line 45 of file G4ASCIITreeMessenger.cc.
46 fpASCIITree(ASCIITree) {
51 fpDirectory -> SetGuidance (
"Commands for ASCIITree control.");
54 fpDirectorySet -> SetGuidance (
"Settings for ASCIITree control.");
58 (
" < 10: - does not print daughters of repeated placements,"
59 " does not repeat replicas.");
61 (
" >= 10: prints all physical volumes.");
63 (
"The level of detail is given by verbosity%10:");
67 (
" >= 0: physical volume name.");
69 (
" >= 1: logical volume name (and names of sensitive detector"
70 " and readout geometry, if any).");
72 (
" >= 2: solid name and type.");
74 (
" >= 3: volume and density.");
76 (
" >= 5: daughter-subtracted volume and mass.");
78 (
" >= 6: physical volume dump.");
80 (
" >= 7: polyhedron dump.");
82 (
"and in the summary at the end of printing:");
84 (
" >= 4: daughter-included mass of top physical volume(s) in scene"
85 " to depth specified.");
87 (
"Note: by default, culling is switched off so all volumes are seen.");
89 (
"Note: the mass calculation takes into account daughters, which can be"
90 " time consuming. If you want the mass of a particular subtree try:");
92 (
" /vis/drawTree <subtree-physical-volume-name>");
94 (
"Or if you want more control, for example:");
98 (
" /vis/ASCIITree/verbose 14");
100 (
" /vis/scene/create");
102 (
" /vis/scene/add/volume <subtree-physical-volume-name> ! <depth>");
104 (
" /vis/sceneHandler/attach");
106 (
" /vis/viewer/flush");
108 (
"Note: dumping the physical volumes produces a lot of output. It is"
109 " advisable to select the volume of interest, as for a sub-tree above.");
113 fpCommandVerbose -> SetParameterName (
"verbosity",omitable =
true);
114 fpCommandVerbose -> SetDefaultValue(1);
118 fpCommandSetOutFile -> SetGuidance (
"Set name of output file.");
119 fpCommandSetOutFile -> SetParameterName (
"out-filename",
121 fpCommandSetOutFile -> SetDefaultValue (
"G4cout");
static std::vector< G4String > fVerbosityGuidance
G4ASCIITreeMessenger::~G4ASCIITreeMessenger |
( |
| ) |
|
|
virtual |
Definition at line 124 of file G4ASCIITreeMessenger.cc.
125 delete fpCommandSetOutFile;
126 delete fpDirectorySet;
127 delete fpCommandVerbose;
Reimplemented from G4UImessenger.
Definition at line 136 of file G4ASCIITreeMessenger.cc.
138 if (command == fpCommandVerbose)
142 G4cout <<
"G4ASCIITree verbosity now "
146 else if (command == fpCommandSetOutFile)
148 fpASCIITree -> SetOutFileName (newValue);
149 G4cout <<
"G4ASCIITree out filename now "
150 << fpASCIITree -> GetOutFileName()
static G4int GetNewIntValue(const char *paramString)
void SetVerbosity(G4int verbosity)
G4GLOB_DLL std::ostream G4cout
G4int GetVerbosity() const
std::vector< G4String > G4ASCIITreeMessenger::fVerbosityGuidance |
|
static |
The documentation for this class was generated from the following files: