50 : faxis(axis), fnDiv( nDiv), fwidth(step), foffset(offset),
51 fDivisionType(divType), fmotherSolid( motherSolid ), fReflectedSolid(false),
52 fDeleteSolid(false), theVoluFirstCopyNo(1), fhgap(0.)
57 G4cout <<
" G4VDivisionParameterisation no divisions " <<
fnDiv
105 G4cout <<
" G4VDivisionParameterisation::CalculateNDiv: "
106 << ( motherDim - offset ) / width
107 <<
" Motherdim: " << motherDim <<
", Offset: " << offset
108 <<
", Width: " << width <<
G4endl;
111 return G4int( ( motherDim - offset ) / width );
120 G4cout <<
" G4VDivisionParameterisation::CalculateWidth: "
121 << ( motherDim - offset ) / nDiv
122 <<
", Motherdim: " << motherDim <<
", Offset: " << offset
123 <<
", Number of divisions: " << nDiv <<
G4endl;
126 return ( motherDim - offset ) / nDiv;
142 std::ostringstream message;
143 message <<
"Configuration not supported." <<
G4endl
145 <<
" has too big offset = " <<
G4endl
146 <<
" " <<
foffset <<
" > " << maxPar <<
" !";
147 G4Exception(
"G4VDivisionParameterisation::CheckOffset()",
158 std::ostringstream message;
159 message <<
"Configuration not supported." <<
G4endl
161 <<
" has too big offset + width*nDiv = " <<
G4endl
166 G4Exception(
"G4VDivisionParameterisation::CheckNDivAndWidth()",
CLHEP::HepRotation G4RotationMatrix
G4DLLIMPORT std::ostream G4cout
HepRotation & rotateZ(double delta)
G4double GetSurfaceTolerance() const
static G4GeometryTolerance * GetInstance()
void ChangeRotMatrix(G4VPhysicalVolume *physVol, G4double rotZ=0.) const
virtual void CheckParametersValidity()
virtual ~G4VDivisionParameterisation()
virtual G4double GetMaxParameter() const =0
G4VDivisionParameterisation(EAxis axis, G4int nDiv, G4double width, G4double offset, DivisionType divType, G4VSolid *motherSolid=0)
G4double CalculateWidth(G4double motherDim, G4int nDiv, G4double offset) const
G4int CalculateNDiv(G4double motherDim, G4double width, G4double offset) const
void CheckNDivAndWidth(G4double maxPar)
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
DivisionType fDivisionType
void CheckOffset(G4double maxPar)
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
const G4RotationMatrix * GetRotation() const
void SetRotation(G4RotationMatrix *)
virtual G4GeometryType GetEntityType() const =0
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)