Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE02PSFlatSurfaceCurrent Class Reference

#include <RE02PSFlatSurfaceCurrent.hh>

Inheritance diagram for RE02PSFlatSurfaceCurrent:
Collaboration diagram for RE02PSFlatSurfaceCurrent:

Public Member Functions

 RE02PSFlatSurfaceCurrent (G4String name, G4int direction, G4int nx, G4int ny, G4int nz)
 
virtual ~RE02PSFlatSurfaceCurrent ()
 
- Public Member Functions inherited from G4PSFlatSurfaceCurrent
 G4PSFlatSurfaceCurrent (G4String name, G4int direction, G4int depth=0)
 
 G4PSFlatSurfaceCurrent (G4String name, G4int direction, const G4String &unit, G4int depth=0)
 
virtual ~G4PSFlatSurfaceCurrent ()
 
void Weighted (G4bool flg=true)
 
void DivideByArea (G4bool flg=true)
 
virtual void Initialize (G4HCofThisEvent *)
 
virtual void EndOfEvent (G4HCofThisEvent *)
 
virtual void clear ()
 
virtual void DrawAll ()
 
virtual void PrintAll ()
 
virtual void SetUnit (const G4String &unit)
 
- Public Member Functions inherited from G4VPrimitiveScorer
 G4VPrimitiveScorer (G4String name, G4int depth=0)
 
virtual ~G4VPrimitiveScorer ()
 
G4int GetCollectionID (G4int)
 
void SetUnit (const G4String &unit)
 
const G4StringGetUnit () const
 
G4double GetUnitValue () const
 
void SetMultiFunctionalDetector (G4MultiFunctionalDetector *d)
 
G4MultiFunctionalDetectorGetMultiFunctionalDetector () const
 
G4String GetName () const
 
void SetFilter (G4VSDFilter *f)
 
G4VSDFilterGetFilter () const
 
void SetVerboseLevel (G4int vl)
 
G4int GetVerboseLevel () const
 
void SetNijk (G4int i, G4int j, G4int k)
 

Protected Member Functions

virtual G4int GetIndex (G4Step *)
 
- Protected Member Functions inherited from G4PSFlatSurfaceCurrent
virtual G4bool ProcessHits (G4Step *, G4TouchableHistory *)
 
G4int IsSelectedSurface (G4Step *, G4Box *)
 
virtual void DefineUnitAndCategory ()
 
- Protected Member Functions inherited from G4VPrimitiveScorer
void CheckAndSetUnit (const G4String &unit, const G4String &category)
 

Additional Inherited Members

- Protected Attributes inherited from G4VPrimitiveScorer
G4String primitiveName
 
G4MultiFunctionalDetectordetector
 
G4VSDFilterfilter
 
G4int verboseLevel
 
G4int indexDepth
 
G4String unitName
 
G4double unitValue
 
G4int fNi
 
G4int fNj
 
G4int fNk
 

Detailed Description

Definition at line 56 of file RE02PSFlatSurfaceCurrent.hh.

Constructor & Destructor Documentation

RE02PSFlatSurfaceCurrent::RE02PSFlatSurfaceCurrent ( G4String  name,
G4int  direction,
G4int  nx,
G4int  ny,
G4int  nz 
)

Definition at line 61 of file RE02PSFlatSurfaceCurrent.cc.

64  :G4PSFlatSurfaceCurrent(name,direction),fNx(nx),fNy(ny),fNz(nz)
65 {;}
G4PSFlatSurfaceCurrent(G4String name, G4int direction, G4int depth=0)
RE02PSFlatSurfaceCurrent::~RE02PSFlatSurfaceCurrent ( )
virtual

Definition at line 68 of file RE02PSFlatSurfaceCurrent.cc.

69 {;}

Member Function Documentation

G4int RE02PSFlatSurfaceCurrent::GetIndex ( G4Step aStep)
protectedvirtual

Reimplemented from G4VPrimitiveScorer.

Definition at line 72 of file RE02PSFlatSurfaceCurrent.cc.

73 {
74  const G4VTouchable* touchable = aStep->GetPreStepPoint()->GetTouchable();
75  G4int ix = touchable->GetReplicaNumber(1);
76  G4int iy = touchable->GetReplicaNumber(2);
77  G4int iz = touchable->GetReplicaNumber(0);
78 
79  G4int tmp = fNy;
80  if (tmp) return iy*fNx*fNz+ix*fNz+iz;
81  else return iy*fNx*fNz+ix*fNz+iz;
82 }
const G4VTouchable * GetTouchable() const
int G4int
Definition: G4Types.hh:78
G4StepPoint * GetPreStepPoint() const
virtual G4int GetReplicaNumber(G4int depth=0) const
Definition: G4VTouchable.cc:58

Here is the call graph for this function:


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