Files
geant4/source/persistency/geometry/solids/specific/include/G4PHype.ddl
T
2016-06-08 16:10:37 +02:00

113 lines
2.9 KiB
Plaintext

//
// ********************************************************************
// * 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.1.4.1 2001/06/28 19:11:32 gunter Exp $
// GEANT4 tag $Name: $
//
// class G4PHype
//
// 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:
G4PHype(const G4Hype* theHype);
virtual ~G4PHype();
G4VSolid* MakeTransientObject() const;
virtual G4GeometryType GetEntityType() const {return G4String("G4Hype");}
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