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

#include <G4PSDoseDepositForCylinder3D.hh>

+ Inheritance diagram for G4PSDoseDepositForCylinder3D:

Public Member Functions

 G4PSDoseDepositForCylinder3D (G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
 
 G4PSDoseDepositForCylinder3D (G4String name, const G4String &unit, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
 
virtual ~G4PSDoseDepositForCylinder3D ()
 
void SetCylinderSize (G4double dr, G4double dz)
 
void SetNumberOfSegments (G4int nSeg[3])
 
- Public Member Functions inherited from G4PSDoseDeposit3D
 G4PSDoseDeposit3D (G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
 
 G4PSDoseDeposit3D (G4String name, const G4String &unit, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
 
virtual ~G4PSDoseDeposit3D ()
 
- Public Member Functions inherited from G4PSDoseDeposit
 G4PSDoseDeposit (G4String name, G4int depth=0)
 
 G4PSDoseDeposit (G4String name, const G4String &unit, G4int depth=0)
 
virtual ~G4PSDoseDeposit ()
 
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 G4double ComputeVolume (G4Step *, G4int idx)
 
- Protected Member Functions inherited from G4PSDoseDeposit3D
virtual G4int GetIndex (G4Step *)
 
- Protected Member Functions inherited from G4PSDoseDeposit
virtual G4bool ProcessHits (G4Step *, G4TouchableHistory *)
 
virtual G4double ComputeVolume (G4Step *, G4int idx)
 
- 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 44 of file G4PSDoseDepositForCylinder3D.hh.

Constructor & Destructor Documentation

◆ G4PSDoseDepositForCylinder3D() [1/2]

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

45 :G4PSDoseDeposit3D(name,ni,nj,nk,di,dj,dk)
46{
47 nSegment[0] = nSegment[1] = nSegment[2] = 0;
48}

◆ G4PSDoseDepositForCylinder3D() [2/2]

G4PSDoseDepositForCylinder3D::G4PSDoseDepositForCylinder3D ( 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 50 of file G4PSDoseDepositForCylinder3D.cc.

54 :G4PSDoseDeposit3D(name,unit,ni,nj,nk,di,dj,dk)
55{
56 nSegment[0] = nSegment[1] = nSegment[2] = 0;
57}

◆ ~G4PSDoseDepositForCylinder3D()

G4PSDoseDepositForCylinder3D::~G4PSDoseDepositForCylinder3D ( )
virtual

Definition at line 59 of file G4PSDoseDepositForCylinder3D.cc.

60{;}

Member Function Documentation

◆ ComputeVolume()

G4double G4PSDoseDepositForCylinder3D::ComputeVolume ( G4Step ,
G4int  idx 
)
protectedvirtual

Reimplemented from G4PSDoseDeposit.

Definition at line 72 of file G4PSDoseDepositForCylinder3D.cc.

72 {
73 G4double r0 = (cylinderSize[2]/nSegment[2])*(idx);
74 G4double r1 = (cylinderSize[2]/nSegment[2])*(idx+1);
75 G4double dRArea = (r1*r1-r0*r0)*pi;
76
77 // cylinderSize is given in Half Size
78 G4double fullz = cylinderSize[0]/nSegment[0]*2.;
79 G4double phiRatio = 1./nSegment[1];
80 G4double v = dRArea*fullz*phiRatio;
81
82 return v;
83}
double G4double
Definition: G4Types.hh:83

◆ SetCylinderSize()

void G4PSDoseDepositForCylinder3D::SetCylinderSize ( G4double  dr,
G4double  dz 
)

Definition at line 62 of file G4PSDoseDepositForCylinder3D.cc.

62 {
63 cylinderSize.setX(dz); //Z Phi R
64 cylinderSize.setY(twopi); //Z Phi R
65 cylinderSize.setZ(dr); //Z Phi R
66}
void setY(double)
void setZ(double)
void setX(double)

Referenced by G4ScoreQuantityMessenger::SetNewValue().

◆ SetNumberOfSegments()

void G4PSDoseDepositForCylinder3D::SetNumberOfSegments ( G4int  nSeg[3])

Definition at line 67 of file G4PSDoseDepositForCylinder3D.cc.

67 {
68 nSegment[0] = nSeg[0]; // Z
69 nSegment[1] = nSeg[1]; // Phi
70 nSegment[2] = nSeg[2]; // R
71}

Referenced by G4ScoreQuantityMessenger::SetNewValue().


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