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

#include <G4GeometryCell.hh>

Public Member Functions

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

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{}

◆ G4GeometryCell() [2/2]

G4GeometryCell::G4GeometryCell ( const G4GeometryCell rhs)

Definition at line 53 of file G4GeometryCell.cc.

54 : fVPhysicalVolume(rhs.fVPhysicalVolume), fRepNum(rhs.fRepNum)
55{
56}

◆ ~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}

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}

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