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

G4GeometryCellStep serves to address the "cell" a track previously touched and a "cell" a track is currently in. It is used for scoring and importance sampling in the "mass" geometry as well as in a "parallel" geometry. More...

#include <G4GeometryCellStep.hh>

Public Member Functions

 G4GeometryCellStep (const G4GeometryCell &preCell, const G4GeometryCell &postCell)
 ~G4GeometryCellStep ()=default
const G4GeometryCellGetPreGeometryCell () const
const G4GeometryCellGetPostGeometryCell () const
G4bool GetCrossBoundary () const
void SetPreGeometryCell (const G4GeometryCell &preCell)
void SetPostGeometryCell (const G4GeometryCell &postCell)
void SetCrossBoundary (G4bool b)

Detailed Description

G4GeometryCellStep serves to address the "cell" a track previously touched and a "cell" a track is currently in. It is used for scoring and importance sampling in the "mass" geometry as well as in a "parallel" geometry.

Definition at line 54 of file G4GeometryCellStep.hh.

Constructor & Destructor Documentation

◆ G4GeometryCellStep()

G4GeometryCellStep::G4GeometryCellStep ( const G4GeometryCell & preCell,
const G4GeometryCell & postCell )

Constructor. Initialises pre and post G4GeometryCell.

Parameters
[in]preCellThe previous cell.
[in]postCellThe next cell.

Definition at line 33 of file G4GeometryCellStep.cc.

35 : fPreGeometryCell(preCell), fPostGeometryCell(postCell)
36{
37}

◆ ~G4GeometryCellStep()

G4GeometryCellStep::~G4GeometryCellStep ( )
default

Default Destructor.

Member Function Documentation

◆ GetCrossBoundary()

G4bool G4GeometryCellStep::GetCrossBoundary ( ) const
inline

Returns true if the step crosses boundary of the geometry it refers to.

Definition at line 134 of file G4GeometryCellStep.hh.

135{
136 return fCrossBoundary;
137}

◆ GetPostGeometryCell()

const G4GeometryCell & G4GeometryCellStep::GetPostGeometryCell ( ) const
inline

Returns the current "cell".

Definition at line 128 of file G4GeometryCellStep.hh.

129{
130 return fPostGeometryCell;
131}

◆ GetPreGeometryCell()

const G4GeometryCell & G4GeometryCellStep::GetPreGeometryCell ( ) const
inline

Returns the "cell" the track previously touched.

Definition at line 122 of file G4GeometryCellStep.hh.

123{
124 return fPreGeometryCell;
125}

◆ SetCrossBoundary()

void G4GeometryCellStep::SetCrossBoundary ( G4bool b)
inline

Definition at line 116 of file G4GeometryCellStep.hh.

117{
118 fCrossBoundary = b;
119}

◆ SetPostGeometryCell()

void G4GeometryCellStep::SetPostGeometryCell ( const G4GeometryCell & postCell)
inline

Definition at line 110 of file G4GeometryCellStep.hh.

111{
112 fPostGeometryCell = postCell;
113}

◆ SetPreGeometryCell()

void G4GeometryCellStep::SetPreGeometryCell ( const G4GeometryCell & preCell)
inline

Functions used by the scoring and importance system to set the cell information.

Definition at line 104 of file G4GeometryCellStep.hh.

105{
106 fPreGeometryCell = preCell;
107}

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