#include <G4PSTrackLength3D.hh>
Inheritance diagram for G4PSTrackLength3D:
Public Member Functions | |
G4PSTrackLength3D (G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0) | |
G4PSTrackLength3D (G4String name, const G4String &unit, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0) | |
virtual | ~G4PSTrackLength3D () |
Protected Member Functions | |
virtual G4int | GetIndex (G4Step *) |
Definition at line 45 of file G4PSTrackLength3D.hh.
G4PSTrackLength3D::G4PSTrackLength3D | ( | G4String | name, | |
G4int | ni = 1 , |
|||
G4int | nj = 1 , |
|||
G4int | nk = 1 , |
|||
G4int | depi = 2 , |
|||
G4int | depj = 1 , |
|||
G4int | depk = 0 | |||
) |
Definition at line 42 of file G4PSTrackLength3D.cc.
References G4VPrimitiveScorer::fNi, G4VPrimitiveScorer::fNj, and G4VPrimitiveScorer::fNk.
00045 :G4PSTrackLength(name), 00046 fDepthi(depi),fDepthj(depj),fDepthk(depk) 00047 { 00048 fNi=ni; 00049 fNj=nj; 00050 fNk=nk; 00051 }
G4PSTrackLength3D::G4PSTrackLength3D | ( | G4String | name, | |
const G4String & | unit, | |||
G4int | ni = 1 , |
|||
G4int | nj = 1 , |
|||
G4int | nk = 1 , |
|||
G4int | depi = 2 , |
|||
G4int | depj = 1 , |
|||
G4int | depk = 0 | |||
) |
Definition at line 53 of file G4PSTrackLength3D.cc.
References G4VPrimitiveScorer::fNi, G4VPrimitiveScorer::fNj, G4VPrimitiveScorer::fNk, and G4PSTrackLength::SetUnit().
00056 :G4PSTrackLength(name), 00057 fDepthi(depi),fDepthj(depj),fDepthk(depk) 00058 { 00059 fNi=ni; 00060 fNj=nj; 00061 fNk=nk; 00062 SetUnit(unit); 00063 }
G4PSTrackLength3D::~G4PSTrackLength3D | ( | ) | [virtual] |
Reimplemented from G4VPrimitiveScorer.
Definition at line 68 of file G4PSTrackLength3D.cc.
References G4VPrimitiveScorer::fNj, G4VPrimitiveScorer::fNk, G4Step::GetPreStepPoint(), G4VTouchable::GetReplicaNumber(), and G4StepPoint::GetTouchable().
00069 { 00070 const G4VTouchable* touchable = aStep->GetPreStepPoint()->GetTouchable(); 00071 G4int i = touchable->GetReplicaNumber(fDepthi); 00072 G4int j = touchable->GetReplicaNumber(fDepthj); 00073 G4int k = touchable->GetReplicaNumber(fDepthk); 00074 00075 return i*fNj*fNk+j*fNk+k; 00076 }