Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PhysicalVolumeModel::G4PhysicalVolumeNodeID Class Reference

#include <G4PhysicalVolumeModel.hh>

Public Member Functions

 G4PhysicalVolumeNodeID (G4VPhysicalVolume *pPV=0, G4int iCopyNo=0, G4int depth=0, const G4Transform3D &transform=G4Transform3D(), G4bool drawn=false)
 
G4VPhysicalVolumeGetPhysicalVolume () const
 
G4int GetCopyNo () const
 
G4int GetNonCulledDepth () const
 
const G4Transform3DGetTransform () const
 
G4bool GetDrawn () const
 
void SetDrawn (G4bool drawn)
 
G4bool operator< (const G4PhysicalVolumeNodeID &right) const
 
G4bool operator!= (const G4PhysicalVolumeNodeID &right) const
 
G4bool operator== (const G4PhysicalVolumeNodeID &right) const
 

Detailed Description

Definition at line 91 of file G4PhysicalVolumeModel.hh.

Constructor & Destructor Documentation

◆ G4PhysicalVolumeNodeID()

G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::G4PhysicalVolumeNodeID ( G4VPhysicalVolume pPV = 0,
G4int  iCopyNo = 0,
G4int  depth = 0,
const G4Transform3D transform = G4Transform3D(),
G4bool  drawn = false 
)
inline

Definition at line 93 of file G4PhysicalVolumeModel.hh.

98 :
99 fpPV(pPV),
100 fCopyNo(iCopyNo),
101 fNonCulledDepth(depth),
102 fTransform(transform),
103 fDrawn(drawn) {}

Member Function Documentation

◆ GetCopyNo()

G4int G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::GetCopyNo ( ) const
inline

Definition at line 105 of file G4PhysicalVolumeModel.hh.

105{return fCopyNo;}

Referenced by JA::Insert(), and JA::PrintTree().

◆ GetDrawn()

G4bool G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::GetDrawn ( ) const
inline

Definition at line 108 of file G4PhysicalVolumeModel.hh.

108{return fDrawn;}

◆ GetNonCulledDepth()

G4int G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::GetNonCulledDepth ( ) const
inline

Definition at line 106 of file G4PhysicalVolumeModel.hh.

106{return fNonCulledDepth;}

◆ GetPhysicalVolume()

G4VPhysicalVolume * G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::GetPhysicalVolume ( ) const
inline

Definition at line 104 of file G4PhysicalVolumeModel.hh.

104{return fpPV;}

Referenced by JA::Insert(), and JA::PrintTree().

◆ GetTransform()

const G4Transform3D & G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::GetTransform ( ) const
inline

Definition at line 107 of file G4PhysicalVolumeModel.hh.

107{return fTransform;}

◆ operator!=()

G4bool G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::operator!= ( const G4PhysicalVolumeNodeID right) const

Definition at line 980 of file G4PhysicalVolumeModel.cc.

982{
983 if (fpPV != right.fpPV ||
984 fCopyNo != right.fCopyNo ||
985 fNonCulledDepth != right.fNonCulledDepth ||
986 fTransform != right.fTransform ||
987 fDrawn != right.fDrawn) return true;
988 return false;
989}

Referenced by operator==().

◆ operator<()

G4bool G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::operator< ( const G4PhysicalVolumeNodeID right) const

Definition at line 968 of file G4PhysicalVolumeModel.cc.

970{
971 if (fpPV < right.fpPV) return true;
972 if (fpPV == right.fpPV) {
973 if (fCopyNo < right.fCopyNo) return true;
974 if (fCopyNo == right.fCopyNo)
975 return fNonCulledDepth < right.fNonCulledDepth;
976 }
977 return false;
978}

◆ operator==()

G4bool G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::operator== ( const G4PhysicalVolumeNodeID right) const
inline

Definition at line 112 of file G4PhysicalVolumeModel.hh.

112 {
113 return !operator!= (right);
114 }
G4bool operator!=(const G4PhysicalVolumeNodeID &right) const

◆ SetDrawn()

void G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::SetDrawn ( G4bool  drawn)
inline

Definition at line 109 of file G4PhysicalVolumeModel.hh.

109{fDrawn = drawn;}

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