00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #ifndef G4GeometryMessenger_hh
00042 #define G4GeometryMessenger_hh
00043
00044 #include "G4Types.hh"
00045 #include "G4UImessenger.hh"
00046 #include "G4ThreeVector.hh"
00047
00048 class G4UIdirectory;
00049 class G4UIcommand;
00050 class G4UIcmdWith3VectorAndUnit;
00051 class G4UIcmdWith3Vector;
00052 class G4UIcmdWithoutParameter;
00053 class G4UIcmdWithABool;
00054 class G4UIcmdWithAnInteger;
00055 class G4UIcmdWithADouble;
00056 class G4UIcmdWithADoubleAndUnit;
00057 class G4TransportationManager;
00058 class G4GeomTestStreamLogger;
00059 class G4GeomTestVolume;
00060
00061 class G4GeometryMessenger : public G4UImessenger
00062 {
00063 public:
00064
00065 G4GeometryMessenger(G4TransportationManager* tman);
00066 ~G4GeometryMessenger();
00067
00068
00069 void SetNewValue( G4UIcommand* command, G4String newValues );
00070 G4String GetCurrentValue( G4UIcommand* command );
00071
00072 private:
00073
00074 void Init();
00075 void CheckGeometry();
00076 void ResetNavigator();
00077 void SetVerbosity(G4String newValue);
00078 void SetCheckMode(G4String newValue);
00079 void SetPushFlag(G4String newValue);
00080 void LineTest();
00081 void RecursiveLineTest();
00082 void GridTest();
00083 void RecursiveGridTest();
00084 void CylinderTest();
00085 void RecursiveCylinderTest();
00086
00087 G4UIdirectory *geodir, *navdir, *testdir;
00088 G4UIcmdWith3VectorAndUnit *posCmd, *dirCmd;
00089 G4UIcmdWith3Vector *grzCmd, *cyzCmd;
00090 G4UIcmdWithABool *chkCmd, *pchkCmd, *linCmd,
00091 *grdCmd, *cylCmd, *runCmd;
00092 G4UIcmdWithoutParameter *recCmd, *resCmd;
00093 G4UIcmdWithADoubleAndUnit *tolCmd;
00094 G4UIcmdWithAnInteger *verbCmd, *rcsCmd, *rcdCmd;
00095 G4UIcmdWithADouble *cfzCmd, *cfrCmd;
00096
00097 G4ThreeVector x, p, grdRes, cylRes;
00098 G4double cylfZ, cylfR;
00099 G4bool newtol;
00100 G4double tol;
00101 G4int recLevel, recDepth;
00102
00103 G4TransportationManager* tmanager;
00104 G4GeomTestStreamLogger* tlogger;
00105 G4GeomTestVolume* tvolume;
00106 };
00107
00108 #endif