Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
RE02PSCellFlux Class Reference

Cell flux class for a parameterized volume in a three dimentional structure. More...

#include <Doxymodules_runAndEvent.h>

Inheritance diagram for RE02PSCellFlux:
G4PSCellFlux G4VPrimitivePlotter G4VPrimitiveScorer

Public Member Functions

 RE02PSCellFlux (G4String name, G4int nx, G4int ny, G4int nz)
 
virtual ~RE02PSCellFlux ()
 

Protected Member Functions

virtual G4int GetIndex (G4Step *)
 

Private Attributes

G4int fNx
 
G4int fNy
 
G4int fNz
 

Detailed Description

Cell flux class for a parameterized volume in a three dimentional structure.

(Description) This is a primitive scorer class for scoring cell flux. The Cell Flux is defined by a sum of track length divided by the geometry volume, where all of the tracks in the geometry are taken into account. e.g. the unit of Cell Flux is mm/mm3.

If you score only tracks passing through the geometry volume, use G4PSPassageCellFlux.

Definition at line 52 of file Doxymodules_runAndEvent.h.

Constructor & Destructor Documentation

◆ RE02PSCellFlux()

RE02PSCellFlux::RE02PSCellFlux ( G4String  name,
G4int  nx,
G4int  ny,
G4int  nz 
)

Definition at line 60 of file RE02PSCellFlux.cc.

◆ ~RE02PSCellFlux()

RE02PSCellFlux::~RE02PSCellFlux ( )
virtual

Definition at line 65 of file RE02PSCellFlux.cc.

66{;}

Member Function Documentation

◆ GetIndex()

G4int RE02PSCellFlux::GetIndex ( G4Step aStep)
protectedvirtual

Definition at line 69 of file RE02PSCellFlux.cc.

70{
71 const G4VTouchable* touchable = aStep->GetPreStepPoint()->GetTouchable();
72 G4int ix = touchable->GetReplicaNumber(1);
73 G4int iy = touchable->GetReplicaNumber(2);
74 G4int iz = touchable->GetReplicaNumber(0);
75
76 G4int tmp = fNy;
77 if (tmp) return iy*fNx*fNz+ix*fNz+iz;
78 else return iy*fNx*fNz+ix*fNz+iz;
79}

Member Data Documentation

◆ fNx

G4int RE02PSCellFlux::fNx
private

Definition at line 64 of file RE02PSCellFlux.hh.

◆ fNy

G4int RE02PSCellFlux::fNy
private

Definition at line 64 of file RE02PSCellFlux.hh.

◆ fNz

G4int RE02PSCellFlux::fNz
private

Definition at line 64 of file RE02PSCellFlux.hh.


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

Applications | User Support | Publications | Collaboration