Geant4 9.6.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)
 
 ~G4GeometryCell ()
 
const G4VPhysicalVolumeGetPhysicalVolume () const
 
G4int GetReplicaNumber () const
 
G4GeometryCelloperator= (const G4GeometryCell &rhs)
 

Detailed Description

Definition at line 49 of file G4GeometryCell.hh.

Constructor & Destructor Documentation

◆ G4GeometryCell() [1/2]

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

Definition at line 38 of file G4GeometryCell.cc.

40 : fVPhysicalVolume(&aVolume),
41 fRepNum(RepNum)
42{}

◆ G4GeometryCell() [2/2]

G4GeometryCell::G4GeometryCell ( const G4GeometryCell rhs)

Definition at line 59 of file G4GeometryCell.cc.

60 : fVPhysicalVolume(rhs.fVPhysicalVolume),
61 fRepNum(rhs.fRepNum)
62{
63}

◆ ~G4GeometryCell()

G4GeometryCell::~G4GeometryCell ( )

Definition at line 44 of file G4GeometryCell.cc.

45{}

Member Function Documentation

◆ GetPhysicalVolume()

const G4VPhysicalVolume & G4GeometryCell::GetPhysicalVolume ( ) const

◆ GetReplicaNumber()

G4int G4GeometryCell::GetReplicaNumber ( ) const

Definition at line 53 of file G4GeometryCell.cc.

54{
55 return fRepNum;
56}

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

◆ operator=()

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

Definition at line 65 of file G4GeometryCell.cc.

65 {
66 if (this != &rhs) {
67 fVPhysicalVolume = rhs.fVPhysicalVolume; // this is treated
68 // as identifyer
69 fRepNum = rhs.fRepNum;
70 }
71 return *this;
72}

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