Geant4-11
Public Member Functions | Private Attributes
G4GeometryCell Class Reference

#include <G4GeometryCell.hh>

Public Member Functions

 G4GeometryCell (const G4GeometryCell &rhs)
 
 G4GeometryCell (const G4VPhysicalVolume &aVolume, G4int RepNum)
 
const G4VPhysicalVolumeGetPhysicalVolume () const
 
G4int GetReplicaNumber () const
 
G4GeometryCelloperator= (const G4GeometryCell &rhs)
 
 ~G4GeometryCell ()
 

Private Attributes

G4int fRepNum = 0
 
const G4VPhysicalVolumefVPhysicalVolume = nullptr
 

Detailed Description

Definition at line 44 of file G4GeometryCell.hh.

Constructor & Destructor Documentation

◆ G4GeometryCell() [1/2]

G4GeometryCell::G4GeometryCell ( const G4VPhysicalVolume aVolume,
G4int  RepNum 
)

Definition at line 33 of file G4GeometryCell.cc.

35 : fVPhysicalVolume(&aVolume), fRepNum(RepNum)
36{}
const G4VPhysicalVolume * fVPhysicalVolume

◆ G4GeometryCell() [2/2]

G4GeometryCell::G4GeometryCell ( const G4GeometryCell rhs)

Definition at line 53 of file G4GeometryCell.cc.

◆ ~G4GeometryCell()

G4GeometryCell::~G4GeometryCell ( )

Definition at line 38 of file G4GeometryCell.cc.

39{}

Member Function Documentation

◆ GetPhysicalVolume()

const G4VPhysicalVolume & G4GeometryCell::GetPhysicalVolume ( ) const

◆ GetReplicaNumber()

G4int G4GeometryCell::GetReplicaNumber ( ) const

Definition at line 47 of file G4GeometryCell.cc.

48{
49 return fRepNum;
50}

References fRepNum.

Referenced by operator!=(), G4GeometryCellComp::operator()(), operator<<(), and operator==().

◆ operator=()

G4GeometryCell & G4GeometryCell::operator= ( const G4GeometryCell rhs)

Definition at line 58 of file G4GeometryCell.cc.

59{
60 if (this != &rhs)
61 {
62 fVPhysicalVolume = rhs.fVPhysicalVolume; // this is treated
63 // as identifyer
64 fRepNum = rhs.fRepNum;
65 }
66 return *this;
67}

References fRepNum, and fVPhysicalVolume.

Field Documentation

◆ fRepNum

G4int G4GeometryCell::fRepNum = 0
private

Definition at line 69 of file G4GeometryCell.hh.

Referenced by GetReplicaNumber(), and operator=().

◆ fVPhysicalVolume

const G4VPhysicalVolume* G4GeometryCell::fVPhysicalVolume = nullptr
private

Definition at line 66 of file G4GeometryCell.hh.

Referenced by GetPhysicalVolume(), and operator=().


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