Geant4 11.2.2
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{
37}

◆ G4GeometryCell() [2/2]

G4GeometryCell::G4GeometryCell ( const G4GeometryCell & rhs)
default

◆ ~G4GeometryCell()

G4GeometryCell::~G4GeometryCell ( )
default

Member Function Documentation

◆ GetPhysicalVolume()

const G4VPhysicalVolume & G4GeometryCell::GetPhysicalVolume ( ) const

◆ GetReplicaNumber()

G4int G4GeometryCell::GetReplicaNumber ( ) const

Definition at line 48 of file G4GeometryCell.cc.

49{
50 return fRepNum;
51}

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: