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

#include <G4PSMinKinEAtGeneration3D.hh>

+ Inheritance diagram for G4PSMinKinEAtGeneration3D:

Public Member Functions

 G4PSMinKinEAtGeneration3D (G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
 
 G4PSMinKinEAtGeneration3D (G4String name, const G4String &unit, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
 
 ~G4PSMinKinEAtGeneration3D () override=default
 
- Public Member Functions inherited from G4PSMinKinEAtGeneration
 G4PSMinKinEAtGeneration (G4String name, G4int depth=0)
 
 G4PSMinKinEAtGeneration (G4String name, const G4String &unit, G4int depth=0)
 
 ~G4PSMinKinEAtGeneration () override=default
 
void Initialize (G4HCofThisEvent *) override
 
void clear () override
 
void PrintAll () override
 
virtual void SetUnit (const G4String &unit)
 
- Public Member Functions inherited from G4VPrimitivePlotter
 ~G4VPrimitivePlotter () override=default
 
void Plot (G4int copyNo, G4int histID)
 
G4int GetNumberOfHist () const
 
 G4VPrimitiveScorer (G4String name, G4int depth=0)
 
- Public Member Functions inherited from G4VPrimitiveScorer
 G4VPrimitiveScorer (G4String name, G4int depth=0)
 
virtual ~G4VPrimitiveScorer ()=default
 
G4int GetCollectionID (G4int)
 
virtual void EndOfEvent (G4HCofThisEvent *)
 
virtual void DrawAll ()
 
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

G4int GetIndex (G4Step *) override
 
- Protected Member Functions inherited from G4PSMinKinEAtGeneration
G4bool ProcessHits (G4Step *, G4TouchableHistory *) override
 
- Protected Member Functions inherited from G4VPrimitiveScorer
G4VSolidComputeSolid (G4Step *aStep, G4int replicaIdx)
 
G4VSolidComputeCurrentSolid (G4Step *aStep)
 
void CheckAndSetUnit (const G4String &unit, const G4String &category)
 

Additional Inherited Members

- Protected Attributes inherited from G4VPrimitivePlotter
std::map< G4int, G4inthitIDMap
 
- Protected Attributes inherited from G4VPrimitiveScorer
G4String primitiveName
 
G4MultiFunctionalDetectordetector {nullptr}
 
G4VSDFilterfilter {nullptr}
 
G4int verboseLevel {0}
 
G4int indexDepth
 
G4String unitName {"NoUnit"}
 
G4double unitValue {1.0}
 
G4int fNi {0}
 
G4int fNj {0}
 
G4int fNk {0}
 

Detailed Description

Definition at line 45 of file G4PSMinKinEAtGeneration3D.hh.

Constructor & Destructor Documentation

◆ G4PSMinKinEAtGeneration3D() [1/2]

G4PSMinKinEAtGeneration3D::G4PSMinKinEAtGeneration3D ( 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 G4PSMinKinEAtGeneration3D.cc.

47 , fDepthi(depi)
48 , fDepthj(depj)
49 , fDepthk(depk)
50{
51 SetNijk(ni, nj, nk);
52}
G4PSMinKinEAtGeneration(G4String name, G4int depth=0)
void SetNijk(G4int i, G4int j, G4int k)

◆ G4PSMinKinEAtGeneration3D() [2/2]

G4PSMinKinEAtGeneration3D::G4PSMinKinEAtGeneration3D ( 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 54 of file G4PSMinKinEAtGeneration3D.cc.

59 : G4PSMinKinEAtGeneration3D(name, ni, nj, nk, depi, depj, depk)
60{
61 SetUnit(unit);
62}
G4PSMinKinEAtGeneration3D(G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
virtual void SetUnit(const G4String &unit)

◆ ~G4PSMinKinEAtGeneration3D()

G4PSMinKinEAtGeneration3D::~G4PSMinKinEAtGeneration3D ( )
overridedefault

Member Function Documentation

◆ GetIndex()

G4int G4PSMinKinEAtGeneration3D::GetIndex ( G4Step * aStep)
overrideprotectedvirtual

Reimplemented from G4VPrimitiveScorer.

Definition at line 64 of file G4PSMinKinEAtGeneration3D.cc.

65{
66 const G4VTouchable* touchable = aStep->GetPreStepPoint()->GetTouchable();
67 G4int i = touchable->GetReplicaNumber(fDepthi);
68 G4int j = touchable->GetReplicaNumber(fDepthj);
69 G4int k = touchable->GetReplicaNumber(fDepthk);
70
71 return i * fNj * fNk + j * fNk + k;
72}
int G4int
Definition G4Types.hh:85
const G4VTouchable * GetTouchable() const
G4StepPoint * GetPreStepPoint() const
virtual G4int GetReplicaNumber(G4int depth=0) const

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