G4PSCylinderSurfaceFlux3D Class Reference

#include <G4PSCylinderSurfaceFlux3D.hh>

Inheritance diagram for G4PSCylinderSurfaceFlux3D:

G4PSCylinderSurfaceFlux G4VPrimitiveScorer

Public Member Functions

 G4PSCylinderSurfaceFlux3D (G4String name, G4int direction, G4int ni=1, G4int nj=1, G4int nk=1, G4int di=2, G4int dj=1, G4int dk=0)
 G4PSCylinderSurfaceFlux3D (G4String name, G4int direction, const G4String &unit, G4int ni=1, G4int nj=1, G4int nk=1, G4int di=2, G4int dj=1, G4int dk=0)
virtual ~G4PSCylinderSurfaceFlux3D ()

Protected Member Functions

virtual G4int GetIndex (G4Step *)

Detailed Description

Definition at line 54 of file G4PSCylinderSurfaceFlux3D.hh.


Constructor & Destructor Documentation

G4PSCylinderSurfaceFlux3D::G4PSCylinderSurfaceFlux3D ( G4String  name,
G4int  direction,
G4int  ni = 1,
G4int  nj = 1,
G4int  nk = 1,
G4int  di = 2,
G4int  dj = 1,
G4int  dk = 0 
)

Definition at line 51 of file G4PSCylinderSurfaceFlux3D.cc.

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

00055     :G4PSCylinderSurfaceFlux(name,direction),
00056      fDepthi(di),fDepthj(dj),fDepthk(dk)
00057 {
00058   fNi=ni;
00059   fNj=nj;
00060   fNk=nk;
00061 }

G4PSCylinderSurfaceFlux3D::G4PSCylinderSurfaceFlux3D ( G4String  name,
G4int  direction,
const G4String unit,
G4int  ni = 1,
G4int  nj = 1,
G4int  nk = 1,
G4int  di = 2,
G4int  dj = 1,
G4int  dk = 0 
)

Definition at line 63 of file G4PSCylinderSurfaceFlux3D.cc.

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

00068     :G4PSCylinderSurfaceFlux(name,direction),
00069      fDepthi(di),fDepthj(dj),fDepthk(dk)
00070 {
00071   fNi=ni;
00072   fNj=nj;
00073   fNk=nk;
00074   SetUnit(unit);
00075 }

G4PSCylinderSurfaceFlux3D::~G4PSCylinderSurfaceFlux3D (  )  [virtual]

Definition at line 77 of file G4PSCylinderSurfaceFlux3D.cc.

00078 {;}


Member Function Documentation

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

Reimplemented from G4VPrimitiveScorer.

Definition at line 80 of file G4PSCylinderSurfaceFlux3D.cc.

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

00081 {
00082   const G4VTouchable* touchable = aStep->GetPreStepPoint()->GetTouchable();
00083   G4int i = touchable->GetReplicaNumber(fDepthi);
00084   G4int j = touchable->GetReplicaNumber(fDepthj);
00085   G4int k = touchable->GetReplicaNumber(fDepthk);
00086   
00087   return i*fNj*fNk+j*fNk+k;
00088 }


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