50{
51 polarizationDirectory = new G4UIdirectory("/polarization/");
52 polarizationDirectory->SetGuidance("polarization control commands.");
53
54 managerDirectory = new G4UIdirectory("/polarization/manager/");
55 managerDirectory->SetGuidance("general polarization information.");
56
57 verboseCmd = new G4UIcmdWithAnInteger("/polarization/manager/verbose", this);
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");
64
65 optActivateCmd = new G4UIcmdWithABool("/polarization/manager/activate", this);
66 optActivateCmd->SetGuidance("activate/deactivate polarization treatment");
67 optActivateCmd->SetParameterName("flag", true);
68 optActivateCmd->SetDefaultValue(true);
69
70 volumeDirectory = new G4UIdirectory("/polarization/volume/");
71 volumeDirectory->SetGuidance(
72 "Status control commands of registered polarized logical volumes.");
73
74 printVolumeListCmd =
75 new G4UIcmdWithoutParameter("/polarization/volume/list", this);
76 printVolumeListCmd->SetGuidance(
77 "print list of registered polarized logical volumes");
80
81 setPolarizationCmd = new G4UIcommand("/polarization/volume/set", this);
82 setPolarizationCmd->SetGuidance(
83 "set or change polarization of a logical volume");
86
87 G4UIparameter* param;
88 param = new G4UIparameter("logicalVolumeName", 's', false);
90 setPolarizationCmd->SetParameter(param);
91 param = new G4UIparameter("px", 'd', true);
93 setPolarizationCmd->SetParameter(param);
94 param = new G4UIparameter("py", 'd', true);
96 setPolarizationCmd->SetParameter(param);
97 param = new G4UIparameter("pz", 'd', true);
99 setPolarizationCmd->SetParameter(param);
100
101 testDirectory = new G4UIdirectory("/polarization/test/");
102 testDirectory->SetGuidance("provides access to some internal test routines.");
103
104 testPolarizationTransformationCmd = new G4UIcmdWithoutParameter(
105 "/polarization/test/polarizationTransformation", this);
106 testPolarizationTransformationCmd->SetGuidance(
107 "checks definition of particle reference frame and corresponding "
108 "translation routines");
109 testPolarizationTransformationCmd->AvailableForStates(
111
112 testInteractionFrameCmd =
113 new G4UIcmdWithoutParameter("/polarization/test/interactionFrame", this);
114 testInteractionFrameCmd->SetGuidance(
115 "checks definition of interaction frame");
118}
G4PolarizationManager * polarizationManager
void SetDefaultValue(const char *theDefaultValue)