|
||||
File indexing completed on 2025-01-18 09:58:45
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // class G4NormalNavigation 0027 // 0028 // Class description: 0029 // 0030 // Utility for navigation in volumes containing only G4PVPlacement 0031 // daughter volumes. 0032 0033 // History: 0034 // - Created. Paul Kent, Aug 96 0035 // -------------------------------------------------------------------- 0036 #ifndef G4NORMALNAVIGATION_HH 0037 #define G4NORMALNAVIGATION_HH 0038 0039 #include <iomanip> 0040 0041 #include "G4VNavigation.hh" 0042 #include "G4NavigationHistory.hh" 0043 0044 #include "G4VPhysicalVolume.hh" 0045 #include "G4LogicalVolume.hh" 0046 #include "G4VSolid.hh" 0047 #include "G4ThreeVector.hh" 0048 #include "G4AuxiliaryNavServices.hh" 0049 0050 class G4NavigationLogger; 0051 0052 class G4NormalNavigation : public G4VNavigation 0053 { 0054 public: // with description 0055 0056 G4NormalNavigation(); 0057 // Constructor 0058 0059 ~G4NormalNavigation(); 0060 // Destructor 0061 0062 inline G4bool LevelLocate( G4NavigationHistory &history, 0063 const G4VPhysicalVolume *blockedVol, 0064 const G4int blockedNum, 0065 const G4ThreeVector &globalPoint, 0066 const G4ThreeVector* globalDirection, 0067 const G4bool pLocatedOnEdge, 0068 G4ThreeVector &localPoint) final; 0069 // Search positioned volumes in mother at current top level of history 0070 // for volume containing globalPoint. Do not test the blocked volume. 0071 // If a containing volume is found, `stack' the new volume and return 0072 // true, else return false (the point lying in the mother but not any 0073 // of the daughters). localPoint = global point in local system on entry, 0074 // point in new system on exit. 0075 0076 G4double ComputeStep( const G4ThreeVector &localPoint, 0077 const G4ThreeVector &localDirection, 0078 const G4double currentProposedStepLength, 0079 G4double &newSafety, 0080 G4NavigationHistory &history, 0081 G4bool &validExitNormal, 0082 G4ThreeVector &exitNormal, 0083 G4bool &exiting, 0084 G4bool &entering, 0085 G4VPhysicalVolume *(*pBlockedPhysical), 0086 G4int &blockedReplicaNo ) final; 0087 0088 G4double ComputeSafety( const G4ThreeVector &globalpoint, 0089 const G4NavigationHistory &history, 0090 const G4double pMaxLength=DBL_MAX ) final; 0091 0092 virtual G4int GetVerboseLevel() const final; 0093 virtual void SetVerboseLevel(G4int level) final; 0094 // Get/Set Verbose(ness) level. 0095 // [if level>0 && G4VERBOSE, printout can occur] 0096 0097 private: 0098 G4NavigationLogger* fLogger; 0099 }; 0100 0101 #include "G4NormalNavigation.icc" 0102 0103 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |