88 if( theDirection1.
mag() == 0. )
90 G4Exception(
"G4tgbPlaceParamSquare::G4tgbPlaceParamSquare()",
95 theDirection1 /= theDirection1.
mag();
97 if( theDirection2.
mag() == 0. )
99 G4Exception(
"G4tgbPlaceParamSquare::G4tgbPlaceParamSquare()",
104 theDirection2 /= theDirection2.
mag();
115 theTranslation = theOffset1*theDirection1 + theOffset2*theDirection2;
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
140 G4cout <<
" G4tgbPlaceParamSquare::ComputeTransformation():"
143 <<
" offset1 " << theOffset1 <<
G4endl
144 <<
" offset2 " << theOffset2 <<
G4endl
145 <<
" step1 " << theStep1 <<
G4endl
146 <<
" step2 " << theStep2 <<
G4endl;
150 G4int copyNo1 = copyNo%theNCopies1;
154 G4ThreeVector origin = posi1*theDirection1+ posi2*theDirection2;
160 G4cout <<
" G4tgbPlaceParamSquare::ComputeTransformation() - "
161 << copyNo <<
" = " << copyNo1 <<
", X " << copyNo2 <<
G4endl
CLHEP::Hep3Vector G4ThreeVector
G4DLLIMPORT std::ostream G4cout
virtual void SetCopyNo(G4int CopyNo)=0
const G4String & GetName() const
void SetTranslation(const G4ThreeVector &v)
void SetRotation(G4RotationMatrix *)
G4tgbPlaceParamSquare(G4tgrPlaceParameterisation *)
void ComputeTransformation(const G4int copyNo, G4VPhysicalVolume *physVol) const
void CheckNExtraData(G4tgrPlaceParameterisation *tgrParam, G4int nWcheck, WLSIZEtype st, const G4String &methodName)
G4RotationMatrix * theRotationMatrix
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)