#ifndef HGEOSPHE_H #define HGEOSPHE_H #include "hgeobasicshapes.h" // // class for Geant-shape SPHE // 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: inner radius of the shell // outer radius of the shell; // point 1: starting polar angle of the shell, // ending polar angle of the shell; // point 2: starting azimuthal angle of the shell, // ending azimuthal angle of the shell; ) // // The technical coordinate system of a SPHE, which sits in CAVE and is not // rotated, is the laboratory system. // It's the same as in Geant and therefore the matrix cgRot, which describes // the transformation between these coordinate systems is the unity matrix. // class HGeoSphe : public HGeoBasicShapes { public: HGeoSphe() { nCorners=3; cgRot=uniRot; } ~HGeoSphe(){} // reads input from file int readPoints(HGeoInfo & geoInfo, HGeoParam & ele); // calculates the Geant-shapeparameters void calcShape(HGeoParam & ele, HGeoShapePar & shapePar); // calculates the position the Geant coordinate system in the technical // coordinate system and invokes posInMother(...) of the base class int posShape(HGeoParam & ele, HGeoParam & mo, HGeoShapePar & shapePar); // writes parameters to file int writePoints(ofstream & fout, HGeoParam & ele); }; #endif