#ifndef HGEOCONE_H #define HGEOCONE_H #include "hgeobasicshapes.h" // // class for Geant-shape CONE // derived from baseclass HGeoBasicShapes // // The functions readPoints(...) read from database or from file and store the // input in the float-vector vol of class HGeoParam. // ( point 0: origin of starting circle of the cone; // point 1: inner radius of starting circle, // outer radius of starting circle; // point 2: origin of ending circle of the cone; // point 3: inner radius of ending circle, // outer radius of ending circle; ) // // To position a volume in its mother different functions are called in the // routine posShape(...) depending on the shape of the mother. Uptil now it's // only possible to position a CONE in a mother with shape PGON. // In these functions posIn...(...) the position of the Geant-origin in the // intrisic coordinate-system of the detector is calculated and stored in the // vector geaPos of class HGeoParam. This information is needed to calculate the // position of daughtervolumes. The Geant-position of the volume inside its // mother is calculated and stored in the vector pos of class HGeoShapePar. // class HGeoCone : public HGeoBasicShapes { public: HGeoCone(){} ~HGeoCone(){} // reads input from database int readPoints(HGeoInfo & geoInfo, HString & volName, HGeoParam & ele); // reads input from file int readPoints(HGeoInfo & geoInfo, HGeoParam & ele); // calculates the Geant-shapeparameters void calcShape(HGeoParam & ele, HGeoShapePar & shapePar); //calls different functions to position the volume depending on the // shape of its mother (uptil now only PGON implemeted) int posShape(HGeoParam & ele, HGeoParam & mo, HGeoShapePar & shapePar); // positions a CONE in a PGON (without rotation) void posInPgon(HGeoParam & ele, HGeoParam & mo, HGeoShapePar & shapePar); }; #endif