#include <G4ParameterisationBox.hh>
|
| G4ParameterisationBoxY (EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType) |
|
| ~G4ParameterisationBoxY () 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 113 of file G4ParameterisationBox.hh.
◆ G4ParameterisationBoxY()
Definition at line 167 of file G4ParameterisationBox.cc.
172{
175
178 {
180 }
182 {
184 }
185
186#ifdef G4DIVDEBUG
188 {
189 G4cout <<
" G4ParameterisationBoxY - no divisions " <<
fnDiv <<
" = "
190 << nDiv <<
". Offset " <<
foffset <<
" = " << offset
192 }
193#endif
194}
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)
◆ ~G4ParameterisationBoxY()
G4ParameterisationBoxY::~G4ParameterisationBoxY |
( |
| ) |
|
|
overridedefault |
◆ ComputeDimensions()
Reimplemented from G4VPVParameterisation.
Definition at line 242 of file G4ParameterisationBox.cc.
245{
247
248 G4double pDx = msol->GetXHalfLength();
250 G4double pDz = msol->GetZHalfLength();
251
255
256#ifdef G4DIVDEBUG
258 {
259 G4cout <<
" G4ParameterisationBoxY::ComputeDimensions()" <<
G4endl
260 <<
" pDx: " << pDz <<
G4endl;
262 }
263#endif
264}
void SetZHalfLength(G4double dz)
void SetYHalfLength(G4double dy)
void SetXHalfLength(G4double dx)
◆ ComputeTransformation()
Implements G4VDivisionParameterisation.
Definition at line 208 of file G4ParameterisationBox.cc.
210{
212 G4double mdy = msol->GetYHalfLength();
213
214
218 {
219 origin.setY( posi );
220 }
221 else
222 {
223 std::ostringstream message;
224 message <<
"Only axes along Y are allowed ! Axis: " <<
faxis;
225 G4Exception(
"G4ParameterisationBoxY::ComputeTransformation()",
227 }
228#ifdef G4DIVDEBUG
230 {
231 G4cout << std::setprecision(8) <<
" G4ParameterisationBoxY: "
233 <<
" Position " << origin <<
" Axis " <<
faxis <<
G4endl;
234 }
235#endif
236
238}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void SetTranslation(const G4ThreeVector &v)
◆ GetMaxParameter()
G4double G4ParameterisationBoxY::GetMaxParameter |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: