49 : polarizationManager(polMgr)
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.");
63 verboseCmd->
SetRange(
"level >=0 && level <=1");
65 optActivateCmd =
new G4UIcmdWithABool(
"/polarization/manager/activate",
this);
66 optActivateCmd->
SetGuidance(
"activate/deactivate polarization treatment");
72 "Status control commands of registered polarized logical volumes.");
77 "print list of registered polarized logical volumes");
81 setPolarizationCmd =
new G4UIcommand(
"/polarization/volume/set",
this);
83 "set or change polarization of a logical volume");
102 testDirectory->
SetGuidance(
"provides access to some internal test routines.");
105 "/polarization/test/polarizationTransformation",
this);
107 "checks definition of particle reference frame and corresponding "
108 "translation routines");
112 testInteractionFrameCmd =
115 "checks definition of interaction frame");
123 delete testInteractionFrameCmd;
124 delete testPolarizationTransformationCmd;
125 delete testDirectory;
126 delete setPolarizationCmd;
127 delete printVolumeListCmd;
128 delete volumeDirectory;
129 delete optActivateCmd;
130 delete managerDirectory;
131 delete polarizationDirectory;
137 if(command == verboseCmd)
141 else if(command == optActivateCmd)
146 else if(command == printVolumeListCmd)
150 else if(command == setPolarizationCmd)
171 else if(command == testPolarizationTransformationCmd)
175 else if(command == testInteractionFrameCmd)
184 if(command == verboseCmd)
static void TestPolarizationTransformations()
static void TestInteractionFrame()
void SetVolumePolarization(G4LogicalVolume *lVol, const G4ThreeVector &pol)
void SetVerbose(G4int val)
void SetActivated(G4bool val)
~G4PolarizationMessenger() override
void SetNewValue(G4UIcommand *command, G4String newValues) override
G4PolarizationMessenger(G4PolarizationManager *runMgr)
G4String GetCurrentValue(G4UIcommand *command) override
G4PolarizationManager * polarizationManager
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(const G4String &s)
void SetDefaultValue(const char *theDefaultValue)