57 nSegment[0] = nSegment[1] = nSegment[2] = 0;
67 nSegment[0] = nSegment[1] = nSegment[2] = 0;
72 cylinderSize = cylSize;
78 nSegment[0] = nSeg[0];
79 nSegment[1] = nSeg[1];
80 nSegment[2] = nSeg[2];
85 G4double dr = (cylinderSize[1] - cylinderSize[0]) / nSegment[2];
86 G4double r0 = cylinderSize[0] + dr * (idx);
87 G4double r1 = cylinderSize[0] + dr * (idx + 1);
88 G4double dRArea = (r1 * r1 - r0 * r0) * pi;
91 G4double fullz = cylinderSize[2] / nSegment[0] * 2.;
92 G4double phiRatio = (fAngle[1] / (CLHEP::twopi*rad)) / nSegment[1];
93 G4double v = dRArea * fullz * phiRatio;
97 G4cout <<
" r0= " << r0 / cm <<
" r1= " << r1 / cm
98 <<
" fullz=" << fullz / cm <<
G4endl;
99 G4cout <<
" idx= " << idx <<
" v(cm3)= " << v / cm3 <<
G4endl;
G4GLOB_DLL std::ostream G4cout
void SetNumberOfSegments(G4int nSeg[3])
G4PSCellFluxForCylinder3D(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 SetCylinderSize(G4ThreeVector cylSize, G4double startAng, G4double angSpan)