G4GeometryMessenger.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 // --------------------------------------------------------------------
00030 // GEANT 4 class header file
00031 //
00032 // G4GeometryMessenger
00033 //
00034 // Class description:
00035 //
00036 // A messenger defining commands for debugging, verifying
00037 // and controlling the detector geometry and navigation.
00038 
00039 // Author: G.Cosmo, CERN.
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:  // with description
00064 
00065     G4GeometryMessenger(G4TransportationManager* tman);
00066     ~G4GeometryMessenger();
00067       // Constructor and destructor
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

Generated on Mon May 27 17:48:22 2013 for Geant4 by  doxygen 1.4.7