#include <G4ParameterisationBox.hh>
|
| G4ParameterisationBoxX (EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType) |
|
| ~G4ParameterisationBoxX () 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 69 of file G4ParameterisationBox.hh.
◆ G4ParameterisationBoxX()
Definition at line 66 of file G4ParameterisationBox.cc.
71{
74
77 {
79 }
81 {
83 }
84#ifdef G4DIVDEBUG
86 {
87 G4cout <<
" G4ParameterisationBoxX - no divisions "
91 }
92#endif
93}
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)
◆ ~G4ParameterisationBoxX()
G4ParameterisationBoxX::~G4ParameterisationBoxX |
( |
| ) |
|
|
overridedefault |
◆ ComputeDimensions()
Reimplemented from G4VPVParameterisation.
Definition at line 142 of file G4ParameterisationBox.cc.
145{
147
149 G4double pDy = msol->GetYHalfLength();
150 G4double pDz = msol->GetZHalfLength();
151
155
156#ifdef G4DIVDEBUG
158 {
159 G4cout <<
" G4ParameterisationBoxX::ComputeDimensions()" <<
G4endl
160 <<
" pDx: " << pDz <<
G4endl;
162 }
163#endif
164}
void SetZHalfLength(G4double dz)
void SetYHalfLength(G4double dy)
void SetXHalfLength(G4double dx)
◆ ComputeTransformation()
Implements G4VDivisionParameterisation.
Definition at line 107 of file G4ParameterisationBox.cc.
109{
111 G4double mdx = msol->GetXHalfLength( );
112
113
116
118 {
119 origin.setX( posi );
120 }
121 else
122 {
123 std::ostringstream message;
124 message <<
"Only axes along X are allowed ! Axis: " <<
faxis;
125 G4Exception(
"G4ParameterisationBoxX::ComputeTransformation()",
127 }
128#ifdef G4DIVDEBUG
130 {
131 G4cout << std::setprecision(8) <<
" G4ParameterisationBoxX: "
133 <<
" Position " << origin <<
" Axis " <<
faxis <<
G4endl;
134 }
135#endif
136
138}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void SetTranslation(const G4ThreeVector &v)
◆ GetMaxParameter()
G4double G4ParameterisationBoxX::GetMaxParameter |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: