#include <G4tgbPlaceParamSquare.hh>
|
| G4tgbPlaceParamSquare (G4tgrPlaceParameterisation *) |
|
| ~G4tgbPlaceParamSquare () |
|
void | ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const |
|
| G4tgbPlaceParameterisation (G4tgrPlaceParameterisation *tgrParam) |
|
virtual | ~G4tgbPlaceParameterisation () |
|
virtual void | ComputeTransformation (const G4int, G4VPhysicalVolume *) const |
|
void | CheckNExtraData (G4tgrPlaceParameterisation *tgrParam, G4int nWcheck, WLSIZEtype st, const G4String &methodName) |
|
G4int | GetNCopies () const |
|
EAxis | GetAxis () const |
|
| G4VPVParameterisation () |
|
virtual | ~G4VPVParameterisation () |
|
virtual void | ComputeTransformation (const G4int, G4VPhysicalVolume *) const =0 |
|
virtual G4VSolid * | ComputeSolid (const G4int, G4VPhysicalVolume *) |
|
virtual G4Material * | ComputeMaterial (const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0) |
|
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 (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 49 of file G4tgbPlaceParamSquare.hh.
◆ G4tgbPlaceParamSquare()
Definition at line 49 of file G4tgbPlaceParamSquare.cc.
52{
53
55 {
64 }
65 else
66 {
69 {
73 }
75 {
79 }
81 {
85 }
86 }
87
88 if( theDirection1.
mag() == 0. )
89 {
90 G4Exception(
"G4tgbPlaceParamSquare::G4tgbPlaceParamSquare()",
92 }
93 else
94 {
95 theDirection1 /= theDirection1.
mag();
96 }
97 if( theDirection2.
mag() == 0. )
98 {
99 G4Exception(
"G4tgbPlaceParamSquare::G4tgbPlaceParamSquare()",
101 }
102 else
103 {
104 theDirection2 /= theDirection2.
mag();
105 }
106
113
115 theTranslation = theOffset1*theDirection1 + theOffset2*theDirection2;
116
117#ifdef G4VERBOSE
119 G4cout <<
"G4tgbPlaceParamSquare: no copies "
121 <<
" X " << theNCopies2 <<
G4endl
122 <<
" offset1 " << theOffset1 <<
G4endl
123 <<
" offset2 " << theOffset1 <<
G4endl
124 <<
" step1 " << theStep1 <<
G4endl
125 <<
" step2 " << theStep2 <<
G4endl
126 <<
" direction1 " << theDirection1 <<
G4endl
127 <<
" direction2 " << theDirection2 <<
G4endl
129#endif
130}
CLHEP::Hep3Vector G4ThreeVector
G4DLLIMPORT std::ostream G4cout
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
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ ~G4tgbPlaceParamSquare()
G4tgbPlaceParamSquare::~G4tgbPlaceParamSquare |
( |
| ) |
|
◆ ComputeTransformation()
Reimplemented from G4tgbPlaceParameterisation.
Definition at line 134 of file G4tgbPlaceParamSquare.cc.
136{
137#ifdef G4VERBOSE
139 {
140 G4cout <<
" G4tgbPlaceParamSquare::ComputeTransformation():"
143 <<
" offset1 " << theOffset1 <<
G4endl
144 <<
" offset2 " << theOffset2 <<
G4endl
145 <<
" step1 " << theStep1 <<
G4endl
146 <<
" step2 " << theStep2 <<
G4endl;
147 }
148#endif
149
150 G4int copyNo1 = copyNo%theNCopies1;
154 G4ThreeVector origin = posi1*theDirection1+ posi2*theDirection2;
156
157#ifdef G4VERBOSE
159 {
160 G4cout <<
" G4tgbPlaceParamSquare::ComputeTransformation() - "
161 << copyNo <<
" = " << copyNo1 <<
", X " << copyNo2 <<
G4endl
163 }
164#endif
165
169}
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: