Changeset 921 for trunk/source/geometry/solids/CSG/include/G4Tubs.hh
- Timestamp:
- Feb 16, 2009, 10:14:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/geometry/solids/CSG/include/G4Tubs.hh
r850 r921 25 25 // 26 26 // 27 // $Id: G4Tubs.hh,v 1. 17 2007/05/18 07:38:00 gcosmo Exp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4Tubs.hh,v 1.21 2008/11/06 10:55:40 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 // … … 39 39 // A tube or tube segment with curved sides parallel to 40 40 // the z-axis. The tube has a specified half-length along 41 // the z axis, about which it is centred, and a given41 // the z-axis, about which it is centered, and a given 42 42 // minimum and maximum radius. A minimum radius of 0 43 // signifies afilled tube /cylinder. The tube segment is43 // corresponds to filled tube /cylinder. The tube segment is 44 44 // specified by starting and delta angles for phi, with 0 45 45 // being the +x axis, PI/2 the +y axis. … … 57 57 // 58 58 // fDPhi Delta angle of the segment. 59 // 60 // fPhiFullTube Boolean variable used for indicate the Phi Section 59 61 60 62 // History: … … 103 105 inline void SetStartPhiAngle (G4double newSPhi); 104 106 inline void SetDeltaPhiAngle (G4double newDPhi); 105 107 106 108 // Methods for solid 107 109 … … 144 146 145 147 G4Tubs(__void__&); 148 // 146 149 // Fake default constructor for usage restricted to direct object 147 150 // persistency for clients requiring preallocation of memory for … … 164 167 // for G4VSolid:: ClipCrossSection and ClipBetweenSections 165 168 166 G4double fRMin,fRMax,fDz,fSPhi,fDPhi; 167 168 // Used by distanceToOut 169 G4double fRMin, fRMax, fDz, fSPhi, fDPhi; 170 G4bool fPhiFullTube; 171 172 // Used by distanceToOut 169 173 170 174 enum ESide {kNull,kRMin,kRMax,kSPhi,kEPhi,kPZ,kMZ}; 171 175 172 // used by normal176 // Used by normal 173 177 174 178 enum ENorm {kNRMin,kNRMax,kNSPhi,kNEPhi,kNZ}; … … 176 180 private: 177 181 182 inline void Initialize(); 183 // 184 // Reset relevant values to zero 185 186 inline void InitializeTrigonometry(); 187 // 188 // Recompute relevant trigonometric values and cache them 189 178 190 G4ThreeVector ApproxSurfaceNormal( const G4ThreeVector& p ) const; 191 // 179 192 // Algorithm for SurfaceNormal() following the original 180 193 // specification for points not on the surface … … 183 196 184 197 G4double kRadTolerance, kAngTolerance; 198 // 185 199 // Radial and angular tolerances 200 201 G4double sinCPhi, cosCPhi, cosHDPhiOT, cosHDPhiIT, 202 sinSPhi, cosSPhi, sinEPhi, cosEPhi; 203 // 204 // Cached trigonometric values 186 205 }; 187 206
Note: See TracChangeset
for help on using the changeset viewer.