#include <G4ParameterisationPolycone.hh>
|
| G4ParameterisationPolyconeZ (EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *motherSolid, DivisionType divType) |
|
| ~G4ParameterisationPolyconeZ () |
|
void | CheckParametersValidity () |
|
G4double | GetMaxParameter () const |
|
void | ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const |
|
void | ComputeDimensions (G4Polycone &pcone, const G4int copyNo, const G4VPhysicalVolume *physVol) const |
|
| G4VParameterisationPolycone (EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType) |
|
virtual | ~G4VParameterisationPolycone () |
|
| G4VDivisionParameterisation (EAxis axis, G4int nDiv, G4double width, G4double offset, DivisionType divType, G4VSolid *motherSolid=0) |
|
virtual | ~G4VDivisionParameterisation () |
|
virtual G4VSolid * | ComputeSolid (const G4int, G4VPhysicalVolume *) |
|
const G4String & | GetType () const |
|
EAxis | GetAxis () const |
|
G4int | GetNoDiv () const |
|
G4double | GetWidth () const |
|
G4double | GetOffset () const |
|
G4VSolid * | GetMotherSolid () const |
|
void | SetType (const G4String &type) |
|
G4int | VolumeFirstCopyNo () const |
|
void | SetHalfGap (G4double hg) |
|
G4double | GetHalfGap () const |
|
| G4VPVParameterisation () |
|
virtual | ~G4VPVParameterisation () |
|
virtual G4Material * | ComputeMaterial (const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0) |
|
virtual G4bool | IsNested () const |
|
virtual G4VVolumeMaterialScanner * | GetMaterialScanner () |
|
Definition at line 352 of file G4ParameterisationPolycone.cc.
361 SetType(
"DivisionPolyconeZ" );
367 - fOrigParamMother->
Z_values[0] , width, offset );
373 - fOrigParamMother->
Z_values[0] , nDiv, offset );
379 G4cout <<
" G4ParameterisationPolyconeZ - # divisions " <<
fnDiv <<
" = "
static const G4int verbose
void SetType(const G4String &type)
G4GLOB_DLL std::ostream G4cout
void CheckParametersValidity()
G4VParameterisationPolycone(EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType)
G4int CalculateNDiv(G4double motherDim, G4double width, G4double offset) const
G4ParameterisationPolyconeZ::~G4ParameterisationPolyconeZ |
( |
| ) |
|
void G4ParameterisationPolyconeZ::CheckParametersValidity |
( |
| ) |
|
|
virtual |
Reimplemented from G4VDivisionParameterisation.
Definition at line 437 of file G4ParameterisationPolycone.cc.
444 std::ostringstream
error;
445 error <<
"Configuration not supported." <<
G4endl
446 <<
"Division along Z will be done by splitting in the defined"
448 <<
"Z planes, i.e, the number of division would be: "
450 <<
", instead of: " <<
fnDiv <<
" !";
451 G4Exception(
"G4ParameterisationPolyconeZ::CheckParametersValidity()",
462 G4int isegstart = -1;
473 while ( isegend < 0 && counter < fOrigParamMother->Num_z_planes-1 ) {
475 if ( zstart >= fOrigParamMother->
Z_values[counter] &&
476 zstart < fOrigParamMother->Z_values[counter+1] ) {
480 if ( zend > fOrigParamMother->
Z_values[counter] &&
481 zend <= fOrigParamMother->Z_values[counter+1] ) {
495 while ( isegend < 0 && counter < fOrigParamMother->Num_z_planes-1 ) {
497 if ( zstart <= fOrigParamMother->Z_values[counter] &&
498 zstart > fOrigParamMother->
Z_values[counter+1] ) {
502 if ( zend < fOrigParamMother->Z_values[counter] &&
503 zend >= fOrigParamMother->
Z_values[counter+1] ) {
511 if ( isegstart != isegend ) {
512 std::ostringstream message;
513 message <<
"Condiguration not supported." <<
G4endl
514 <<
"Division with user defined width." <<
G4endl
516 <<
"Divided region is not between two z planes.";
517 G4Exception(
"G4ParameterisationPolyconeZ::CheckParametersValidity()",
521 fNSegment = isegstart;
virtual void CheckParametersValidity()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static PROLOG_HANDLER error
DivisionType fDivisionType
Reimplemented from G4VPVParameterisation.
Definition at line 577 of file G4ParameterisationPolycone.cc.
596 + fOrigParamMother->
Z_values[copyNo+1])/2;
600 origparam.
Rmin[0] = fOrigParamMother->
Rmin[copyNo];
601 origparam.
Rmin[1] = fOrigParamMother->
Rmin[copyNo+1];
602 origparam.
Rmax[0] = fOrigParamMother->
Rmax[copyNo];
603 origparam.
Rmax[1] = fOrigParamMother->
Rmax[copyNo+1];
618 origparam.
Rmin[0] = GetRmin(zstart, fNSegment);
619 origparam.
Rmax[0] = GetRmax(zstart, fNSegment);
620 origparam.
Rmin[1] = GetRmin(zend, fNSegment);
621 origparam.
Rmax[1] = GetRmax(zend, fNSegment);
634 origparam.
Rmin[0] = GetRmin(zstart, fNSegment);
635 origparam.
Rmax[0] = GetRmax(zstart, fNSegment);
636 origparam.
Rmin[1] = GetRmin(zend, fNSegment);
637 origparam.
Rmax[1] = GetRmax(zend, fNSegment);
641 if ( origparam.
Rmin[0] < 0.0 ) origparam.
Rmin[0] = 0.0;
642 if ( origparam.
Rmin[nz-1] < 0.0 ) origparam.
Rmin[1] = 0.0;
651 G4cout <<
"G4ParameterisationPolyconeZ::ComputeDimensions()" <<
G4endl
652 <<
"-- Parametrised pcone copy-number: " << copyNo <<
G4endl;
static const G4int verbose
G4GLOB_DLL std::ostream G4cout
void SetOriginalParameters(G4PolyconeHistorical *pars)
DivisionType fDivisionType
Implements G4VDivisionParameterisation.
Definition at line 528 of file G4ParameterisationPolycone.cc.
533 = ( fOrigParamMother->
Z_values[copyNo]
534 + fOrigParamMother->
Z_values[copyNo+1])/2;
555 G4cout <<
" G4ParameterisationPolyconeZ - position: " << posi <<
G4endl
556 <<
" copyNo: " << copyNo <<
" - foffset: " <<
foffset/
deg
566 G4cout << std::setprecision(8) <<
" G4ParameterisationPolyconeZ "
568 <<
" Position: " << origin <<
" - Width: " <<
fwidth
static const G4int verbose
CLHEP::Hep3Vector G4ThreeVector
G4GLOB_DLL std::ostream G4cout
void ChangeRotMatrix(G4VPhysicalVolume *physVol, G4double rotZ=0.) const
void SetTranslation(const G4ThreeVector &v)
static constexpr double deg
DivisionType fDivisionType
G4double G4ParameterisationPolyconeZ::GetMaxParameter |
( |
| ) |
const |
|
virtual |
The documentation for this class was generated from the following files: