1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // |
---|
27 | // $Id: G4GeometryMessenger.hh,v 1.4 2006/06/29 18:35:59 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
29 | // |
---|
30 | // -------------------------------------------------------------------- |
---|
31 | // GEANT 4 class header file |
---|
32 | // |
---|
33 | // G4GeometryMessenger |
---|
34 | // |
---|
35 | // Class description: |
---|
36 | // |
---|
37 | // A messenger defining commands for debugging, verifying |
---|
38 | // and controlling the detector geometry and navigation. |
---|
39 | |
---|
40 | // Author: G.Cosmo, CERN. |
---|
41 | // -------------------------------------------------------------------- |
---|
42 | #ifndef G4GeometryMessenger_hh |
---|
43 | #define G4GeometryMessenger_hh |
---|
44 | |
---|
45 | #include "G4Types.hh" |
---|
46 | #include "G4UImessenger.hh" |
---|
47 | #include "G4ThreeVector.hh" |
---|
48 | |
---|
49 | class G4UIdirectory; |
---|
50 | class G4UIcommand; |
---|
51 | class G4UIcmdWith3VectorAndUnit; |
---|
52 | class G4UIcmdWith3Vector; |
---|
53 | class G4UIcmdWithoutParameter; |
---|
54 | class G4UIcmdWithABool; |
---|
55 | class G4UIcmdWithAnInteger; |
---|
56 | class G4UIcmdWithADouble; |
---|
57 | class G4UIcmdWithADoubleAndUnit; |
---|
58 | class G4TransportationManager; |
---|
59 | class G4GeomTestStreamLogger; |
---|
60 | class G4GeomTestVolume; |
---|
61 | |
---|
62 | class G4GeometryMessenger : public G4UImessenger |
---|
63 | { |
---|
64 | public: // with description |
---|
65 | |
---|
66 | G4GeometryMessenger(G4TransportationManager* tman); |
---|
67 | ~G4GeometryMessenger(); |
---|
68 | // Constructor and destructor |
---|
69 | |
---|
70 | void SetNewValue( G4UIcommand* command, G4String newValues ); |
---|
71 | G4String GetCurrentValue( G4UIcommand* command ); |
---|
72 | |
---|
73 | private: |
---|
74 | |
---|
75 | void Init(); |
---|
76 | void CheckGeometry(); |
---|
77 | void ResetNavigator(); |
---|
78 | void SetVerbosity(G4String newValue); |
---|
79 | void SetCheckMode(G4String newValue); |
---|
80 | void LineTest(); |
---|
81 | void RecursiveLineTest(); |
---|
82 | void GridTest(); |
---|
83 | void RecursiveGridTest(); |
---|
84 | void CylinderTest(); |
---|
85 | void RecursiveCylinderTest(); |
---|
86 | |
---|
87 | G4UIdirectory *geodir, *navdir, *testdir; |
---|
88 | G4UIcmdWith3VectorAndUnit *posCmd, *dirCmd; |
---|
89 | G4UIcmdWith3Vector *grzCmd, *cyzCmd; |
---|
90 | G4UIcmdWithABool *chkCmd, *linCmd, *grdCmd, *cylCmd, *runCmd; |
---|
91 | G4UIcmdWithoutParameter *recCmd, *resCmd; |
---|
92 | G4UIcmdWithADoubleAndUnit *tolCmd; |
---|
93 | G4UIcmdWithAnInteger *verbCmd, *rcsCmd, *rcdCmd; |
---|
94 | G4UIcmdWithADouble *cfzCmd, *cfrCmd; |
---|
95 | |
---|
96 | G4ThreeVector x, p, grdRes, cylRes; |
---|
97 | G4double cylfZ, cylfR; |
---|
98 | G4bool newtol; |
---|
99 | G4double tol; |
---|
100 | G4int recLevel, recDepth; |
---|
101 | |
---|
102 | G4TransportationManager* tmanager; |
---|
103 | G4GeomTestStreamLogger* tlogger; |
---|
104 | G4GeomTestVolume* tvolume; |
---|
105 | }; |
---|
106 | |
---|
107 | #endif |
---|