Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
RE02PSNofStep Class Reference

#include <Doxymodules_runAndEvent.h>

Inheritance diagram for RE02PSNofStep:
G4PSNofStep G4VPrimitivePlotter G4VPrimitiveScorer

Public Member Functions

 RE02PSNofStep (G4String name, G4int nx, G4int ny, G4int nz)
 
virtual ~RE02PSNofStep ()
 

Protected Member Functions

virtual G4int GetIndex (G4Step *)
 

Private Attributes

G4int fNx
 
G4int fNy
 
G4int fNz
 

Detailed Description

Definition at line 56 of file Doxymodules_runAndEvent.h.

Constructor & Destructor Documentation

◆ RE02PSNofStep()

RE02PSNofStep::RE02PSNofStep ( G4String  name,
G4int  nx,
G4int  ny,
G4int  nz 
)

Definition at line 60 of file RE02PSNofStep.cc.

61 :G4PSNofStep(name),fNx(nx),fNy(ny),fNz(nz)
62{;}

◆ ~RE02PSNofStep()

RE02PSNofStep::~RE02PSNofStep ( )
virtual

Definition at line 65 of file RE02PSNofStep.cc.

66{;}

Member Function Documentation

◆ GetIndex()

G4int RE02PSNofStep::GetIndex ( G4Step aStep)
protectedvirtual

Definition at line 69 of file RE02PSNofStep.cc.

70{
71 const G4VTouchable* touchable = aStep->GetPreStepPoint()->GetTouchable();
72 G4int ix = touchable->GetReplicaNumber(1);
73 G4int iy = touchable->GetReplicaNumber(2);
74 G4int iz = touchable->GetReplicaNumber(0);
75
76 G4int tmp = fNy;
77 if (tmp) return iy*fNx*fNz+ix*fNz+iz;
78 else return iy*fNx*fNz+ix*fNz+iz;
79}

Member Data Documentation

◆ fNx

G4int RE02PSNofStep::fNx
private

Definition at line 54 of file RE02PSNofStep.hh.

◆ fNy

G4int RE02PSNofStep::fNy
private

Definition at line 54 of file RE02PSNofStep.hh.

◆ fNz

G4int RE02PSNofStep::fNz
private

Definition at line 54 of file RE02PSNofStep.hh.


The documentation for this class was generated from the following files:

Applications | User Support | Publications | Collaboration