G4PSFlatSurfaceCurrent3D Class Reference

#include <G4PSFlatSurfaceCurrent3D.hh>

Inheritance diagram for G4PSFlatSurfaceCurrent3D:

G4PSFlatSurfaceCurrent G4VPrimitiveScorer

Public Member Functions

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

Protected Member Functions

virtual G4int GetIndex (G4Step *)

Detailed Description

Definition at line 54 of file G4PSFlatSurfaceCurrent3D.hh.


Constructor & Destructor Documentation

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

Definition at line 52 of file G4PSFlatSurfaceCurrent3D.cc.

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

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

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

Definition at line 64 of file G4PSFlatSurfaceCurrent3D.cc.

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

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

G4PSFlatSurfaceCurrent3D::~G4PSFlatSurfaceCurrent3D (  )  [virtual]

Definition at line 78 of file G4PSFlatSurfaceCurrent3D.cc.

00079 {;}


Member Function Documentation

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

Reimplemented from G4VPrimitiveScorer.

Definition at line 81 of file G4PSFlatSurfaceCurrent3D.cc.

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

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


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