#include <G4ParameterisationPara.hh>
|
| G4ParameterisationParaY (EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType) |
|
| ~G4ParameterisationParaY () override |
|
G4double | GetMaxParameter () const override |
|
void | ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const override |
|
void | ComputeDimensions (G4Para ¶, const G4int copyNo, const G4VPhysicalVolume *pv) const override |
|
| G4VParameterisationPara (EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType) |
|
| ~G4VParameterisationPara () 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 115 of file G4ParameterisationPara.hh.
◆ G4ParameterisationParaY()
Definition at line 180 of file G4ParameterisationPara.cc.
185{
188
191 {
193 }
195 {
197 }
198
199#ifdef G4DIVDEBUG
201 {
202 G4cout <<
" G4ParameterisationParaY - # divisions " <<
fnDiv
203 <<
" = " << nDiv <<
G4endl
206 }
207#endif
208}
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
G4VParameterisationPara(EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType)
◆ ~G4ParameterisationParaY()
G4ParameterisationParaY::~G4ParameterisationParaY |
( |
| ) |
|
|
overridedefault |
◆ ComputeDimensions()
Reimplemented from G4VPVParameterisation.
Definition at line 250 of file G4ParameterisationPara.cc.
253{
254
256
257
258 G4double pDx = msol->GetXHalfLength();
260 G4double pDz = msol->GetZHalfLength();
261 G4double pAlpha = std::atan(msol->GetTanAlpha());
262 G4double pTheta = msol->GetSymAxis().theta();
263 G4double pPhi = msol->GetSymAxis().phi();
264
266
267#ifdef G4DIVDEBUG
269 {
270 G4cout <<
" G4ParameterisationParaY::ComputeDimensions()"
271 <<
" - Mother PARA " <<
G4endl;
272 msol->DumpInfo();
275 }
276#endif
277}
void SetAllParameters(G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
◆ ComputeTransformation()
Implements G4VDivisionParameterisation.
Definition at line 222 of file G4ParameterisationPara.cc.
224{
226 G4double mdy = msol->GetYHalfLength( );
227
228
231 origin.setY( posiY );
232 G4double posiX = posiY * msol->GetTanAlpha();
233 origin.setX( posiX );
234
235#ifdef G4DIVDEBUG
237 {
238 G4cout << std::setprecision(8) <<
" G4ParameterisationParaY "
240 <<
" Position: " << origin <<
" - Axis: " <<
faxis <<
G4endl;
241 }
242#endif
243
244
246}
void SetTranslation(const G4ThreeVector &v)
◆ GetMaxParameter()
G4double G4ParameterisationParaY::GetMaxParameter |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: