|
||||
File indexing completed on 2025-01-18 09:58:14
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 G4ErrorPropagationNavigator 0027 // 0028 // Class Description: 0029 // 0030 // Class for performing double navigation in the detector geometry and 0031 // on the target surface for error propagation. It overloads ComputeStep() 0032 // and ComputeSafety() methods. 0033 0034 // History: 0035 // - Created. P. Arce, September 2004 0036 // -------------------------------------------------------------------- 0037 0038 #ifndef G4ErrorPropagationNavigator_hh 0039 #define G4ErrorPropagationNavigator_hh 0040 0041 #include "G4Navigator.hh" 0042 #include "G4ThreeVector.hh" 0043 0044 class G4ErrorPropagationNavigator : public G4Navigator 0045 { 0046 public: // with description 0047 0048 G4ErrorPropagationNavigator(); 0049 ~G4ErrorPropagationNavigator() override; 0050 0051 G4double ComputeStep (const G4ThreeVector &pGlobalPoint, 0052 const G4ThreeVector &pDirection, 0053 const G4double pCurrentProposedStepLength, 0054 G4double &pNewSafety) override; 0055 // Calls the navigation in the detector geometry and then checks 0056 // if the distance to surface is smaller than the proposed step 0057 0058 G4double ComputeSafety(const G4ThreeVector &globalpoint, 0059 const G4double pProposedMaxLength = DBL_MAX, 0060 const G4bool keepState = true) override; 0061 // Calls the navigation in the detector geometry and then checks 0062 // if the distance to surface is smaller than the proposed safety 0063 0064 G4ThreeVector GetGlobalExitNormal(const G4ThreeVector& point, 0065 G4bool* valid) override; 0066 // Return Exit Surface Normal and validity too. Can only be called if 0067 // the Navigator's last Step has crossed a volume geometrical boundary. 0068 // Normal points out of the volume exited and/or into the volume entered. 0069 0070 G4double TargetSafetyFromPoint( const G4ThreeVector &pGlobalpoint ); 0071 // Isotropic safety for 'Target' 0072 0073 //-- NOT implemented, as it is difficult to define the coordinate system: 0074 // G4ThreeVector GetLocalExitNormal(G4bool* valid); 0075 // G4ThreeVector GetLocalExitNormalAndCheck(const G4ThreeVector& point, 0076 // G4bool* valid); 0077 // Convention: 0078 // The *local* normal is in the coordinate system of the *final* volume. 0079 }; 0080 0081 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |