48 #ifdef G4MULTITHREADED
50 message <<
"Divisions for G4Polycone currently NOT supported in MT-mode."
52 <<
"Sorry! Solid: " << msolid->
GetName();
53 G4Exception(
"G4VParameterisationPolycone::G4VParameterisationPolycone()",
75 for (
G4int i=0; i<nofZplanes; ++i) { zValuesRefl[i] = - zValues[i]; }
81 nofZplanes, zValuesRefl, rminValues, rmaxValues);
83 delete [] zValuesRefl;
105 SetType(
"DivisionPolyconeRho" );
113 - origparamMother->
Rmin[0], width, offset );
118 - origparamMother->
Rmin[0], nDiv, offset );
124 G4cout <<
" G4ParameterisationPolyconeRho - # divisions " <<
fnDiv
125 <<
" = " << nDiv <<
G4endl
148 <<
"Division along R will be done with a width "
149 <<
"different for each solid section." <<
G4endl
150 <<
"WIDTH will not be used !";
151 G4Exception(
"G4VParameterisationPolycone::CheckParametersValidity()",
158 <<
"Division along R will be done with a width "
159 <<
"different for each solid section." <<
G4endl
160 <<
"OFFSET will not be used !";
161 G4Exception(
"G4VParameterisationPolycone::CheckParametersValidity()",
171 return original_pars->
Rmax[0] - original_pars->
Rmin[0];
201 G4cout << std::setprecision(8) <<
" G4ParameterisationPolyconeRho "
203 <<
" Position: " << origin/
mm
223 for(
G4int ii = 0; ii < nZplanes; ++ii )
228 origparam.
Rmax[ii] = origparamMother->
Rmin[ii]+
foffset+width*(copyNo+1);
237 G4cout <<
"G4ParameterisationPolyconeRho::ComputeDimensions()" <<
G4endl
238 <<
"-- Parametrised pcone copy-number: " << copyNo <<
G4endl;
252 SetType(
"DivisionPolyconePhi" );
269 G4cout <<
" G4ParameterisationPolyconePhi - # divisions " <<
fnDiv
270 <<
" = " << nDiv <<
G4endl
305 G4cout <<
" G4ParameterisationPolyconePhi - position: " << posi/
deg
307 <<
" copyNo: " << copyNo <<
" - foffset: " <<
foffset/
deg
308 <<
" - fwidth: " << fwidth/
deg <<
G4endl;
317 G4cout << std::setprecision(8) <<
" G4ParameterisationPolyconePhi "
319 <<
" Position: " << origin <<
" - Width: " << fwidth
344 G4cout <<
"G4ParameterisationPolyconePhi::ComputeDimensions():" <<
G4endl;
356 fOrigParamMother(((
G4Polycone*)fmotherSolid)->GetOriginalParameters())
360 SetType(
"DivisionPolyconeZ" );
378 G4cout <<
" G4ParameterisationPolyconeZ - # divisions " <<
fnDiv <<
" = "
401 return (r1-r2)/(z1-
z2)*z + ( r1 - (r1-r2)/(z1-
z2)*z1 ) ;
446 std::ostringstream
error;
447 error <<
"Configuration not supported." <<
G4endl
448 <<
"Division along Z will be done by splitting in the defined"
450 <<
"Z planes, i.e, the number of division would be: "
452 <<
", instead of: " <<
fnDiv <<
" !";
453 G4Exception(
"G4ParameterisationPolyconeZ::CheckParametersValidity()",
466 G4int isegstart = -1;
479 while ( isegend < 0 && counter < fOrigParamMother->Num_z_planes-1 )
483 zstart < fOrigParamMother->Z_values[counter+1] )
489 zend <= fOrigParamMother->Z_values[counter+1] )
506 while ( isegend < 0 && counter < fOrigParamMother->Num_z_planes-1 )
509 if ( zstart <= fOrigParamMother->Z_values[counter] &&
515 if ( zend < fOrigParamMother->Z_values[counter] &&
525 if ( isegstart != isegend )
528 message <<
"Condiguration not supported." <<
G4endl
529 <<
"Division with user defined width." <<
G4endl
531 <<
"Divided region is not between two z planes.";
532 G4Exception(
"G4ParameterisationPolyconeZ::CheckParametersValidity()",
573 G4cout <<
" G4ParameterisationPolyconeZ - position: " << posi <<
G4endl
574 <<
" copyNo: " << copyNo <<
" - foffset: " <<
foffset/
deg
584 G4cout << std::setprecision(8) <<
" G4ParameterisationPolyconeZ "
670 if ( origparam.
Rmin[0] < 0.0 ) origparam.
Rmin[0] = 0.0;
671 if ( origparam.
Rmin[nz-1] < 0.0 ) origparam.
Rmin[1] = 0.0;
680 G4cout <<
"G4ParameterisationPolyconeZ::ComputeDimensions()" <<
G4endl
681 <<
"-- Parametrised pcone copy-number: " << copyNo <<
G4endl;