55 scoreDir->
SetGuidance(
"Interactive scoring commands.");
72 meshCreateDir->
SetGuidance(
" Mesh creation commands.");
76 meshBoxCreateCmd->
SetGuidance(
"Create scoring box mesh.");
80 meshCylinderCreateCmd->
SetGuidance(
"Create scoring mesh.");
99 mBoxSizeCmd->
SetGuidance(
"Define size of the scoring mesh.");
102 mBoxSizeCmd->
SetRange(
"Di>0. && Dj>0. && Dk>0.");
105 mCylinderSizeCmd =
new G4UIcommand(
"/score/mesh/cylinderSize",
this);
106 mCylinderSizeCmd->
SetGuidance(
"Define size of the scoring mesh.");
119 mBinCmd =
new G4UIcommand(
"/score/mesh/nBin",
this);
120 mBinCmd->
SetGuidance(
"Define segments of the scoring mesh.");
122 mBinCmd->
SetGuidance(
" In case of boxMesh, parameters are given in");
123 mBinCmd->
SetGuidance(
" Ni :(int) Number of bins i (in x-axis) ");
124 mBinCmd->
SetGuidance(
" Nj :(int) Number of bins j (in y-axis) ");
125 mBinCmd->
SetGuidance(
" Nk :(int) Number of bins k (in z-axis) ");
126 mBinCmd->
SetGuidance(
" In case of cylinderMesh, parameters are given in");
127 mBinCmd->
SetGuidance(
" Nr :(int) Number of bins in radial axis ");
128 mBinCmd->
SetGuidance(
" Nz :(int) Number of bins in z axis ");
129 mBinCmd->
SetGuidance(
" Nphi:(int) Number of bins in phi axis ");
150 mTransDir->
SetGuidance(
"Mesh translation commands.");
153 mTResetCmd->
SetGuidance(
"Reset translated position of the scoring mesh.");
156 mTXyzCmd->
SetGuidance(
"Translate the scoring mesh.");
164 mRResetCmd->
SetGuidance(
"Reset rotation angles of the scoring mesh.");
167 mRotXCmd->
SetGuidance(
"Rotate the scoring mesh in X axis.");
172 mRotYCmd->
SetGuidance(
"Rotate the scoring mesh in Y axis.");
177 mRotZCmd->
SetGuidance(
"Rotate the scoring mesh in Z axis.");
183 drawCmd =
new G4UIcommand(
"/score/drawProjection",
this);
184 drawCmd->
SetGuidance(
"Draw projection(s) of scored quantities.");
185 drawCmd->
SetGuidance(
"Parameter <proj> specified which projection(s) to be drawn.");
186 drawCmd->
SetGuidance(
" 100 : xy-plane, 010 : yz-plane, 001 : zx-plane -- default 111");
187 drawCmd->
SetGuidance(
" 100 : N/A, 010 : z_phi-plane, 001 : r_phi-plane -- default 111");
201 drawColumnCmd =
new G4UIcommand(
"/score/drawColumn",
this);
203 drawColumnCmd->
SetGuidance(
" plane = 0 : x-y, 1: y-z, 2: z-x for box mesh");
204 drawColumnCmd->
SetGuidance(
" 0 : z-phi, 1: r-phi, 2: r-z for cylinder mesh");
223 listColorMapCmd->
SetGuidance(
"List registered score color maps.");
227 floatMinMaxCmd->
SetGuidance(
"Min/Max of the color map is calculated accorging to the actual scores.");
232 colorMapMinMaxCmd =
new G4UIcommand(
"/score/colorMap/setMinMax",
this);
233 colorMapMinMaxCmd->
SetGuidance(
"Define min/max value of the color map.");
264 dumpQtyToFileCmd =
new G4UIcommand(
"/score/dumpQuantityToFile",
this);
265 dumpQtyToFileCmd->
SetGuidance(
"Dump one scored quantity to file.");
277 dumpAllQtsToFileCmd =
new G4UIcommand(
"/score/dumpAllQuantitiesToFile",
this);
278 dumpAllQtsToFileCmd->
SetGuidance(
"Dump all quantities of the mesh to file.");
294 delete meshCreateDir;
295 delete meshBoxCreateCmd;
296 delete meshCylinderCreateCmd;
306 delete mCylinderSizeCmd;
323 delete drawColumnCmd;
324 delete listColorMapCmd;
325 delete floatMinMaxCmd;
326 delete colorMapMinMaxCmd;
328 delete dumpQtyToFileCmd;
329 delete dumpAllQtsToFileCmd;
336 if(command==listCmd) {
338 }
else if(command==dumpCmd) {
340 }
else if(command==drawCmd) {
346 fSMan->
DrawMesh(meshName,psName,colorMapName,axflg);
347 }
else if(command==drawColumnCmd) {
354 fSMan->
DrawMesh(meshName,psName,iPlane,iColumn,colorMapName);
363 }
else if(command==dumpQtyToFileCmd) {
370 }
else if(command==dumpAllQtsToFileCmd) {
376 }
else if(command==verboseCmd) {
378 }
else if(command==meshBoxCreateCmd) {
383 <<
"> is still open. Close it first. Command ignored." <<
G4endl;
392 <<
"] : Scoring mesh <" << newVal
393 <<
"> already exists. Command ignored." <<
G4endl;
396 }
else if(command==meshCylinderCreateCmd) {
401 <<
"> is still open. Close it first. Command ignored." <<
G4endl;
410 <<
"] : Scoring mesh <" << newVal
411 <<
"> already exists. Command ignored." <<
G4endl;
414 }
else if(command==listColorMapCmd) {
416 }
else if(command==floatMinMaxCmd) {
422 <<
"] : color map <" << newVal <<
"> is not defined. Command ignored."
425 }
else if(command==colorMapMinMaxCmd) {
436 <<
"] : color map <" << newVal <<
"> is not defined. Command ignored."
439 }
else if(command==meshOpnCmd) {
443 <<
"] : Mesh <" << currentmesh->
GetWorldName() <<
"> is still open. Close it first. Command ignored." <<
G4endl;
448 <<
"] : Scoring mesh <" << newVal <<
"> does not exist. Command ignored." <<
G4endl;
453 }
else if(command==meshClsCmd) {
472 if(command==mBoxSizeCmd) {
483 <<
"] : This mesh is not Box. Command ignored." <<
G4endl;
485 }
else if(command==mCylinderSizeCmd) {
489 vsize[0] =
StoD(token[0]);
490 vsize[1] =
StoD(token[1]);
498 <<
"] : This mesh is not Box. Command ignored." <<
G4endl;
500 }
else if(command==mBinCmd) {
502 }
else if(command==mTResetCmd) {
503 G4double centerPosition[3] ={ 0., 0., 0.};
505 }
else if(command==mTXyzCmd) {
508 centerPosition[0] = xyz.
x();
509 centerPosition[1] = xyz.
y();
510 centerPosition[2] = xyz.
z();
512 }
else if(command==mRResetCmd) {
513 }
else if(command==mRotXCmd) {
516 }
else if(command==mRotYCmd) {
519 }
else if(command==mRotZCmd) {
524 G4cerr <<
"ERROR: No mesh is currently open. Open/create a mesh first. Command ignored." <<
G4endl;
532 if(command==verboseCmd)
542 while ( !(val = next()).isNull() ) {
543 token.push_back(val);
554 if(dynamic_cast<G4ScoringBox*>(mesh)) {
555 G4cout <<
".... G4ScoringMessenger::MeshBinCommand - G4ScoringBox" <<
G4endl;
559 }
else if(dynamic_cast<G4ScoringCylinder*>(mesh)) {
560 G4cout <<
".... G4ScoringMessenger::MeshBinCommand - G4ScoringCylinder" <<
G4endl;
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameter(G4UIparameter *const newParameter)
const G4String & GetWorldName() const
std::vector< G4String > G4TokenVec
void RotateY(G4double delta)
static G4int GetNewIntValue(const char *paramString)
void SetParameterRange(const char *theRange)
void SetDefaultUnit(const char *defUnit)
void SetSize(G4double size[3])
void SetToBeBroadcasted(G4bool val)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetDefaultValue(const char *theDefaultValue)
static G4String ConvertToString(G4bool boolVal)
void RotateX(G4double delta)
G4VScoringMesh * FindMesh(G4VHitsCollection *map)
void ListScoreColorMaps()
static G4double GetNewDoubleValue(const char *paramString)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
void DumpAllQuantitiesToFile(const G4String &meshName, const G4String &fileName, const G4String &option="")
void SetMinMax(G4double minVal, G4double maxVal)
G4int GetVerboseLevel() const
G4GLOB_DLL std::ostream G4cout
const XML_Char int const XML_Char * value
MeshShape GetShape() const
void SetNewValue(G4UIcommand *command, G4String newValues)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
G4VScoreColorMap * GetScoreColorMap(const G4String &mapName)
const G4String & GetCommandPath() const
G4String GetCurrentValue(G4UIcommand *command)
void RotateZ(G4double delta)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void DrawMesh(const G4String &meshName, const G4String &psName, const G4String &colorMapName, G4int axflg=111)
G4VScoringMesh * GetCurrentMesh() const
void SetCenterPosition(G4double centerPosition[3])
void SetDefaultValue(const char *defVal)
G4double StoD(G4String s)
void SetCurrentMesh(G4VScoringMesh *scm)
void DumpQuantityToFile(const G4String &meshName, const G4String &psName, const G4String &fileName, const G4String &option="")
static G4double ValueOf(const char *unitName)
void SetDefaultUnit(const char *defUnit)
void MeshBinCommand(G4VScoringMesh *mesh, G4TokenVec &token)
void SetFloatingMinMax(G4bool vl=true)
void FillTokenVec(G4String newValues, G4TokenVec &token)
G4ScoringMessenger(G4ScoringManager *SManager)
void SetVerboseLevel(G4int vl)
void RegisterScoringMesh(G4VScoringMesh *scm)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetNumberOfSegments(G4int nSegment[3])
G4GLOB_DLL std::ostream G4cerr