#include <G4PSPopulation3D.hh>
Inheritance diagram for G4PSPopulation3D:
Public Member Functions | |
G4PSPopulation3D (G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0) | |
virtual | ~G4PSPopulation3D () |
Protected Member Functions | |
virtual G4int | GetIndex (G4Step *) |
Definition at line 43 of file G4PSPopulation3D.hh.
G4PSPopulation3D::G4PSPopulation3D | ( | G4String | name, | |
G4int | ni = 1 , |
|||
G4int | nj = 1 , |
|||
G4int | nk = 1 , |
|||
G4int | depi = 2 , |
|||
G4int | depj = 1 , |
|||
G4int | depk = 0 | |||
) |
Definition at line 39 of file G4PSPopulation3D.cc.
References G4VPrimitiveScorer::fNi, G4VPrimitiveScorer::fNj, and G4VPrimitiveScorer::fNk.
00042 :G4PSPopulation(name), 00043 fDepthi(depi),fDepthj(depj),fDepthk(depk) 00044 { 00045 fNi=ni; 00046 fNj=nj; 00047 fNk=nk; 00048 }
G4PSPopulation3D::~G4PSPopulation3D | ( | ) | [virtual] |
Reimplemented from G4VPrimitiveScorer.
Definition at line 53 of file G4PSPopulation3D.cc.
References G4VPrimitiveScorer::fNj, G4VPrimitiveScorer::fNk, G4Step::GetPreStepPoint(), G4VTouchable::GetReplicaNumber(), and G4StepPoint::GetTouchable().
00054 { 00055 const G4VTouchable* touchable = aStep->GetPreStepPoint()->GetTouchable(); 00056 G4int i = touchable->GetReplicaNumber(fDepthi); 00057 G4int j = touchable->GetReplicaNumber(fDepthj); 00058 G4int k = touchable->GetReplicaNumber(fDepthk); 00059 00060 return i*fNj*fNk+j*fNk+k; 00061 }