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

G4GeometryCell is used for scoring and importance sampling. It defines a "cell", which, similar to the concept of "touchable",. More...

#include <G4GeometryCell.hh>

Public Member Functions

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

Detailed Description

G4GeometryCell is used for scoring and importance sampling. It defines a "cell", which, similar to the concept of "touchable",.

Definition at line 51 of file G4GeometryCell.hh.

Constructor & Destructor Documentation

◆ G4GeometryCell() [1/2]

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

Constructor. Initialises volume and replica number.

Parameters
[in]aVolumeThe name of the physical volume.
[in]RepNumThe associated replica number.

Definition at line 33 of file G4GeometryCell.cc.

35 : fVPhysicalVolume(&aVolume), fRepNum(RepNum)
36{
37}

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

◆ G4GeometryCell() [2/2]

G4GeometryCell::G4GeometryCell ( const G4GeometryCell & rhs)
default

Copy constructor and assignment operator.

◆ ~G4GeometryCell()

G4GeometryCell::~G4GeometryCell ( )
default

Default Destructor.

Member Function Documentation

◆ GetPhysicalVolume()

const G4VPhysicalVolume & G4GeometryCell::GetPhysicalVolume ( ) const

Returns the physical volume of the cell.

Definition at line 39 of file G4GeometryCell.cc.

40{
41 return *fVPhysicalVolume;
42}

Referenced by G4IStore::AddImportanceGeometryCell(), G4IStore::ChangeImportance(), G4IStore::IsKnown(), G4WeightWindowStore::IsKnown(), operator!=(), G4GeometryCellComp::operator()(), operator<<(), and operator==().

◆ GetReplicaNumber()

G4int G4GeometryCell::GetReplicaNumber ( ) const

Returns the replica number of the cell.

Definition at line 44 of file G4GeometryCell.cc.

45{
46 return fRepNum;
47}

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

◆ operator=()

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

Definition at line 49 of file G4GeometryCell.cc.

50{
51 if (this != &rhs)
52 {
53 fVPhysicalVolume = rhs.fVPhysicalVolume; // this is treated
54 // as identifyer
55 fRepNum = rhs.fRepNum;
56 }
57 return *this;
58}

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