#ifndef HGEOBOX_H #define HGEOBOX_H #include "hgeobasicshapes.h" // // class for Geant-shape BOX // derived from baseclass HGeoBasicShapes // // To read the 8 xyz-points from database or file the function readPoints(...) // in the baseclass is used. // // The technical coordinate system of a box, which sits in CAVE or SEC1 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 HGeoBox : public HGeoBasicShapes { public: HGeoBox(){ cgRot=uniRot; nCorners=8; } ~HGeoBox(){} // 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); }; #endif