#include <G4PSTermination3D.hh>
Inheritance diagram for G4PSTermination3D:
Public Member Functions | |
G4PSTermination3D (G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int di=2, G4int dj=1, G4int dk=0) | |
virtual | ~G4PSTermination3D () |
Protected Member Functions | |
virtual G4int | GetIndex (G4Step *) |
Definition at line 44 of file G4PSTermination3D.hh.
G4PSTermination3D::G4PSTermination3D | ( | G4String | name, | |
G4int | ni = 1 , |
|||
G4int | nj = 1 , |
|||
G4int | nk = 1 , |
|||
G4int | di = 2 , |
|||
G4int | dj = 1 , |
|||
G4int | dk = 0 | |||
) |
Definition at line 51 of file G4PSTermination3D.cc.
References G4VPrimitiveScorer::fNi, G4VPrimitiveScorer::fNj, and G4VPrimitiveScorer::fNk.
00054 :G4PSTermination(name), 00055 fDepthi(di),fDepthj(dj),fDepthk(dk) 00056 { 00057 fNi=ni; 00058 fNj=nj; 00059 fNk=nk; 00060 }
G4PSTermination3D::~G4PSTermination3D | ( | ) | [virtual] |
Reimplemented from G4VPrimitiveScorer.
Definition at line 65 of file G4PSTermination3D.cc.
References G4VPrimitiveScorer::fNj, G4VPrimitiveScorer::fNk, G4Step::GetPreStepPoint(), G4VTouchable::GetReplicaNumber(), and G4StepPoint::GetTouchable().
00066 { 00067 const G4VTouchable* touchable = aStep->GetPreStepPoint()->GetTouchable(); 00068 G4int i = touchable->GetReplicaNumber(fDepthi); 00069 G4int j = touchable->GetReplicaNumber(fDepthj); 00070 G4int k = touchable->GetReplicaNumber(fDepthk); 00071 00072 return i*fNj*fNk+j*fNk+k; 00073 }