57 : polarizationManager(polMgr)
60 polarizationDirectory->
SetGuidance(
"polarization control commands.");
62 managerDirectory =
new G4UIdirectory(
"/polarization/manager/");
63 managerDirectory->
SetGuidance(
"general polarization information.");
66 verboseCmd->
SetGuidance(
"Set the Verbose level of G4PolarizationManager.");
71 verboseCmd->
SetRange(
"level >=0 && level <=1");
73 optActivateCmd =
new G4UIcmdWithABool(
"/polarization/manager/activate",
this);
74 optActivateCmd->
SetGuidance(
"activate/deactivate polarization treatment");
79 volumeDirectory->
SetGuidance(
"Status control commands of registered polarized logical volumes.");
82 printVolumeListCmd->
SetGuidance(
"print list of registered polarized logical volumes");
85 setPolarizationCmd =
new G4UIcommand(
"/polarization/volume/set",
this);
86 setPolarizationCmd->
SetGuidance(
"set or change polarization of a logical volume");
106 testDirectory->
SetGuidance(
"provides access to some internal test routines.");
108 testPolarizationTransformationCmd =
new G4UIcmdWithoutParameter(
"/polarization/test/polarizationTransformation",
this);
109 testPolarizationTransformationCmd->
SetGuidance(
"checks definition of particle reference frame and corresponding translation routines");
113 testInteractionFrameCmd->
SetGuidance(
"checks definition of interaction frame");
120 delete testInteractionFrameCmd;
121 delete testPolarizationTransformationCmd;
122 delete testDirectory;
123 delete setPolarizationCmd;
124 delete printVolumeListCmd;
125 delete volumeDirectory;
126 delete optActivateCmd;
127 delete managerDirectory;
128 delete polarizationDirectory;
133 if( command==verboseCmd ) {
136 else if ( command==optActivateCmd ) {
139 else if ( command==printVolumeListCmd ) {
142 else if ( command==setPolarizationCmd ) {
159 else if ( command==testPolarizationTransformationCmd ) {
162 else if (command==testInteractionFrameCmd ) {
170 if( command==verboseCmd )
static void TestPolarizationTransformations()
static void TestInteractionFrame()
void SetVolumePolarization(G4LogicalVolume *lVol, const G4ThreeVector &pol)
void SetVerbose(G4int val)
void SetActivated(G4bool val)
void SetNewValue(G4UIcommand *command, G4String newValues) override
G4PolarizationMessenger(G4PolarizationManager *runMgr)
~G4PolarizationMessenger()
G4String GetCurrentValue(G4UIcommand *command) override
static G4bool GetNewBoolValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4bool defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
void SetDefaultValue(G4int defVal)
static G4String ConvertToString(G4bool boolVal)
void SetParameter(G4UIparameter *const newParameter)
void SetGuidance(const char *aGuidance)
void SetRange(const char *rs)
void AvailableForStates(G4ApplicationState s1)
G4double StoD(G4String s)
void SetDefaultValue(const char *theDefaultValue)