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