#include <G4ParameterisationBox.hh>
|
| G4ParameterisationBoxZ (EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType) |
|
| ~G4ParameterisationBoxZ () override |
|
G4double | GetMaxParameter () const override |
|
void | ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const override |
|
void | ComputeDimensions (G4Box &box, const G4int copyNo, const G4VPhysicalVolume *physVol) const override |
|
| G4VParameterisationBox (EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType) |
|
| ~G4VParameterisationBox () override |
|
| G4VDivisionParameterisation (EAxis axis, G4int nDiv, G4double width, G4double offset, DivisionType divType, G4VSolid *motherSolid=nullptr) |
|
| ~G4VDivisionParameterisation () override |
|
G4VSolid * | ComputeSolid (const G4int, G4VPhysicalVolume *) override |
|
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 ()=default |
|
virtual | ~G4VPVParameterisation ()=default |
|
virtual G4Material * | ComputeMaterial (const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=nullptr) |
|
virtual G4bool | IsNested () const |
|
virtual G4VVolumeMaterialScanner * | GetMaterialScanner () |
|
Definition at line 158 of file G4ParameterisationBox.hh.
◆ G4ParameterisationBoxZ()
Definition at line 267 of file G4ParameterisationBox.cc.
272{
275
278 {
280 }
282 {
284 }
285#ifdef G4DIVDEBUG
287 {
288 G4cout <<
" G4ParameterisationBoxZ - no divisions " <<
fnDiv <<
" = "
289 << nDiv <<
". Offset " <<
foffset <<
" = " << offset
291 }
292#endif
293}
G4GLOB_DLL std::ostream G4cout
virtual void CheckParametersValidity()
void SetType(const G4String &type)
G4double CalculateWidth(G4double motherDim, G4int nDiv, G4double offset) const
G4int CalculateNDiv(G4double motherDim, G4double width, G4double offset) const
static const G4int verbose
G4VParameterisationBox(EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType)
◆ ~G4ParameterisationBoxZ()
G4ParameterisationBoxZ::~G4ParameterisationBoxZ |
( |
| ) |
|
|
overridedefault |
◆ ComputeDimensions()
Reimplemented from G4VPVParameterisation.
Definition at line 342 of file G4ParameterisationBox.cc.
345{
347
348 G4double pDx = msol->GetXHalfLength();
349 G4double pDy = msol->GetYHalfLength();
351
355
356#ifdef G4DIVDEBUG
358 {
359 G4cout <<
" G4ParameterisationBoxZ::ComputeDimensions()" <<
G4endl
360 <<
" pDx: " << pDz <<
G4endl;
362 }
363#endif
364}
void SetZHalfLength(G4double dz)
void SetYHalfLength(G4double dy)
void SetXHalfLength(G4double dx)
◆ ComputeTransformation()
Implements G4VDivisionParameterisation.
Definition at line 307 of file G4ParameterisationBox.cc.
309{
311 G4double mdz = msol->GetZHalfLength();
312
313
316
318 {
319 origin.setZ( posi );
320 }
321 else
322 {
323 std::ostringstream message;
324 message <<
"Only axes along Z are allowed ! Axis: " <<
faxis;
325 G4Exception(
"G4ParameterisationBoxZ::ComputeTransformation()",
327 }
328#ifdef G4DIVDEBUG
330 {
331 G4cout << std::setprecision(8) <<
" G4ParameterisationBoxZ: "
333 <<
" Position " << origin <<
" Axis " <<
faxis <<
G4endl;
334 }
335#endif
336
338}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void SetTranslation(const G4ThreeVector &v)
◆ GetMaxParameter()
G4double G4ParameterisationBoxZ::GetMaxParameter |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: