49 nSegment[0] = nSegment[1] = nSegment[2] = 0;
59 nSegment[0] = nSegment[1] = nSegment[2] = 0;
64 cylinderSize = cylSize;
70 nSegment[0] = nSeg[0];
71 nSegment[1] = nSeg[1];
72 nSegment[2] = nSeg[2];
76 G4double dr = (cylinderSize[1] - cylinderSize[0]) / nSegment[2];
77 G4double r0 = cylinderSize[0] + dr * (idx);
78 G4double r1 = cylinderSize[0] + dr * (idx + 1);
79 G4double dRArea = (r1 * r1 - r0 * r0) * pi;
82 G4double fullz = cylinderSize[2] / nSegment[0] * 2.;
83 G4double phiRatio = (fAngle[1] / (CLHEP::twopi*rad)) / nSegment[1];
84 G4double v = dRArea * fullz * phiRatio;
88 G4cout <<
" r0= " << r0 / cm <<
" r1= " << r1 / cm
89 <<
" fullz=" << fullz / cm <<
G4endl;
90 G4cout <<
" idx= " << idx <<
" v(cm3)= " << v / cm3 <<
G4endl;
G4GLOB_DLL std::ostream G4cout
G4PSDoseDepositForCylinder3D(G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
G4double ComputeVolume(G4Step *, G4int idx) override
void SetNumberOfSegments(G4int nSeg[3])
void SetCylinderSize(G4ThreeVector cylSize, G4double startAng, G4double angSpan)