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");
200 drawColumnCmd =
new G4UIcommand(
"/score/drawColumn",
this);
202 drawColumnCmd->
SetGuidance(
" plane = 0 : x-y, 1: y-z, 2: z-x for box mesh");
203 drawColumnCmd->
SetGuidance(
" 0 : z-phi, 1: r-phi, 2: r-z for cylinder mesh");
221 listColorMapCmd->
SetGuidance(
"List registered score color maps.");
224 floatMinMaxCmd->
SetGuidance(
"Min/Max of the color map is calculated accorging to the actual scores.");
228 colorMapMinMaxCmd =
new G4UIcommand(
"/score/colorMap/setMinMax",
this);
229 colorMapMinMaxCmd->
SetGuidance(
"Define min/max value of the color map.");
259 dumpQtyToFileCmd =
new G4UIcommand(
"/score/dumpQuantityToFile",
this);
260 dumpQtyToFileCmd->
SetGuidance(
"Dump one scored quantity to file.");
271 dumpAllQtsToFileCmd =
new G4UIcommand(
"/score/dumpAllQuantitiesToFile",
this);
272 dumpAllQtsToFileCmd->
SetGuidance(
"Dump all quantities of the mesh to file.");
287 delete meshCreateDir;
288 delete meshBoxCreateCmd;
289 delete meshCylinderCreateCmd;
299 delete mCylinderSizeCmd;
316 delete drawColumnCmd;
317 delete listColorMapCmd;
318 delete floatMinMaxCmd;
319 delete colorMapMinMaxCmd;
321 delete dumpQtyToFileCmd;
322 delete dumpAllQtsToFileCmd;
329 if(command==listCmd) {
331 }
else if(command==dumpCmd) {
333 }
else if(command==drawCmd) {
339 fSMan->
DrawMesh(meshName,psName,colorMapName,axflg);
340 }
else if(command==drawColumnCmd) {
347 fSMan->
DrawMesh(meshName,psName,iPlane,iColumn,colorMapName);
348 }
else if(command==chartCmd ){
356 }
else if(command==dumpQtyToFileCmd) {
363 }
else if(command==dumpAllQtsToFileCmd) {
369 }
else if(command==verboseCmd) {
371 }
else if(command==meshBoxCreateCmd) {
376 <<
"> is still open. Close it first. Command ignored." <<
G4endl;
385 <<
"] : Scoring mesh <" << newVal
386 <<
"> already exists. Command ignored." <<
G4endl;
389 }
else if(command==meshCylinderCreateCmd) {
394 <<
"> is still open. Close it first. Command ignored." <<
G4endl;
403 <<
"] : Scoring mesh <" << newVal
404 <<
"> already exists. Command ignored." <<
G4endl;
407 }
else if(command==listColorMapCmd) {
409 }
else if(command==floatMinMaxCmd) {
415 <<
"] : color map <" << newVal <<
"> is not defined. Command ignored."
418 }
else if(command==colorMapMinMaxCmd) {
429 <<
"] : color map <" << newVal <<
"> is not defined. Command ignored."
432 }
else if(command==meshOpnCmd) {
436 <<
"] : Mesh <" << currentmesh->
GetWorldName() <<
"> is still open. Close it first. Command ignored." <<
G4endl;
441 <<
"] : Scoring mesh <" << newVal <<
"> does not exist. Command ignored." <<
G4endl;
446 }
else if(command==meshClsCmd) {
465 if(command==mBoxSizeCmd) {
476 <<
"] : This mesh is not Box. Command ignored." <<
G4endl;
478 }
else if(command==mCylinderSizeCmd) {
482 vsize[0] =
StoD(token[0]);
483 vsize[1] =
StoD(token[1]);
491 <<
"] : This mesh is not Box. Command ignored." <<
G4endl;
493 }
else if(command==mBinCmd) {
495 }
else if(command==mTResetCmd) {
496 G4double centerPosition[3] ={ 0., 0., 0.};
498 }
else if(command==mTXyzCmd) {
501 centerPosition[0] = xyz.
x();
502 centerPosition[1] = xyz.
y();
503 centerPosition[2] = xyz.
z();
505 }
else if(command==mRResetCmd) {
506 }
else if(command==mRotXCmd) {
509 }
else if(command==mRotYCmd) {
512 }
else if(command==mRotZCmd) {
517 G4cerr <<
"ERROR: No mesh is currently open. Open/create a mesh first. Command ignored." <<
G4endl;
525 if(command==verboseCmd)
535 while ( !(val = next()).isNull() ) {
536 token.push_back(val);
547 if(dynamic_cast<G4ScoringBox*>(mesh)) {
548 G4cout <<
".... G4ScoringMessenger::MeshBinCommand - G4ScoringBox" <<
G4endl;
552 }
else if(dynamic_cast<G4ScoringCylinder*>(mesh)) {
553 G4cout <<
".... G4ScoringMessenger::MeshBinCommand - G4ScoringCylinder" <<
G4endl;