G4PSCellFlux3D Class Reference

#include <G4PSCellFlux3D.hh>

Inheritance diagram for G4PSCellFlux3D:

G4PSCellFlux G4VPrimitiveScorer G4PSCellFluxForCylinder3D

Public Member Functions

 G4PSCellFlux3D (G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
 G4PSCellFlux3D (G4String name, const G4String &unit, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
virtual ~G4PSCellFlux3D ()

Protected Member Functions

virtual G4int GetIndex (G4Step *)

Detailed Description

Definition at line 52 of file G4PSCellFlux3D.hh.


Constructor & Destructor Documentation

G4PSCellFlux3D::G4PSCellFlux3D ( G4String  name,
G4int  ni = 1,
G4int  nj = 1,
G4int  nk = 1,
G4int  depi = 2,
G4int  depj = 1,
G4int  depk = 0 
)

Definition at line 49 of file G4PSCellFlux3D.cc.

References G4VPrimitiveScorer::fNi, G4VPrimitiveScorer::fNj, and G4VPrimitiveScorer::fNk.

00052     :G4PSCellFlux(name),
00053      fDepthi(depi),fDepthj(depj),fDepthk(depk)
00054 {
00055     fNi=ni;
00056     fNj=nj;
00057     fNk=nk;
00058 }

G4PSCellFlux3D::G4PSCellFlux3D ( G4String  name,
const G4String unit,
G4int  ni = 1,
G4int  nj = 1,
G4int  nk = 1,
G4int  depi = 2,
G4int  depj = 1,
G4int  depk = 0 
)

Definition at line 60 of file G4PSCellFlux3D.cc.

References G4VPrimitiveScorer::fNi, G4VPrimitiveScorer::fNj, G4VPrimitiveScorer::fNk, and G4PSCellFlux::SetUnit().

00063     :G4PSCellFlux(name),
00064      fDepthi(depi),fDepthj(depj),fDepthk(depk)
00065 {
00066     fNi=ni;
00067     fNj=nj;
00068     fNk=nk;
00069     SetUnit(unit);
00070 }

G4PSCellFlux3D::~G4PSCellFlux3D (  )  [virtual]

Definition at line 72 of file G4PSCellFlux3D.cc.

00073 {;}


Member Function Documentation

G4int G4PSCellFlux3D::GetIndex ( G4Step  )  [protected, virtual]

Reimplemented from G4VPrimitiveScorer.

Definition at line 75 of file G4PSCellFlux3D.cc.

References G4VPrimitiveScorer::fNj, G4VPrimitiveScorer::fNk, G4Step::GetPreStepPoint(), G4VTouchable::GetReplicaNumber(), and G4StepPoint::GetTouchable().

00076 {
00077   const G4VTouchable* touchable = aStep->GetPreStepPoint()->GetTouchable();
00078   G4int i = touchable->GetReplicaNumber(fDepthi);
00079   G4int j = touchable->GetReplicaNumber(fDepthj);
00080   G4int k = touchable->GetReplicaNumber(fDepthk);
00081   
00082   return i*fNj*fNk+j*fNk+k;
00083 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:01 2013 for Geant4 by  doxygen 1.4.7