[831] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // |
---|
| 27 | // $Id: G4AuxiliaryNavServices.hh,v 1.4 2007/05/22 07:48:08 gcosmo Exp $ |
---|
[921] | 28 | // GEANT4 tag $Name: geant4-09-02-cand-01 $ |
---|
[831] | 29 | // |
---|
| 30 | // |
---|
| 31 | // class G4AuxiliaryNavServices |
---|
| 32 | // |
---|
| 33 | // Class description: |
---|
| 34 | // |
---|
| 35 | // Utility class for navigation. |
---|
| 36 | |
---|
| 37 | // History: |
---|
| 38 | // - Created: Paul Kent, Aug 96 |
---|
| 39 | // -------------------------------------------------------------------- |
---|
| 40 | #ifndef G4AuxiliaryNavServices_hh |
---|
| 41 | #define G4AuxiliaryNavServices_hh |
---|
| 42 | |
---|
| 43 | #include "G4Types.hh" |
---|
| 44 | #include "G4ThreeVector.hh" |
---|
| 45 | #include "G4VSolid.hh" |
---|
| 46 | #include "G4AffineTransform.hh" |
---|
| 47 | |
---|
| 48 | class G4AuxiliaryNavServices |
---|
| 49 | { |
---|
| 50 | |
---|
| 51 | public: // with description |
---|
| 52 | |
---|
| 53 | static G4bool CheckPointOnSurface( const G4VSolid* sampleSolid, |
---|
| 54 | const G4ThreeVector& localPoint, |
---|
| 55 | const G4ThreeVector* globalDirection, |
---|
| 56 | const G4AffineTransform& sampleTransform, |
---|
| 57 | const G4bool locatedOnEdge); |
---|
| 58 | // |
---|
| 59 | // Is the track (point, direction) inside the solid 'sampleSolid' ? |
---|
| 60 | // Returns true if we are going to enter the volume, |
---|
| 61 | // which is the case if: |
---|
| 62 | // - the point is inside |
---|
| 63 | // - the point is on the surface and the direction points inside |
---|
| 64 | // or along it. |
---|
| 65 | // Else returns false. |
---|
| 66 | |
---|
| 67 | static G4bool CheckPointExiting( const G4VSolid* sampleSolid, |
---|
| 68 | const G4ThreeVector& localPoint, |
---|
| 69 | const G4ThreeVector* globalDirection, |
---|
| 70 | const G4AffineTransform& sampleTransform ); |
---|
| 71 | // |
---|
| 72 | // Is the track (point, direction) exiting the solid 'sampleSolid' ? |
---|
| 73 | // Returns true if we are going to exit the volume. |
---|
| 74 | |
---|
| 75 | private: |
---|
| 76 | |
---|
| 77 | G4bool testOne(); |
---|
| 78 | |
---|
| 79 | }; |
---|
| 80 | |
---|
| 81 | #include "G4AuxiliaryNavServices.icc" |
---|
| 82 | |
---|
| 83 | #endif |
---|