// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // // $Id: G4PHype.ddl,v 1.3 2001/07/11 10:02:24 gunter Exp $ // GEANT4 tag $Name: geant4-04-01 $ // Class Description: // Persistent version of G4Hype specific solid. // History: // 19.06.98 A.Kimura Converted G4Hype.hh #ifndef G4PHYPE_DDL #define G4PHYPE_DDL #include "G4PersistentSchema.hh" #include "G4PCSGSolid.hh" class G4VSolid; class G4Hype; class G4PHype : public G4PCSGSolid { public: // With description G4PHype(const G4Hype* theHype); virtual ~G4PHype(); // Constructor and Destructor G4VSolid* MakeTransientObject() const; // Creates a transient G4Hype object. virtual G4GeometryType GetEntityType() const {return G4String("G4Hype");} // Returns the G4GeometryType of this solid. protected: // values of hype radius at a given Z G4double HypeInnerRadius2(double zVal) const { return (tanInnerStereo2*zVal*zVal+innerRadius2); } G4double HypeOuterRadius2(double zVal) const { return (tanOuterStereo2*zVal*zVal+outerRadius2); } G4double innerRadius; // variable names are quite self explanative G4double outerRadius; G4double halfLenZ; G4double innerStereo; G4double outerStereo; // precalculated parameters, squared quantities G4double tanInnerStereo2; // squared tan of Inner Stereo angle G4double tanOuterStereo2; // squared tan of Outer Stereo angle G4double innerRadius2; // squared Inner Radius G4double outerRadius2; // squared Outer Radius G4double endInnerRadius2; // squared endcap Inner Radius G4double endOuterRadius2; // squared endcap Outer Radius G4double endInnerRadius; // endcap Inner Radius G4double endOuterRadius; // endcap Outer Radius }; #endif