G4PSPassageCellCurrent3D Class Reference

#include <G4PSPassageCellCurrent3D.hh>

Inheritance diagram for G4PSPassageCellCurrent3D:

G4PSPassageCellCurrent G4VPrimitiveScorer

Public Member Functions

 G4PSPassageCellCurrent3D (G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
virtual ~G4PSPassageCellCurrent3D ()

Protected Member Functions

virtual G4int GetIndex (G4Step *)

Detailed Description

Definition at line 47 of file G4PSPassageCellCurrent3D.hh.


Constructor & Destructor Documentation

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

Definition at line 43 of file G4PSPassageCellCurrent3D.cc.

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

00046     :G4PSPassageCellCurrent(name),
00047      fDepthi(di),fDepthj(dj),fDepthk(dk)
00048 {
00049   fNi=ni;
00050   fNj=nj;
00051   fNk=nk;
00052 }

G4PSPassageCellCurrent3D::~G4PSPassageCellCurrent3D (  )  [virtual]

Definition at line 54 of file G4PSPassageCellCurrent3D.cc.

00055 {;}


Member Function Documentation

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

Reimplemented from G4VPrimitiveScorer.

Definition at line 57 of file G4PSPassageCellCurrent3D.cc.

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

00058 {
00059   const G4VTouchable* touchable = aStep->GetPreStepPoint()->GetTouchable();
00060   G4int i = touchable->GetReplicaNumber(fDepthi);
00061   G4int j = touchable->GetReplicaNumber(fDepthj);
00062   G4int k = touchable->GetReplicaNumber(fDepthk);
00063   
00064   return i*fNj*fNk+j*fNk+k;
00065 }


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