#include <G4tgbPlaceParamSquare.hh>
|
| G4tgbPlaceParamSquare (G4tgrPlaceParameterisation *) |
|
| ~G4tgbPlaceParamSquare () |
|
void | ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const |
|
| G4tgbPlaceParameterisation (G4tgrPlaceParameterisation *tgrParam) |
|
virtual | ~G4tgbPlaceParameterisation () |
|
void | CheckNExtraData (G4tgrPlaceParameterisation *tgrParam, G4int nWcheck, WLSIZEtype st, const G4String &methodName) |
|
G4int | GetNCopies () const |
|
EAxis | GetAxis () const |
|
| G4VPVParameterisation ()=default |
|
virtual | ~G4VPVParameterisation ()=default |
|
virtual G4VSolid * | ComputeSolid (const G4int, G4VPhysicalVolume *) |
|
virtual G4Material * | ComputeMaterial (const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=nullptr) |
|
virtual G4bool | IsNested () const |
|
virtual G4VVolumeMaterialScanner * | GetMaterialScanner () |
|
virtual void | ComputeDimensions (G4Box &, const G4int, const G4VPhysicalVolume *) const |
|
virtual void | ComputeDimensions (G4Tubs &, const G4int, const G4VPhysicalVolume *) const |
|
virtual void | ComputeDimensions (G4Trd &, const G4int, const G4VPhysicalVolume *) const |
|
virtual void | ComputeDimensions (G4Trap &, const G4int, const G4VPhysicalVolume *) const |
|
virtual void | ComputeDimensions (G4Cons &, const G4int, const G4VPhysicalVolume *) const |
|
virtual void | ComputeDimensions (G4Sphere &, const G4int, const G4VPhysicalVolume *) const |
|
virtual void | ComputeDimensions (G4Orb &, const G4int, const G4VPhysicalVolume *) const |
|
virtual void | ComputeDimensions (G4Ellipsoid &, const G4int, const G4VPhysicalVolume *) const |
|
virtual void | ComputeDimensions (G4Torus &, const G4int, const G4VPhysicalVolume *) const |
|
virtual void | ComputeDimensions (G4Para &, const G4int, const G4VPhysicalVolume *) const |
|
virtual void | ComputeDimensions (G4Polycone &, const G4int, const G4VPhysicalVolume *) const |
|
virtual void | ComputeDimensions (G4Polyhedra &, const G4int, const G4VPhysicalVolume *) const |
|
virtual void | ComputeDimensions (G4Hype &, const G4int, const G4VPhysicalVolume *) const |
|
Definition at line 43 of file G4tgbPlaceParamSquare.hh.
◆ G4tgbPlaceParamSquare()
Definition at line 43 of file G4tgbPlaceParamSquare.cc.
46{
47
49 {
51 theDirection1 =
54 theDirection2 =
58 }
59 else
60 {
63 {
67 }
69 {
73 }
75 {
79 }
80 }
81
82 if(theDirection1.
mag() == 0.)
83 {
84 G4Exception(
"G4tgbPlaceParamSquare::G4tgbPlaceParamSquare()",
86 }
87 else
88 {
89 theDirection1 /= theDirection1.
mag();
90 }
91 if(theDirection2.
mag() == 0.)
92 {
93 G4Exception(
"G4tgbPlaceParamSquare::G4tgbPlaceParamSquare()",
95 }
96 else
97 {
98 theDirection2 /= theDirection2.
mag();
99 }
100
107
109 theTranslation = theOffset1 * theDirection1 + theOffset2 * theDirection2;
110
111#ifdef G4VERBOSE
114 << theNCopies1 <<
" X " << theNCopies2 <<
G4endl <<
" offset1 "
115 << theOffset1 <<
G4endl <<
" offset2 " << theOffset1 <<
G4endl
116 <<
" step1 " << theStep1 <<
G4endl <<
" step2 " << theStep2 <<
G4endl
117 <<
" direction1 " << theDirection1 <<
G4endl <<
" direction2 "
120#endif
121}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
CLHEP::Hep3Vector G4ThreeVector
G4GLOB_DLL std::ostream G4cout
G4tgbPlaceParameterisation(G4tgrPlaceParameterisation *tgrParam)
void CheckNExtraData(G4tgrPlaceParameterisation *tgrParam, G4int nWcheck, WLSIZEtype st, const G4String &methodName)
G4ThreeVector theTranslation
static G4int GetVerboseLevel()
std::vector< G4double > GetExtraData() const
const G4String & GetParamType() const
◆ ~G4tgbPlaceParamSquare()
G4tgbPlaceParamSquare::~G4tgbPlaceParamSquare |
( |
| ) |
|
◆ ComputeTransformation()
Reimplemented from G4tgbPlaceParameterisation.
Definition at line 124 of file G4tgbPlaceParamSquare.cc.
126{
127#ifdef G4VERBOSE
129 {
130 G4cout <<
" G4tgbPlaceParamSquare::ComputeTransformation():"
132 <<
G4endl <<
" offset1 " << theOffset1 <<
G4endl <<
" offset2 "
133 << theOffset2 <<
G4endl <<
" step1 " << theStep1 <<
G4endl
134 <<
" step2 " << theStep2 <<
G4endl;
135 }
136#endif
137
138 G4int copyNo1 = copyNo % theNCopies1;
140 G4double posi1 = copyNo1 * theStep1;
141 G4double posi2 = copyNo2 * theStep2;
142 G4ThreeVector origin = posi1 * theDirection1 + posi2 * theDirection2;
144
145#ifdef G4VERBOSE
147 {
148 G4cout <<
" G4tgbPlaceParamSquare::ComputeTransformation() - " << copyNo
149 <<
" = " << copyNo1 <<
", X " << copyNo2 <<
G4endl
151 }
152#endif
153
157}
virtual void SetCopyNo(G4int CopyNo)=0
const G4String & GetName() const
void SetTranslation(const G4ThreeVector &v)
void SetRotation(G4RotationMatrix *)
G4RotationMatrix * theRotationMatrix
The documentation for this class was generated from the following files: