Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4NavigationLevelRep Class Reference

#include <G4NavigationLevelRep.hh>

Public Member Functions

 G4NavigationLevelRep (G4VPhysicalVolume *newPtrPhysVol, const G4AffineTransform &newT, EVolume newVolTp, G4int newRepNo=-1)
 
 G4NavigationLevelRep (G4VPhysicalVolume *newPtrPhysVol, const G4AffineTransform &levelAbove, const G4AffineTransform &relativeCurrent, EVolume newVolTp, G4int newRepNo=-1)
 
 G4NavigationLevelRep ()
 
 G4NavigationLevelRep (G4NavigationLevelRep &)
 
 ~G4NavigationLevelRep ()
 
G4NavigationLevelRepoperator= (const G4NavigationLevelRep &right)
 
G4VPhysicalVolumeGetPhysicalVolume ()
 
const G4AffineTransformGetTransformPtr () const
 
const G4AffineTransformGetTransform () const
 
EVolume GetVolumeType () const
 
G4int GetReplicaNo () const
 
void AddAReference ()
 
G4bool RemoveAReference ()
 
void * operator new (size_t)
 
void operator delete (void *aTrack)
 

Detailed Description

Definition at line 53 of file G4NavigationLevelRep.hh.

Constructor & Destructor Documentation

◆ G4NavigationLevelRep() [1/4]

G4NavigationLevelRep::G4NavigationLevelRep ( G4VPhysicalVolume newPtrPhysVol,
const G4AffineTransform newT,
EVolume  newVolTp,
G4int  newRepNo = -1 
)

Definition at line 40 of file G4NavigationLevelRep.cc.

44 : sTransform(afTransform),
45 sPhysicalVolumePtr(pPhysVol),
46 sReplicaNo(repNo),
47 sVolumeType(volTp),
48 fCountRef(1)
49{
50}

◆ G4NavigationLevelRep() [2/4]

G4NavigationLevelRep::G4NavigationLevelRep ( G4VPhysicalVolume newPtrPhysVol,
const G4AffineTransform levelAbove,
const G4AffineTransform relativeCurrent,
EVolume  newVolTp,
G4int  newRepNo = -1 
)

Definition at line 61 of file G4NavigationLevelRep.cc.

66 : sPhysicalVolumePtr(pPhysVol),
67 sReplicaNo(repNo),
68 sVolumeType(volTp),
69 fCountRef(1)
70{
71 sTransform.InverseProduct( levelAbove, relativeCurrent );
72}
G4AffineTransform & InverseProduct(const G4AffineTransform &tf1, const G4AffineTransform &tf2)

◆ G4NavigationLevelRep() [3/4]

G4NavigationLevelRep::G4NavigationLevelRep ( )

Definition at line 52 of file G4NavigationLevelRep.cc.

53 : sTransform(),
54 sPhysicalVolumePtr(0),
55 sReplicaNo(-1),
56 sVolumeType(kReplica),
57 fCountRef(1)
58{
59}
@ kReplica
Definition: geomdefs.hh:68

◆ G4NavigationLevelRep() [4/4]

G4NavigationLevelRep::G4NavigationLevelRep ( G4NavigationLevelRep right)

Definition at line 74 of file G4NavigationLevelRep.cc.

75 : sTransform(right.sTransform),
76 sPhysicalVolumePtr(right.sPhysicalVolumePtr),
77 sReplicaNo(right.sReplicaNo),
78 sVolumeType(right.sVolumeType),
79 fCountRef(1)
80{
81}

◆ ~G4NavigationLevelRep()

G4NavigationLevelRep::~G4NavigationLevelRep ( )

Definition at line 86 of file G4NavigationLevelRep.cc.

87{
88#ifdef DEBUG_NAVIG_LEVEL
89 if(fCountRef>0)
90 {
91 G4Exception("G4NavigationLevelRep::~G4NavigationLevelRep()",
92 "GeomVol0003", FatalException,
93 "Deletion of data-level object with positive reference count.");
94 }
95#endif
96}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Member Function Documentation

◆ AddAReference()

void G4NavigationLevelRep::AddAReference ( )
inline

◆ GetPhysicalVolume()

G4VPhysicalVolume * G4NavigationLevelRep::GetPhysicalVolume ( )
inline

◆ GetReplicaNo()

G4int G4NavigationLevelRep::GetReplicaNo ( ) const
inline

◆ GetTransform()

const G4AffineTransform & G4NavigationLevelRep::GetTransform ( ) const
inline

◆ GetTransformPtr()

const G4AffineTransform * G4NavigationLevelRep::GetTransformPtr ( ) const
inline

◆ GetVolumeType()

EVolume G4NavigationLevelRep::GetVolumeType ( ) const
inline

◆ operator delete()

void G4NavigationLevelRep::operator delete ( void *  aTrack)
inline

◆ operator new()

void * G4NavigationLevelRep::operator new ( size_t  )
inline

◆ operator=()

G4NavigationLevelRep & G4NavigationLevelRep::operator= ( const G4NavigationLevelRep right)

Definition at line 102 of file G4NavigationLevelRep.cc.

103{
104 if ( &right != this )
105 {
106 sTransform = right.sTransform;
107 sPhysicalVolumePtr = right.sPhysicalVolumePtr;
108 sVolumeType = right.sVolumeType;
109 sReplicaNo = right.sReplicaNo;
110 fCountRef = right.fCountRef;
111 }
112 return *this;
113}

◆ RemoveAReference()

G4bool G4NavigationLevelRep::RemoveAReference ( )
inline

The documentation for this class was generated from the following files: