34#ifndef G4TWISTTRAPALPHASIDE_HH
35#define G4TWISTTRAPALPHASIDE_HH
90 virtual void SetCorners();
91 virtual void SetBoundaries();
154 return ( fDx4plus2 + fDx4minus2 * ( 2 * phi ) / fPhiTwist ) ;
160 return ( fDx3plus1 + fDx3minus1 * ( 2 * phi) / fPhiTwist ) ;
166 return ( fDy2plus1 + fDy2minus1 * ( 2 * phi ) / fPhiTwist ) ;
174 return GetValueA(phi)/2. + (GetValueD(phi)-GetValueA(phi))/4.
175 - u*( ( GetValueD(phi)-GetValueA(phi) )/( 2 * GetValueB(phi) ) - fTAlph );
185 - u * std::sin(phi) + fdeltaX*phi/fPhiTwist,
186 Xcoef(u,phi) * std::sin(phi)
187 + u * std::cos(phi) + fdeltaY*phi/fPhiTwist,
188 2*fDz*phi/fPhiTwist );
189 if (isGlobal) {
return (
fRot * SurfPoint +
fTrans); }
196 return -0.5*GetValueB(phi) ;
202 return 0.5*GetValueB(phi) ;
206G4double G4TwistTrapAlphaSide::GetSurfaceArea()
208 return (fDz*(std::sqrt(16*fDy1*fDy1
209 + (fa1md1 + 4*fDy1*fTAlph)*(fa1md1 + 4*fDy1*fTAlph))
210 + std::sqrt(16*fDy2*fDy2 + (fa2md2 + 4*fDy2*fTAlph)
211 * (fa2md2 + 4*fDy2*fTAlph))))/2. ;
221 + (fa1md1 + 4*fDy1*fTAlph)*std::sin(phi)),
222 -(fDy1* fDz*((fa1md1 + 4*fDy1*fTAlph)*std::cos(phi)
223 - 4*fDy1*std::sin(phi))),
224 (fDy1*(-8*(fDx3minus1 + fDx4minus2)*fDy1
225 + fa1md1*(fDx2 + fDx3plus1 + fDx4)*fPhiTwist
226 + 4*(fDx2 + fDx3plus1 + fDx4)*fDy1*fPhiTwist
227 *fTAlph + 2*(fDx3minus1 + fDx4minus2)
228 *(fa1md1 + 4*fDy1*fTAlph)*phi)
229 + fPhiTwist*(16*fDy1*fDy1
230 + (fa1md1 + 4*fDy1*fTAlph)
231 *(fa1md1 + 4*fDy1*fTAlph))*u
232 + 4*fDy1*(fa1md1*fdeltaY - 4*fdeltaX*fDy1
233 + 4*fdeltaY*fDy1*fTAlph)* std::cos(phi)
234 - 4*fDy1*(fa1md1*fdeltaX + 4*fDy1*(fdeltaY
235 + fdeltaX*fTAlph))*std::sin(phi))/ 8. ) ;
virtual G4int DistanceToSurface(const G4ThreeVector &gp, const G4ThreeVector &gv, G4ThreeVector gxx[], G4double distance[], G4int areacode[], G4bool isvalid[], EValidate validate=kValidateWithTol)
virtual ~G4TwistTrapAlphaSide()
virtual G4ThreeVector GetNormal(const G4ThreeVector &xx, G4bool isGlobal=false)