Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PSCylinderSurfaceFlux3D Class Reference

#include <G4PSCylinderSurfaceFlux3D.hh>

+ Inheritance diagram for G4PSCylinderSurfaceFlux3D:

Public Member Functions

 G4PSCylinderSurfaceFlux3D (G4String name, G4int direction, G4int ni=1, G4int nj=1, G4int nk=1, G4int di=2, G4int dj=1, G4int dk=0)
 
 G4PSCylinderSurfaceFlux3D (G4String name, G4int direction, const G4String &unit, G4int ni=1, G4int nj=1, G4int nk=1, G4int di=2, G4int dj=1, G4int dk=0)
 
virtual ~G4PSCylinderSurfaceFlux3D ()
 
- Public Member Functions inherited from G4PSCylinderSurfaceFlux
 G4PSCylinderSurfaceFlux (G4String name, G4int direction, G4int depth=0)
 
 G4PSCylinderSurfaceFlux (G4String name, G4int direction, const G4String &unit, G4int depth=0)
 
virtual ~G4PSCylinderSurfaceFlux ()
 
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 G4VPrimitivePlotter
 G4VPrimitivePlotter (G4String name, G4int depth=0)
 
virtual ~G4VPrimitivePlotter ()
 
void Plot (G4int copyNo, G4int histID)
 
G4int GetNumberOfHist () const
 
- Public Member Functions inherited from G4VPrimitiveScorer
 G4VPrimitiveScorer (G4String name, G4int depth=0)
 
virtual ~G4VPrimitiveScorer ()
 
G4int GetCollectionID (G4int)
 
virtual void Initialize (G4HCofThisEvent *)
 
virtual void EndOfEvent (G4HCofThisEvent *)
 
virtual void clear ()
 
virtual void DrawAll ()
 
virtual void PrintAll ()
 
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 G4PSCylinderSurfaceFlux
virtual G4bool ProcessHits (G4Step *, G4TouchableHistory *)
 
G4int IsSelectedSurface (G4Step *, G4Tubs *)
 
virtual void DefineUnitAndCategory ()
 
- Protected Member Functions inherited from G4VPrimitiveScorer
virtual G4bool ProcessHits (G4Step *, G4TouchableHistory *)=0
 
virtual G4int GetIndex (G4Step *)
 
void CheckAndSetUnit (const G4String &unit, const G4String &category)
 
G4VSolidComputeSolid (G4Step *aStep, G4int replicaIdx)
 
G4VSolidComputeCurrentSolid (G4Step *aStep)
 

Additional Inherited Members

- Protected Attributes inherited from G4VPrimitivePlotter
std::map< G4int, G4inthitIDMap
 
- 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 53 of file G4PSCylinderSurfaceFlux3D.hh.

Constructor & Destructor Documentation

◆ G4PSCylinderSurfaceFlux3D() [1/2]

G4PSCylinderSurfaceFlux3D::G4PSCylinderSurfaceFlux3D ( G4String  name,
G4int  direction,
G4int  ni = 1,
G4int  nj = 1,
G4int  nk = 1,
G4int  di = 2,
G4int  dj = 1,
G4int  dk = 0 
)

Definition at line 50 of file G4PSCylinderSurfaceFlux3D.cc.

54 :G4PSCylinderSurfaceFlux(name,direction),
55 fDepthi(di),fDepthj(dj),fDepthk(dk)
56{
57 fNi=ni;
58 fNj=nj;
59 fNk=nk;
60}

◆ G4PSCylinderSurfaceFlux3D() [2/2]

G4PSCylinderSurfaceFlux3D::G4PSCylinderSurfaceFlux3D ( G4String  name,
G4int  direction,
const G4String unit,
G4int  ni = 1,
G4int  nj = 1,
G4int  nk = 1,
G4int  di = 2,
G4int  dj = 1,
G4int  dk = 0 
)

Definition at line 62 of file G4PSCylinderSurfaceFlux3D.cc.

67 :G4PSCylinderSurfaceFlux(name,direction),
68 fDepthi(di),fDepthj(dj),fDepthk(dk)
69{
70 fNi=ni;
71 fNj=nj;
72 fNk=nk;
73 SetUnit(unit);
74}
virtual void SetUnit(const G4String &unit)

◆ ~G4PSCylinderSurfaceFlux3D()

G4PSCylinderSurfaceFlux3D::~G4PSCylinderSurfaceFlux3D ( )
virtual

Definition at line 76 of file G4PSCylinderSurfaceFlux3D.cc.

77{;}

Member Function Documentation

◆ GetIndex()

G4int G4PSCylinderSurfaceFlux3D::GetIndex ( G4Step aStep)
protectedvirtual

Reimplemented from G4VPrimitiveScorer.

Definition at line 79 of file G4PSCylinderSurfaceFlux3D.cc.

80{
81 const G4VTouchable* touchable = aStep->GetPreStepPoint()->GetTouchable();
82 G4int i = touchable->GetReplicaNumber(fDepthi);
83 G4int j = touchable->GetReplicaNumber(fDepthj);
84 G4int k = touchable->GetReplicaNumber(fDepthk);
85
86 return i*fNj*fNk+j*fNk+k;
87}
int G4int
Definition: G4Types.hh:85
const G4VTouchable * GetTouchable() const
G4StepPoint * GetPreStepPoint() const
virtual G4int GetReplicaNumber(G4int depth=0) const
Definition: G4VTouchable.cc:55

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