52 #ifdef G4MULTITHREADED
53 message <<
"Divisions for G4Polyhedra currently NOT supported in MT-mode."
55 <<
"Sorry! Solid: " << msolid->
GetName();
56 G4Exception(
"G4VParameterisationPolyhedra::G4VParameterisationPolyhedra()",
63 message <<
"Generic construct for G4Polyhedra NOT supported." <<
G4endl
64 <<
"Sorry! Solid: " << msol->
GetName();
65 G4Exception(
"G4VParameterisationPolyhedra::G4VParameterisationPolyhedra()",
89 for (
G4int i=0; i<nofZplanes; ++i)
93 zValuesRefl[i] = - zValues[i];
101 nofZplanes, zValuesRefl, rminValues2, rmaxValues2);
103 delete [] rminValues2;
104 delete [] rmaxValues2;
105 delete [] zValuesRefl;
127 if ( (phiTotal <=0) || (phiTotal >
131 return std::cos(0.5*phiTotal/nofSides);
143 SetType(
"DivisionPolyhedraRho" );
151 - original_pars->
Rmin[0], width, offset );
156 - original_pars->
Rmin[0], nDiv, offset );
162 G4cout <<
" G4ParameterisationPolyhedraRho - # divisions " <<
fnDiv
163 <<
" = " << nDiv <<
G4endl
186 <<
"Division along R will be done with a width "
187 <<
"different for each solid section." <<
G4endl
188 <<
"WIDTH will not be used !";
189 G4Exception(
"G4ParameterisationPolyhedraRho::CheckParametersValidity()",
196 <<
"Division along R will be done with a width "
197 <<
"different for each solid section." <<
G4endl
198 <<
"OFFSET will not be used !";
199 G4Exception(
"G4ParameterisationPolyhedraRho::CheckParametersValidity()",
209 return original_pars->
Rmax[0] - original_pars->
Rmin[0];
239 G4cout << std::setprecision(8) <<
" G4ParameterisationPolyhedraRho "
241 <<
" Position: " << origin
261 for(
G4int ii = 0; ii < nZplanes; ++ii )
266 origparam.
Rmax[ii] = origparamMother->
Rmin[ii]+
foffset+width*(copyNo+1);
275 G4cout <<
"G4ParameterisationPolyhedraRho::ComputeDimensions()" <<
G4endl
276 <<
"-- Parametrised phedra copy-number: " << copyNo <<
G4endl;
290 SetType(
"DivisionPolyhedraPhi" );
305 G4cout <<
" G4ParameterisationPolyhedraPhi - # divisions " <<
fnDiv
306 <<
" = " << nDiv <<
G4endl
336 <<
" Division along PHI will be done splitting "
337 <<
"in the defined numSide." <<
G4endl
338 <<
"WIDTH will not be used !";
339 G4Exception(
"G4ParameterisationPolyhedraPhi::CheckParametersValidity()",
346 <<
"Division along PHI will be done splitting "
347 <<
"in the defined numSide." <<
G4endl
348 <<
"OFFSET will not be used !";
349 G4Exception(
"G4ParameterisationPolyhedraPhi::CheckParametersValidity()",
358 message <<
"Configuration not supported." <<
G4endl
359 <<
"Division along PHI will be done splitting in the defined"
361 <<
"numSide, i.e, the number of division would be :"
362 << origparamMother->
numSide <<
" instead of " <<
fnDiv <<
" !";
363 G4Exception(
"G4ParameterisationPolyhedraPhi::CheckParametersValidity()",
384 G4cout <<
" G4ParameterisationPolyhedraPhi - position: " << posi/
deg
386 <<
" copyNo: " << copyNo
387 <<
" - fwidth: " << fwidth/
deg <<
G4endl;
396 G4cout << std::setprecision(8) <<
" G4ParameterisationPolyhedraPhi "
398 <<
" Position: " << origin <<
" - Width: " << fwidth
425 G4cout <<
"G4ParameterisationPolyhedraPhi::ComputeDimensions():" <<
G4endl;
437 fOrigParamMother(((
G4Polyhedra*)fmotherSolid)->GetOriginalParameters())
440 SetType(
"DivisionPolyhedraZ" );
458 G4cout <<
" G4ParameterisationPolyhedraZ - # divisions " <<
fnDiv <<
" = "
481 return (r1-r2)/(z1-
z2)*z + ( r1 - (r1-r2)/(z1-
z2)*z1 ) ;
527 message <<
"Configuration not supported." <<
G4endl
528 <<
"Division along Z will be done splitting in the defined"
530 <<
"Z planes, i.e, the number of division would be :"
533 G4Exception(
"G4ParameterisationPolyhedraZ::CheckParametersValidity()",
546 G4int isegstart = -1;
558 while ( isegend < 0 && counter < fOrigParamMother->Num_z_planes-1 )
562 zstart < fOrigParamMother->Z_values[counter+1] )
568 zend <= fOrigParamMother->Z_values[counter+1] )
584 while ( isegend < 0 && counter < fOrigParamMother->Num_z_planes-1 )
587 if ( zstart <= fOrigParamMother->Z_values[counter] &&
593 if ( zend < fOrigParamMother->Z_values[counter] &&
602 if ( isegstart != isegend )
605 message <<
"Configuration not supported." <<
G4endl
606 <<
"Division with user defined width." <<
G4endl
608 <<
"Divided region is not between two Z planes.";
609 G4Exception(
"G4ParameterisationPolyhedraZ::CheckParametersValidity()",
650 G4cout <<
" G4ParameterisationPolyhedraZ - position: " << posi <<
G4endl
651 <<
" copyNo: " << copyNo <<
" - foffset: " <<
foffset/
deg
661 G4cout << std::setprecision(8) <<
" G4ParameterisationPolyhedraZ "
749 if ( origparam.
Rmin[0] < 0.0 ) origparam.
Rmin[0] = 0.0;
750 if ( origparam.
Rmin[nz-1] < 0.0 ) origparam.
Rmin[1] = 0.0;
759 G4cout <<
"G4ParameterisationPolyhedraZ::ComputeDimensions()" <<
G4endl
760 <<
"-- Parametrised phedra copy-number: " << copyNo <<
G4endl;