Geant4 9.6.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=true)
 
G4VPhysicalVolumeGetPhysicalVolume () const
 
G4int GetCopyNo () const
 
G4int GetNonCulledDepth () const
 
const G4Transform3DGetTransform () const
 
G4bool GetDrawn () const
 
void SetDrawn (G4bool drawn)
 
G4bool operator< (const G4PhysicalVolumeNodeID &right) const
 

Detailed Description

Definition at line 90 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 = true 
)
inline

Definition at line 92 of file G4PhysicalVolumeModel.hh.

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

Member Function Documentation

◆ GetCopyNo()

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

Definition at line 104 of file G4PhysicalVolumeModel.hh.

104{return fCopyNo;}

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

◆ GetDrawn()

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

Definition at line 107 of file G4PhysicalVolumeModel.hh.

107{return fDrawn;}

◆ GetNonCulledDepth()

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

Definition at line 105 of file G4PhysicalVolumeModel.hh.

105{return fNonCulledDepth;}

◆ GetPhysicalVolume()

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

Definition at line 103 of file G4PhysicalVolumeModel.hh.

103{return fpPV;}

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

◆ GetTransform()

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

Definition at line 106 of file G4PhysicalVolumeModel.hh.

106{return fTransform;}

◆ operator<()

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

Definition at line 874 of file G4PhysicalVolumeModel.cc.

876{
877 if (fpPV < right.fpPV) return true;
878 if (fpPV == right.fpPV) {
879 if (fCopyNo < right.fCopyNo) return true;
880 if (fCopyNo == right.fCopyNo)
881 return fNonCulledDepth < right.fNonCulledDepth;
882 }
883 return false;
884}

◆ SetDrawn()

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

Definition at line 108 of file G4PhysicalVolumeModel.hh.

108{fDrawn = drawn;}

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