Changeset 1228 for trunk/source/geometry/solids/CSG/include/G4Tubs.hh
- Timestamp:
- Jan 8, 2010, 11:56:51 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/geometry/solids/CSG/include/G4Tubs.hh
r1058 r1228 25 25 // 26 26 // 27 // $Id: G4Tubs.hh,v 1.2 1 2008/11/06 10:55:40gcosmo Exp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4Tubs.hh,v 1.22 2009/03/26 16:25:44 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // … … 86 86 // Constructs a tubs with the given name and dimensions 87 87 88 virtual~G4Tubs();88 ~G4Tubs(); 89 89 // 90 90 // Destructor … … 103 103 inline void SetOuterRadius (G4double newRMax); 104 104 inline void SetZHalfLength (G4double newDz); 105 inline void SetStartPhiAngle (G4double newSPhi );105 inline void SetStartPhiAngle (G4double newSPhi, G4bool trig=true); 106 106 inline void SetDeltaPhiAngle (G4double newDPhi); 107 107 … … 159 159 inline G4double GetDPhi() const; 160 160 161 pr otected:161 private: 162 162 163 163 G4ThreeVectorList* … … 167 167 // for G4VSolid:: ClipCrossSection and ClipBetweenSections 168 168 169 G4double fRMin, fRMax, fDz, fSPhi, fDPhi;170 G4bool fPhiFullTube;171 172 // Used by distanceToOut173 174 enum ESide {kNull,kRMin,kRMax,kSPhi,kEPhi,kPZ,kMZ};175 176 // Used by normal177 178 enum ENorm {kNRMin,kNRMax,kNSPhi,kNEPhi,kNZ};179 180 private:181 182 169 inline void Initialize(); 183 170 // 184 171 // Reset relevant values to zero 172 173 inline void CheckSPhiAngle(G4double sPhi); 174 inline void CheckDPhiAngle(G4double dPhi); 175 inline void CheckPhiAngles(G4double sPhi, G4double dPhi); 176 // 177 // Reset relevant flags and angle values 185 178 186 179 inline void InitializeTrigonometry(); … … 195 188 private: 196 189 190 // Used by distanceToOut 191 // 192 enum ESide {kNull,kRMin,kRMax,kSPhi,kEPhi,kPZ,kMZ}; 193 194 // Used by normal 195 // 196 enum ENorm {kNRMin,kNRMax,kNSPhi,kNEPhi,kNZ}; 197 197 198 G4double kRadTolerance, kAngTolerance; 198 199 // 199 200 // Radial and angular tolerances 200 201 202 G4double fRMin, fRMax, fDz, fSPhi, fDPhi; 203 // 204 // Radial and angular dimensions 205 201 206 G4double sinCPhi, cosCPhi, cosHDPhiOT, cosHDPhiIT, 202 207 sinSPhi, cosSPhi, sinEPhi, cosEPhi; 203 208 // 204 209 // Cached trigonometric values 210 211 G4bool fPhiFullTube; 212 // 213 // Flag for identification of section or full tube 205 214 }; 206 215
Note: See TracChangeset
for help on using the changeset viewer.