G4NormalNavigation.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 // class G4NormalNavigation
00031 //
00032 // Class description:
00033 //
00034 // Utility for navigation in volumes containing only G4PVPlacement
00035 // daughter volumes.
00036 
00037 // History:
00038 // - Created. Paul Kent, Aug 96
00039 // --------------------------------------------------------------------
00040 #ifndef G4NORMALNAVIGATION_HH
00041 #define G4NORMALNAVIGATION_HH
00042 
00043 #include <iomanip>
00044 
00045 #include "G4NavigationHistory.hh"
00046 #include "G4NavigationLogger.hh"
00047 #include "G4VPhysicalVolume.hh"
00048 #include "G4LogicalVolume.hh"
00049 #include "G4VSolid.hh"
00050 #include "G4ThreeVector.hh"
00051 #include "G4AuxiliaryNavServices.hh"    // Needed for inline methods
00052 
00053 class G4NormalNavigation
00054 {
00055   public:  // with description
00056 
00057     G4NormalNavigation();
00058       // Constructor
00059 
00060     ~G4NormalNavigation();
00061       // Destructor
00062 
00063     G4bool LevelLocate( G4NavigationHistory &history,
00064                   const G4VPhysicalVolume *blockedVol,
00065                   const G4int blockedNum,
00066                   const G4ThreeVector &globalPoint,
00067                   const G4ThreeVector* globalDirection,
00068                   const G4bool pLocatedOnEdge, 
00069                         G4ThreeVector &localPoint);
00070       // Search positioned volumes in mother at current top level of history
00071       // for volume containing globalPoint. Do not test the blocked volume.
00072       // If a containing volume is found, `stack' the new volume and return
00073       // true, else return false (the point lying in the mother but not any
00074       // of the daughters). localPoint = global point in local system on entry,
00075       // point in new system on exit.
00076 
00077     G4double ComputeStep( const G4ThreeVector &localPoint,
00078                           const G4ThreeVector &localDirection,
00079                           const G4double currentProposedStepLength,
00080                                 G4double &newSafety,
00081                                 G4NavigationHistory &history,
00082                                 G4bool &validExitNormal,
00083                                 G4ThreeVector &exitNormal,
00084                                 G4bool &exiting,
00085                                 G4bool &entering,
00086                                 G4VPhysicalVolume *(*pBlockedPhysical),
00087                                 G4int &blockedReplicaNo );
00088 
00089     G4double ComputeSafety( const G4ThreeVector &globalpoint,
00090                             const G4NavigationHistory &history,
00091                             const G4double pMaxLength=DBL_MAX );
00092 
00093     inline G4int GetVerboseLevel() const;
00094     inline void  SetVerboseLevel(G4int level);
00095       // Get/Set Verbose(ness) level.
00096       // [if level>0 && G4VERBOSE, printout can occur]
00097 
00098     inline void  CheckMode(G4bool mode);
00099       // Run navigation in "check-mode", therefore using additional
00100       // verifications and more strict correctness conditions.
00101       // Is effective only with G4VERBOSE set.
00102 
00103   private:
00104 
00105     G4bool fCheck; 
00106     G4NavigationLogger* fLogger;
00107 };
00108 
00109 #include "G4NormalNavigation.icc"
00110 
00111 #endif

Generated on Mon May 27 17:49:06 2013 for Geant4 by  doxygen 1.4.7