52 polarizationDirectory->SetGuidance(
"polarization control commands.");
54 managerDirectory =
new G4UIdirectory(
"/polarization/manager/");
55 managerDirectory->SetGuidance(
"general polarization information.");
58 verboseCmd->SetGuidance(
"Set the Verbose level of G4PolarizationManager.");
59 verboseCmd->SetGuidance(
" 0 : Silent (default)");
60 verboseCmd->SetGuidance(
" 1 : Verbose");
61 verboseCmd->SetParameterName(
"level",
true);
62 verboseCmd->SetDefaultValue(0);
63 verboseCmd->SetRange(
"level >=0 && level <=1");
65 optActivateCmd =
new G4UIcmdWithABool(
"/polarization/manager/activate",
this);
66 optActivateCmd->SetGuidance(
"activate/deactivate polarization treatment");
67 optActivateCmd->SetParameterName(
"flag",
true);
68 optActivateCmd->SetDefaultValue(
true);
71 volumeDirectory->SetGuidance(
72 "Status control commands of registered polarized logical volumes.");
76 printVolumeListCmd->SetGuidance(
77 "print list of registered polarized logical volumes");
81 setPolarizationCmd =
new G4UIcommand(
"/polarization/volume/set",
this);
82 setPolarizationCmd->SetGuidance(
83 "set or change polarization of a logical volume");
90 setPolarizationCmd->SetParameter(param);
93 setPolarizationCmd->SetParameter(param);
96 setPolarizationCmd->SetParameter(param);
99 setPolarizationCmd->SetParameter(param);
102 testDirectory->SetGuidance(
"provides access to some internal test routines.");
105 "/polarization/test/polarizationTransformation",
this);
106 testPolarizationTransformationCmd->SetGuidance(
107 "checks definition of particle reference frame and corresponding "
108 "translation routines");
109 testPolarizationTransformationCmd->AvailableForStates(
112 testInteractionFrameCmd =
114 testInteractionFrameCmd->SetGuidance(
115 "checks definition of interaction frame");
137 if(command == verboseCmd)
141 else if(command == optActivateCmd)
144 optActivateCmd->GetNewBoolValue(newValue));
146 else if(command == printVolumeListCmd)
150 else if(command == setPolarizationCmd)
171 else if(command == testPolarizationTransformationCmd)
175 else if(command == testInteractionFrameCmd)