Import Geant4 10.6.0 source tree
This commit is contained in:
@@ -22,9 +22,6 @@
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// class G4ReplicaNavigation
|
||||
//
|
||||
@@ -35,7 +32,7 @@
|
||||
// [Voxels MUST be along one axis only: NOT refined]
|
||||
|
||||
// History:
|
||||
// - Created. Paul Kent, Aug 96
|
||||
// - Created: Paul Kent, Aug 96
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4REPLICANAVIGATION_HH
|
||||
#define G4REPLICANAVIGATION_HH
|
||||
@@ -86,55 +83,55 @@ class G4ReplicaNavigation
|
||||
~G4ReplicaNavigation();
|
||||
|
||||
inline G4bool LevelLocate( G4NavigationHistory& history,
|
||||
const G4VPhysicalVolume *blockedVol,
|
||||
const G4VPhysicalVolume* blockedVol,
|
||||
const G4int blockedNum,
|
||||
const G4ThreeVector &globalPoint,
|
||||
const G4ThreeVector& globalPoint,
|
||||
const G4ThreeVector* globalDirection,
|
||||
const G4bool pLocatedOnEdge,
|
||||
G4ThreeVector &localPoint );
|
||||
G4ThreeVector& localPoint );
|
||||
|
||||
G4double ComputeStep( const G4ThreeVector &globalPoint,
|
||||
const G4ThreeVector &globalDirection,
|
||||
const G4ThreeVector &localPoint,
|
||||
const G4ThreeVector &localDirection,
|
||||
G4double ComputeStep( const G4ThreeVector& globalPoint,
|
||||
const G4ThreeVector& globalDirection,
|
||||
const G4ThreeVector& localPoint,
|
||||
const G4ThreeVector& localDirection,
|
||||
const G4double currentProposedStepLength,
|
||||
G4double &newSafety,
|
||||
G4NavigationHistory &history,
|
||||
G4bool &validExitNormal,
|
||||
G4bool &calculatedExitNormal,
|
||||
G4double& newSafety,
|
||||
G4NavigationHistory& history,
|
||||
G4bool& validExitNormal,
|
||||
G4bool& calculatedExitNormal,
|
||||
G4ThreeVector &exitNormal,
|
||||
G4bool &exiting,
|
||||
G4bool &entering,
|
||||
G4VPhysicalVolume *(*pBlockedPhysical),
|
||||
G4bool& exiting,
|
||||
G4bool& entering,
|
||||
G4VPhysicalVolume* (*pBlockedPhysical),
|
||||
G4int &blockedReplicaNo );
|
||||
|
||||
G4double ComputeSafety( const G4ThreeVector &globalPoint,
|
||||
const G4ThreeVector &localPoint,
|
||||
G4NavigationHistory &history,
|
||||
const G4double pProposedMaxLength=DBL_MAX );
|
||||
G4double ComputeSafety( const G4ThreeVector& globalPoint,
|
||||
const G4ThreeVector& localPoint,
|
||||
G4NavigationHistory& history,
|
||||
const G4double pProposedMaxLength = DBL_MAX );
|
||||
|
||||
EInside BackLocate( G4NavigationHistory &history,
|
||||
const G4ThreeVector &globalPoint,
|
||||
G4ThreeVector &localPoint,
|
||||
const G4bool &exiting,
|
||||
G4bool ¬KnownInside ) const;
|
||||
const G4ThreeVector& globalPoint,
|
||||
G4ThreeVector& localPoint,
|
||||
const G4bool& exiting,
|
||||
G4bool& notKnownInside ) const;
|
||||
|
||||
void ComputeTransformation( const G4int replicaNo,
|
||||
G4VPhysicalVolume *pVol,
|
||||
G4ThreeVector &point ) const;
|
||||
G4VPhysicalVolume* pVol,
|
||||
G4ThreeVector& point ) const;
|
||||
void ComputeTransformation( const G4int replicaNo,
|
||||
G4VPhysicalVolume *pVol ) const;
|
||||
G4VPhysicalVolume* pVol ) const;
|
||||
|
||||
EInside Inside( const G4VPhysicalVolume *pVol,
|
||||
EInside Inside( const G4VPhysicalVolume* pVol,
|
||||
const G4int replicaNo,
|
||||
const G4ThreeVector &localPoint ) const;
|
||||
G4double DistanceToOut( const G4VPhysicalVolume *pVol,
|
||||
const G4ThreeVector& localPoint ) const;
|
||||
G4double DistanceToOut( const G4VPhysicalVolume* pVol,
|
||||
const G4int replicaNo,
|
||||
const G4ThreeVector &localPoint ) const;
|
||||
G4double DistanceToOut( const G4VPhysicalVolume *pVol,
|
||||
G4double DistanceToOut( const G4VPhysicalVolume* pVol,
|
||||
const G4int replicaNo,
|
||||
const G4ThreeVector &localPoint,
|
||||
const G4ThreeVector &localDirection,
|
||||
const G4ThreeVector& localPoint,
|
||||
const G4ThreeVector& localDirection,
|
||||
G4ExitNormal& candidateNormal ) const;
|
||||
|
||||
inline G4int GetVerboseLevel() const;
|
||||
@@ -142,37 +139,37 @@ class G4ReplicaNavigation
|
||||
// Get/Set Verbose(ness) level.
|
||||
// [if level>0 && G4VERBOSE, printout can occur]
|
||||
|
||||
inline void CheckMode(G4bool mode);
|
||||
inline void CheckMode(G4bool mode);
|
||||
// Run navigation in "check-mode", therefore using additional
|
||||
// verifications and more strict correctness conditions.
|
||||
// Is effective only with G4VERBOSE set.
|
||||
|
||||
private:
|
||||
|
||||
inline G4int VoxelLocate( const G4SmartVoxelHeader *pHead,
|
||||
const G4ThreeVector &localPoint,
|
||||
inline G4int VoxelLocate( const G4SmartVoxelHeader* pHead,
|
||||
const G4ThreeVector& localPoint,
|
||||
const G4int blocked=-1 ) const;
|
||||
|
||||
G4double DistanceToOutPhi( const G4ThreeVector &localPoint,
|
||||
const G4ThreeVector &localDirection,
|
||||
G4double DistanceToOutPhi( const G4ThreeVector& localPoint,
|
||||
const G4ThreeVector& localDirection,
|
||||
const G4double width,
|
||||
G4ExitNormal& foundNormal ) const;
|
||||
|
||||
G4double DistanceToOutRad( const G4ThreeVector &localPoint,
|
||||
const G4ThreeVector &localDirection,
|
||||
G4double DistanceToOutRad( const G4ThreeVector& localPoint,
|
||||
const G4ThreeVector& localDirection,
|
||||
const G4double width,
|
||||
const G4double offset,
|
||||
const G4int replicaNo,
|
||||
G4ExitNormal& foundNormal ) const;
|
||||
inline void SetPhiTransformation( const G4double ang,
|
||||
G4VPhysicalVolume *pVol=0 ) const;
|
||||
G4VPhysicalVolume* pVol=0 ) const;
|
||||
private:
|
||||
|
||||
// Invariants - unaltered during navigation
|
||||
// **********
|
||||
|
||||
G4bool fCheck;
|
||||
G4int fVerbose;
|
||||
G4bool fCheck = false;
|
||||
G4int fVerbose = 0;
|
||||
// Configuration parameters
|
||||
|
||||
G4double kCarTolerance, kRadTolerance, kAngTolerance,
|
||||
|
||||
Reference in New Issue
Block a user