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

#include <G4PSCellFluxForCylinder3D.hh>

Inheritance diagram for G4PSCellFluxForCylinder3D:
Collaboration diagram for G4PSCellFluxForCylinder3D:

Public Member Functions

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

Constructor & Destructor Documentation

G4PSCellFluxForCylinder3D::G4PSCellFluxForCylinder3D ( G4String  name,
G4int  ni = 1,
G4int  nj = 1,
G4int  nk = 1,
G4int  depi = 2,
G4int  depj = 1,
G4int  depk = 0 
)

Definition at line 53 of file G4PSCellFluxForCylinder3D.cc.

56  :G4PSCellFlux3D(name,ni,nj,nk,depi,depj,depk)
57 {
58  nSegment[0] = nSegment[1] = nSegment[2] = 0;
59 }
G4PSCellFlux3D(G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
G4PSCellFluxForCylinder3D::G4PSCellFluxForCylinder3D ( 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 61 of file G4PSCellFluxForCylinder3D.cc.

64  :G4PSCellFlux3D(name,unit,ni,nj,nk,depi,depj,depk)
65 {
66  nSegment[0] = nSegment[1] = nSegment[2] = 0;
67 }
G4PSCellFlux3D(G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
G4PSCellFluxForCylinder3D::~G4PSCellFluxForCylinder3D ( )
virtual

Definition at line 69 of file G4PSCellFluxForCylinder3D.cc.

70 {;}

Member Function Documentation

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

Reimplemented from G4PSCellFlux.

Definition at line 83 of file G4PSCellFluxForCylinder3D.cc.

83  {
84  G4double r0 = (cylinderSize[2]/nSegment[2])*(idx);
85  G4double r1 = (cylinderSize[2]/nSegment[2])*(idx+1);
86  G4double dRArea = (r1*r1-r0*r0)*pi;
87 
88  // cylinderSize is given in Half Size
89  G4double fullz = cylinderSize[0]/nSegment[0]*2.;
90  G4double phiRatio = 1./nSegment[1];
91  G4double v = dRArea*fullz*phiRatio;
92 
93  if ( verboseLevel > 9 ){
94  G4cout << " r0= " <<r0/cm <<" r1= " << r1/cm<<" fullz="<<fullz/cm<<G4endl;
95  G4cout << " idx= " <<idx <<" v(cm3)= " << v/cm3<<G4endl;
96  }
97 
98  return v;
99 }
G4GLOB_DLL std::ostream G4cout
static constexpr double cm
Definition: G4SIunits.hh:119
static constexpr double cm3
Definition: G4SIunits.hh:121
tuple v
Definition: test.py:18
#define G4endl
Definition: G4ios.hh:61
static constexpr double pi
Definition: G4SIunits.hh:75
double G4double
Definition: G4Types.hh:76
void G4PSCellFluxForCylinder3D::SetCylinderSize ( G4double  dr,
G4double  dz 
)

Definition at line 72 of file G4PSCellFluxForCylinder3D.cc.

72  {
73  cylinderSize.setX(dz); //Z Phi R
74  cylinderSize.setY(twopi); //Z Phi R
75  cylinderSize.setZ(dr); //Z Phi R
76 }
void setY(double)
void setZ(double)
void setX(double)
static constexpr double twopi
Definition: G4SIunits.hh:76

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 77 of file G4PSCellFluxForCylinder3D.cc.

77  {
78  nSegment[0] = nSeg[0]; // Z
79  nSegment[1] = nSeg[1]; // Phi
80  nSegment[2] = nSeg[2]; // R
81 }

Here is the caller graph for this function:


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