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